X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fap%2Fform_header.html;h=fdcbefab63324979a199dc53e81a0121dd82e125;hb=6c63020409f486043d63c3a324db96a4a162ff67;hp=124eb64fd59578011670befa5121aef5bdb39f70;hpb=54a84c2e49dbfdbf1e636ec3613fc5f96fc193bf;p=kivitendo-erp.git diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index 124eb64fd..fdcbefab6 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -39,6 +39,7 @@ + @@ -78,6 +79,16 @@

[% saved_message | html %]

[% END %] +
+ + +
- - + + + +[%- IF invoice_obj.sepa_exports.as_list.size %] + + + +[%- END %] @@ -139,6 +157,10 @@ + + + +
@@ -98,18 +109,25 @@
- - - - - - - -
[% 'Credit Limit' | $T8 %][% creditlimit | html %][% 'Remaining' | $T8 %][% creditremaining | html %]
+
[% LxERP.t8("Credit Limit") %] + [% creditlimit | html %]; + [% LxERP.t8("Remaining") %] + [% creditremaining | html %] +
[% LxERP.t8("SEPA exports") %] + [% FOREACH export = invoice_obj.sepa_exports.as_list %] + [% HTML.escape(export.id) %] + [% UNLESS loop.last %], [% END %] + [% END %]
[% 'Currency' | $T8 %] [% 'Tax Included' | $T8 %]
[% 'direct debit' | $T8 %]
@@ -162,7 +184,9 @@ [% 'Project Number' | $T8 %] - [% globalprojectnumber %] + + [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber') %] + @@ -185,7 +209,10 @@ [% FOREACH i IN [1..rowcount] %] - [% temp = "selectAP_amount_"_ i %][% $temp %] + [% selected_accno_full = "selected_accno_full_"_ i %] + [% L.select_tag('AP_amount_'_ i, ALL_CHARTS_AP_amount, value_title_sub = \AP_amount_value_title_sub, onchange = 'setTaxkey(this, '_ i _')', default = $selected_accno_full) %] + + @@ -195,10 +222,12 @@ [% temp = "tax_"_ i %][% $temp | html %] - [% temp = "select_tax_"_ i %][% $temp %] + [% temp = 'selected_taxchart_'_ i %] + [% L.select_tag('taxchart_'_ i, ALL_TAXCHARTS, value_title_sub = \taxchart_value_title_sub, default = $temp) %] - [% temp = "select_projectnumber_"_ i %][% $temp %] + [% temp = "project_id_"_ i %] + [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = loop.last ? globalproject_id : $temp, value_key = 'id', title_key = 'projectnumber') %] [% END %] @@ -209,7 +238,9 @@ - [% APselected %] + + [% L.select_tag('APselected', ALL_CHARTS_AP, value_title_sub = \APselected_value_title_sub, default = APselected) %] + [% invtotal | html %] @@ -245,6 +276,7 @@ [% 'Source' | $T8 %] [% 'Memo' | $T8 %] [% 'Amount' | $T8 %] + [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] [% 'Exch' | $T8 %] [% END %] @@ -260,10 +292,10 @@ [% temp = "datepaid_"_ i %] [% IF( changeable ) %] - [% L.date_tag(temp, $temp) %] + [% L.date_tag(temp, $temp ? $temp : today) %] [% ELSE %] [% $temp | html %] - |; + [% END %] @@ -297,6 +329,12 @@ [% END %] + + [% IF changeable && loop.last && paid_missing > 0 %] + + [% END %] + + [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] [% temp = "exchangerate_"_ i %] @@ -316,19 +354,17 @@ [% temp = "AP_paid_"_ i %] [% IF( changeable ) %] - [% temp = "select"_ temp %] - [% $temp %] + [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] [% ELSE %] [% $temp | html %] [% END %] - [% temp = "paid_project_id_"_ i %] + [% temp = "paid_project_id_"_ i %] [% IF( changeable ) %] - [% temp = "select"_ temp %] - [% $temp %] + [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = $temp, value_key = 'id', title_key = 'projectnumber') %] [% ELSE %] [% temp = "label"_ temp %] @@ -353,7 +389,10 @@ - -
- +
+
+ +