X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fap%2Fform_header.html;h=dc3ed44e089813b59866581f67b9118add824add;hb=4507456b19be280448043993939fa8657e8a046c;hp=f65b3014bcf50a05e97260e1c2c29a10422881d5;hpb=f400636723fe7ead2396f6c9cf1e7207bfe75f8e;p=kivitendo-erp.git diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index f65b3014b..dc3ed44e0 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -1,44 +1,21 @@ [%- USE L %] [%- USE HTML %] [%- USE T8 %] -[%- USE LxERP %] - - +[%- USE LxERP %][%- USE P -%] - +

[% title | html %]

-
+[%- INCLUDE 'common/flash.html' %] - - - + - - + @@ -72,17 +49,24 @@ [% END %] -

[% title | html %]

- [% IF ( saved_message ) %]

[% saved_message | html %]

[% END %] -
+
@@ -98,12 +82,9 @@ [% 'Vendor' | $T8 %] - [% IF ( selectvendor ) %] - - [% ELSE %] - - [% END %] - + [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 300px") %] + [% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] + [% L.hidden_tag("previous_vendor_id", vendor_id) %] @@ -116,9 +97,21 @@ +[%- 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.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %] [% IF ( defaultcurrency && (currency != defaultcurrency) ) %] [% 'Exchangerate' | $T8 %] @@ -131,12 +124,10 @@ - [% IF ( selectdepartment ) %] + [% IF ALL_DEPARTMENTS %] [% 'Department' | $T8 %] - - - + [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %] [% END %] @@ -155,11 +146,11 @@ - + - + @@ -172,7 +163,7 @@
[% 'Invoice Number' | $T8 %][% L.input_tag("invnumber", invnumber, size="11", readonly=readonly) %]
[% 'Order Number' | $T8 %][% L.input_tag("ordnumber", ordnumber, size="11", readonly=readonly) %]
[% 'Invoice Date' | $T8 %]
[% 'Project Number' | $T8 %] - [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber') %] + [% 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();") %]
@@ -196,10 +187,9 @@ [% FOREACH i IN [1..rowcount] %] - [% 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) %] - - + [% 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" : "")) %] + [% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] @@ -210,7 +200,8 @@ [% temp = 'selected_taxchart_'_ i %] - [% L.select_tag('taxchart_'_ i, ALL_TAXCHARTS, value_title_sub = \taxchart_value_title_sub, default = $temp) %] + [% taxcharts = 'taxcharts_' _ i %] + [% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, style="width: 250px") %] [% temp = "project_id_"_ i %] @@ -226,7 +217,7 @@ - [% L.select_tag('APselected', ALL_CHARTS_AP, value_title_sub = \APselected_value_title_sub, default = APselected) %] + [% P.chart_picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %] [% invtotal | html %] @@ -378,7 +369,13 @@
+[% PROCESS 'webdav/_list.html' %] +
+ [% LxERP.t8('Loading...') %]
+
+ +