X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6e083cb8df993623e4810599ba9d50b035ccb250..refs/heads/master:/templates/webpages/ap/form_header.html diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index bd52a5189..ec1a17a19 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -4,7 +4,10 @@ [%- USE T8 %] [%- USE LxERP %][%- USE P -%] -

[% title | html %]

+

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

[%- INCLUDE 'common/flash.html' %] @@ -18,7 +21,7 @@ - + @@ -41,9 +44,19 @@ +[% L.hidden_tag('zugferd_session_file', zugferd_session_file) %] [%- P.hidden_tag('convert_from_oe_id', convert_from_oe_id) -%] +[% 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) %] + [% FOREACH i IN [1..paidaccounts] %] [% temp = "acc_trans_id_"_ i %] @@ -59,11 +72,14 @@
+[%- IF id AND INSTANCE_CONF.get_doc_storage %] +
+[%- END %] +
@@ -85,8 +105,8 @@ @@ -99,7 +119,6 @@ [% creditremaining | html %] - [%- IF invoice_obj.sepa_exports.as_list.size %] @@ -111,29 +130,41 @@ [%- END %] - - - + [% IF ( defaultcurrency && (currency != defaultcurrency) ) %] - [% IF ( forex ) %] - - [% ELSE %] - - [% END %] + [% IF ALL_DEPARTMENTS %] - + [% END %] + + + + @@ -157,16 +188,24 @@ - + + + + + + + + +
[% 'Vendor' | $T8 %] - [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 300px", onchange="\$('#update_button').click()") %] - [% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] + [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", show_details="1", + style="width: 330px", class=(initial_focus == 'vendor_id' ? "initial_focus" : "")) %] [% L.hidden_tag("previous_vendor_id", vendor_id) %]
[% LxERP.t8("SEPA exports") %]
[% 'Currency' | $T8 %][% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %] + [%- 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 %] + [% 'Exchangerate' | $T8 %][% exchangerate | html %] + [%- 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 %] + [% L.hidden_tag("record_forex", record_forex) %] [% END %] -
[% 'Department' | $T8 %][% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %][% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = "width:334px") %]
[% 'Transaction description' | $T8 %][% L.input_tag("transaction_description", transaction_description, style="width:330px", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]
[% 'Tax Included' | $T8 %]
[% 'Invoice Date' | $T8 %][% L.date_tag('transdate', transdate) %][% L.date_tag('transdate', transdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("transdate")') %]
[% '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, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber', onChange = "document.getElementById('update_button').click();") %] + [% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]
@@ -191,15 +230,22 @@ [% SET selected_chart_id = "AP_amount_chart_id_"_ i %] - [% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %] + [% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", invalid=0, disabled=readonly, class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %] [% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] - + - [% temp = "tax_"_ i %][% $temp | html %] + [% temp_r = "tax_reverse_"_ i %] + [% IF ($temp_r) %] + [% $temp_r | html %] +     + [% temp_c = "tax_charge_"_ i %][% $temp_c | html %] + [% ELSE %] + [% temp = "tax_"_ i %][% $temp | html %] + [% END %] [% temp = 'selected_taxchart_'_ i %] @@ -208,7 +254,7 @@ [% 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') %] + [% P.project.picker(temp, loop.last ? globalproject_id : $temp) %] [% END %] @@ -230,19 +276,24 @@ - - - - - - - - -
[% 'Notes' | $T8 %] - - [% 'Notes for vendor' | $T8 %] - -
+ + + + + + + + + + + +
[% 'Notes' | $T8 %][% 'Internal Notes' | $T8 %][% 'Payment Terms' | $T8 %]
+ [% L.textarea_tag("notes", notes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] + + [% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %] + + [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('transdate')") %] +
@@ -302,12 +353,12 @@ [% temp = "paid_"_ i %] - + [% IF( changeable ) %] - + [% ELSE %] [% $temp | html %] - + [% defaultcurrency %] [% END %] @@ -321,15 +372,20 @@ [% temp = "exchangerate_"_ i %] [% temp_forex = "forex_"_ i %] + [% SET defaultcurrency_paid = 'defaultcurrency_paid_' _ i %] + [% SET record_forex = 'record_forex_' _ i %] + [% SET fx_transaction = 'fx_transaction_' _ i %] [% IF( $temp_forex || !changeable ) %] - [% $temp | html %] + [% $temp | html %] = [% LxERP.format_amount($defaultcurrency_paid,2) %] [% defaultcurrency %]
+ [% IF $record_forex %][% 'bank transaction exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %] + [% ELSE %] [% END %] - + [% END %] @@ -347,7 +403,7 @@ [% temp = "paid_project_id_"_ i %] [% IF( changeable ) %] - [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = $temp, value_key = 'id', title_key = 'projectnumber') %] + [% P.project.picker(temp, $temp) %] [% ELSE %] [% temp = "label"_ temp %] @@ -361,13 +417,20 @@ [% 'Total' | $T8 %] - [% LxERP.format_amount(totalpaid, 2) | html %] + [% LxERP.format_amount(totalpaid, 2) | html %] [% currency %] + [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] + + [% 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 %] [% END %] @@ -384,5 +447,5 @@