X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Far%2Fform_header.html;h=d42d70c187e475459a486614337b309ba0e39a0b;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hp=ba4fa351c8999d011354343a35700a44a8dc4687;hpb=4e1e8352aed6d02c28116ea5afe82bf93d62bcba;p=kivitendo-erp.git diff --git a/templates/webpages/ar/form_header.html b/templates/webpages/ar/form_header.html index ba4fa351c..d42d70c18 100644 --- a/templates/webpages/ar/form_header.html +++ b/templates/webpages/ar/form_header.html @@ -1,9 +1,13 @@ [%- USE HTML %] [%- USE L %] [%- USE T8 %] -[%- USE LxERP %] +[%- USE LxERP %][%- USE P -%] -
+

[% title | html %]

+ +[%- INCLUDE 'common/flash.html' %] + + [% L.hidden_tag('id', id) %] [% L.hidden_tag('sort', sort) %] @@ -14,8 +18,7 @@ [% L.hidden_tag('follow_up_trans_type_1', 'ar_transaction') %] [% L.hidden_tag('follow_up_trans_info_1', follow_up_trans_info) %] [% L.hidden_tag('follow_up_rowcount', 1) %] - -

[% title | html %]

+ [%- IF saved_message %]

[% saved_message | html %]

[% END %] @@ -23,8 +26,13 @@ @@ -39,34 +47,52 @@ [% 'Customer' | $T8 %] -[%- IF selectcustomer %] - -[%- ELSE %] - + [% P.customer_vendor.picker("customer_id", customer_id, type="customer", style="width: 330px", class=(initial_focus == 'customer_id' ? "initial_focus" : ""), onchange="\$('#update_button').click()") %] + [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %] + [% L.hidden_tag("previous_customer_id", customer_id) %] + [% L.hidden_tag('terms', terms) %] + + +[%- IF max_dunning_level || invoice_obj.dunning_config_id %] + + [% LxERP.t8("Dunning status") %] + + [% IF invoice_obj.dunning_config_id %] + [% LxERP.t8("This invoice's dunning level: #1", invoice_obj.dunning_config.dunning_description) %] + [% IF max_dunning_level %]
[% END %] + [% END %] + [% IF max_dunning_level %] + + [% LxERP.t8("Customer's current maximum dunning level: #1", max_dunning_level) %] +
+ [% LxERP.t8("Dunned open amount: #1", LxERP.format_amount(dunning_amount, 2)) %] +
+ [% END %] + + [%- END %] - - [% L.hidden_tag('selectcustomer', selectcustomer) %] - [% L.hidden_tag('oldcustomer', oldcustomer) %] - [% L.hidden_tag('customer_id', customer_id) %] - [% L.hidden_tag('terms', terms) %] + + [% LxERP.t8("Credit Limit") %] + + [% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %]; + [% LxERP.t8("Remaining") %] + [% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %] + +[%- IF invoice_obj.sepa_exports.as_list.size %] - - - - - - - - - -
[% 'Credit Limit' | $T8 %][% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %][% 'Remaining' | $T8 %][% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]
+ [% LxERP.t8("SEPA exports") %] + + [% FOREACH export = invoice_obj.sepa_exports.as_list %] + [% HTML.escape(export.id) %] + [% UNLESS loop.last %], [% END %] + [% END %] +[%- END %] [% 'Currency' | $T8 %] - - [% L.hidden_tag('selectcurrency', selectcurrency) %] + [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %] [% L.hidden_tag('defaultcurrency', defaultcurrency) %] [% L.hidden_tag('fxgain_accno', fxgain_accno) %] [% L.hidden_tag('fxloss_accno', fxloss_accno) %] @@ -74,18 +100,19 @@ [% L.hidden_tag('forex', forex) %] [% IF show_exch %] [% 'Exchangerate' | $T8 %] - [%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 2)) %][% LxERP.format_amount(exchangerate, 2) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 2), size=10) %][%- END %] + [%- IF forex %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %][%- END %] [% END %] - [% department_html %] - [%- IF selectdepartment %] + [% IF ALL_DEPARTMENTS %] + + [% 'Department' | $T8 %] + [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:334px') %] + + [% END %] - [% 'Department' | $T8 %] - - - + [% 'Transaction description' | $T8 %] + [% L.input_tag("transaction_description", transaction_description, style="width:330px", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %] - [%- END %] [% L.checkbox_tag('taxincluded', checked=taxincluded) %] @@ -98,14 +125,10 @@ -[%- IF selectemployee %] - + -[%- ELSE %] - [% L.hidden_tag('employee', employee) %] -[%- END %] @@ -122,9 +145,17 @@ + + + + + + + + - +
[% 'Salesperson' | $T8 %][% L.hidden_tag('selectemployee', selectemployee) %][% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]
[% 'Invoice Number' | $T8 %] [% 'Due Date' | $T8 %] [% L.date_tag('duedate', duedate) %]
[% LxERP.t8('Tax point') %][% L.date_tag('tax_point', tax_point, id='tax_point') %]
[% 'Delivery Date' | $T8 %][% L.date_tag('deliverydate', deliverydate) %]
[% 'Project Number' | $T8 %][% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1) %][% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]
@@ -162,7 +193,7 @@ - [% ARselected %] + [% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %] [% LxERP.format_amount(invtotal, 2) | html %] @@ -202,6 +233,7 @@ [% 'Source' | $T8 %] [% 'Memo' | $T8 %] [% 'Amount' | $T8 %] + [%- IF show_exch %] [% 'Exch' | $T8 %] [%- END %] @@ -213,7 +245,7 @@ [%- IF row.changeable %] - [% L.date_tag('datepaid_' _ loop.count, row.datepaid) %] + [% L.date_tag('datepaid_' _ loop.count, row.datepaid ? row.datepaid : today) %] [%- ELSE %] [% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %] [%- END %] @@ -234,17 +266,22 @@ [%- IF row.changeable %] - + [%- ELSE %] [% row.paid | html %] [%- END %] + + [% IF row.changeable && loop.last && paid_missing > 0 %] + + [% END %] + [%- IF show_exch %] [%- IF row.forex || !row.changeable%] - [% row.exchangerate | html %] + [%- LxERP.format_amount(row.exchangerate, 5, 1) -%] [%- ELSE %] - + [%- END %] @@ -289,3 +326,7 @@ + +