X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Far%2Fform_header.html;h=d1916ecea1b229e157e0c71a00e054596fc39a95;hb=6ef53d3f84ed5471a251856b0d4b2ca42e2e3992;hp=2c9870fe24cac5b78f79bb421d405b004b5e9628;hpb=d735aab3fc2987d555c63ce0dc8e24626ca30654;p=kivitendo-erp.git diff --git a/templates/webpages/ar/form_header.html b/templates/webpages/ar/form_header.html index 2c9870fe2..d1916ecea 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) %] @@ -16,15 +20,18 @@ [% L.hidden_tag('follow_up_rowcount', 1) %] -

[% title | html %]

- [%- IF saved_message %]

[% saved_message | html %]

[% END %]
@@ -40,16 +47,11 @@ [% 'Customer' | $T8 %] -[%- IF selectcustomer %] - -[%- ELSE %] - -[%- END %] - - [% L.hidden_tag('selectcustomer', selectcustomer) %] - [% L.hidden_tag('oldcustomer', oldcustomer) %] - [% L.hidden_tag('customer_id', customer_id) %] - [% L.hidden_tag('terms', terms) %] + [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 300px", 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 %] @@ -90,8 +92,7 @@ [%- 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) %] @@ -99,18 +100,15 @@ [% 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)) %][% LxERP.format_amount(exchangerate, 5) %][%- ELSE %][% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5), size=10) %][%- END %] [% END %] - [% department_html %] - [%- IF selectdepartment %] - - [% 'Department' | $T8 %] - - - - - [%- END %] + [% IF ALL_DEPARTMENTS %] + + [% 'Department' | $T8 %] + [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %] + + [% END %] [% L.checkbox_tag('taxincluded', checked=taxincluded) %] @@ -123,14 +121,10 @@ -[%- IF selectemployee %] - + -[%- ELSE %] - [% L.hidden_tag('employee', employee) %] -[%- END %] @@ -149,7 +143,7 @@ - +
[% 'Salesperson' | $T8 %][% L.hidden_tag('selectemployee', selectemployee) %][% P.select_tag("employee_id", employees, default=employee_id, title_key='safe_name') %]
[% 'Invoice Number' | $T8 %]
[% '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();") %]
@@ -187,7 +181,7 @@ - [% ARselected %] + [% P.chart_picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %] [% LxERP.format_amount(invtotal, 2) | html %] @@ -260,7 +254,7 @@ [%- IF row.changeable %] - + [%- ELSE %] [% row.paid | html %] [%- END %]