X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f400636723fe7ead2396f6c9cf1e7207bfe75f8e..HEAD:/templates/webpages/ar/form_header.html diff --git a/templates/webpages/ar/form_header.html b/templates/webpages/ar/form_header.html index cef1f62f9..ebcaa0ad1 100644 --- a/templates/webpages/ar/form_header.html +++ b/templates/webpages/ar/form_header.html @@ -1,9 +1,16 @@ [%- USE HTML %] [%- USE L %] [%- USE T8 %] -[%- USE LxERP %] +[%- USE LxERP %][%- USE P -%] -
+

+ [% IF workflow_email_journal_id; LxERP.t8("Email Journal Workflow") _ " - "; END; %] + [% title | html %] +

+ +[%- INCLUDE 'common/flash.html' %] + + [% L.hidden_tag('id', id) %] [% L.hidden_tag('sort', sort) %] @@ -14,16 +21,32 @@ [% 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 !id %] +[% L.hidden_tag('form_validity_token', form_validity_token) %] +[% END %] +[% L.hidden_tag('email_journal_id', email_journal_id) %] +[% L.hidden_tag('email_attachment_id', email_attachment_id) %] +[% L.hidden_tag('workflow_email_journal_id', workflow_email_journal_id) %] +[% L.hidden_tag('workflow_email_attachment_id', workflow_email_attachment_id) %] +[% L.hidden_tag('workflow_email_callback', workflow_email_callback) %] [%- IF saved_message %]

[% saved_message | html %]

[% END %]
@@ -39,16 +62,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", + show_details="1", style="width: 330px", class=(initial_focus == 'customer_id' ? "initial_focus" : "")) %] + [% L.hidden_tag("previous_customer_id", customer_id) %] + [% L.hidden_tag('terms', terms) %] + [%- IF max_dunning_level || invoice_obj.dunning_config_id %] @@ -76,10 +94,27 @@ [% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %] +[%- IF invoice_obj.sepa_exports.as_list.size %] + + [% 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) %] + + [%- IF readonly %] + [% HTML.escape(currency) %] + [% L.hidden_tag("currency", currency) %] + [%- ELSE %] + [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %] + [%- END %] + [% L.hidden_tag('defaultcurrency', defaultcurrency) %] [% L.hidden_tag('fxgain_accno', fxgain_accno) %] [% L.hidden_tag('fxloss_accno', fxloss_accno) %] @@ -87,18 +122,27 @@ [% 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 readonly %] + [% LxERP.format_amount(exchangerate, 5) %] + [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %] + [%- ELSE %] + + [%- END %] + [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- 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) %] @@ -111,14 +155,10 @@ -[%- IF selectemployee %] - + -[%- ELSE %] - [% L.hidden_tag('employee', employee) %] -[%- END %] @@ -135,9 +175,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();") %]
@@ -175,7 +223,7 @@ - [% ARselected %] + [% P.chart.picker("AR_chart_id", AR_chart_id, style="width: 400px", type="AR") %] [% LxERP.format_amount(invtotal, 2) | html %] @@ -248,9 +296,9 @@ [%- IF row.changeable %] - + [%- ELSE %] - [% row.paid | html %] + [% row.paid | html %] [% defaultcurrency %] [%- END %] @@ -260,10 +308,13 @@ [%- IF show_exch %] + [%- IF row.forex || !row.changeable%] - [% row.exchangerate | html %] + + [%- LxERP.format_amount(row.exchangerate, 5, 0) -%] = [% LxERP.format_amount(row.defaultcurrency_paid, 2) %] [% defaultcurrency %]
+ [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %] [%- ELSE %] - + [%- END %] @@ -292,13 +343,19 @@ [% 'Total' | $T8 %] - [% LxERP.format_amount(totalpaid, 2) | html %] + [% LxERP.format_amount(totalpaid, 2) | html %] [% currency %] + [% IF show_exch %] + + [% LxERP.format_amount(defaultcurrency_totalpaid, 2) | html %] [% defaultcurrency %] + + + [% END %] [% 'Missing amount' | $T8 %] - [% LxERP.format_amount(paid_missing, 2) | html %] + [% LxERP.format_amount(paid_missing, 2) | html %] [% currency %] @@ -310,5 +367,5 @@