X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fap%2Fform_header.html;h=e569004bc7252eb383f7df1664ec913fb19ee191;hb=c47675437f3d8b71cd5ebdec0484677d2cb94ab0;hp=124eb64fd59578011670befa5121aef5bdb39f70;hpb=54a84c2e49dbfdbf1e636ec3613fc5f96fc193bf;p=kivitendo-erp.git diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index 124eb64fd..e569004bc 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -1,44 +1,22 @@ [%- USE L %] +[%- USE P %] [%- USE HTML %] [%- USE T8 %] -[%- USE LxERP %] - - +[%- USE LxERP %][%- USE P -%] - +

[% title | html %]

-
+[%- INCLUDE 'common/flash.html' %] - - - + - - + @@ -64,6 +42,8 @@ +[%- P.hidden_tag('convert_from_oe_id', convert_from_oe_id) -%] + [% FOREACH i IN [1..paidaccounts] %] [% temp = "acc_trans_id_"_ i %] @@ -72,12 +52,29 @@ [% END %] -

[% title | html %]

- [% IF ( saved_message ) %]

[% saved_message | html %]

[% END %] +
+ + +
- - + +[%- IF invoice_obj.sepa_exports.as_list.size %] + + + + +[%- END %] + - + [% IF ( defaultcurrency && (currency != defaultcurrency) ) %] @@ -126,12 +127,10 @@ - [% IF ( selectdepartment ) %] + [% IF ALL_DEPARTMENTS %] - + [% END %] @@ -139,6 +138,10 @@ + + + +
@@ -88,32 +85,36 @@
[% 'Vendor' | $T8 %] - [% IF ( selectvendor ) %] - - [% ELSE %] - - [% END %] - + [% 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)')) %] + [% L.hidden_tag("previous_vendor_id", vendor_id) %]
- - - - - - - -
[% 'Credit Limit' | $T8 %][% creditlimit | html %][% 'Remaining' | $T8 %][% creditremaining | html %]
+
[% LxERP.t8("Credit Limit") %] + [% creditlimit | html %]; + [% LxERP.t8("Remaining") %] + [% creditremaining | html %]
[% LxERP.t8("SEPA exports") %] + [% FOREACH export = invoice_obj.sepa_exports.as_list %] + [% HTML.escape(export.id) %] + [% UNLESS loop.last %], [% END %] + [% END %] +
[% 'Currency' | $T8 %][% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %][% 'Exchangerate' | $T8 %]
[% 'Department' | $T8 %] - - [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]
[% 'Tax Included' | $T8 %]
[% 'direct debit' | $T8 %]
@@ -146,11 +149,11 @@ - + - + @@ -160,9 +163,15 @@ + + + + - +
[% '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 %][% 'Due Date' | $T8 %] [% L.date_tag('duedate', duedate) %]
[% 'Delivery Date' | $T8 %][% L.date_tag('deliverydate', deliverydate) %]
[% 'Project Number' | $T8 %][% globalprojectnumber %] + [% 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();") %] +
@@ -185,7 +194,9 @@ [% FOREACH i IN [1..rowcount] %] - [% temp = "selectAP_amount_"_ i %][% $temp %] + [% 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) %] @@ -195,10 +206,13 @@ [% temp = "tax_"_ i %][% $temp | html %] - [% temp = "select_tax_"_ i %][% $temp %] + [% temp = 'selected_taxchart_'_ i %] + [% taxcharts = 'taxcharts_' _ i %] + [% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, style="width: 250px") %] - [% temp = "select_projectnumber_"_ i %][% $temp %] + [% 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') %] [% END %] @@ -209,7 +223,9 @@ - [% APselected %] + + [% P.chart.picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %] + [% invtotal | html %] @@ -235,6 +251,7 @@ + [% UNLESS no_payment_bookings %] @@ -245,6 +262,7 @@ + [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] [% END %] @@ -260,10 +278,10 @@ [% temp = "datepaid_"_ i %] @@ -290,13 +308,19 @@ [% temp = "paid_"_ i %] + + [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] [% END %] - [% temp = "AP_paid_"_ i %] + [% temp = "AP_paid_"_ i %] + [% readonly = "AP_paid_readonly_desc_"_ i %] - [% temp = "paid_project_id_"_ i %]
[% 'Payments' | $T8 %][% 'Source' | $T8 %] [% 'Memo' | $T8 %] [% 'Amount' | $T8 %][% 'Exch' | $T8 %] [% IF( changeable ) %] - [% L.date_tag(temp, $temp) %] + [% L.date_tag(temp, $temp ? $temp : today) %] [% ELSE %] [% $temp | html %] - |; + [% END %] [% IF( changeable ) %] - + [% ELSE %] [% $temp | html %] [% END %] + [% IF changeable && loop.last && paid_missing > 0 %] + + [% END %] + [% temp = "exchangerate_"_ i %] @@ -313,22 +337,21 @@ [% IF( changeable ) %] - [% temp = "select"_ temp %] - [% $temp %] + [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] [% ELSE %] - [% $temp | html %] + [% $readonly | html %] [% END %] + [% temp = "paid_project_id_"_ i %] [% IF( changeable ) %] - [% temp = "select"_ temp %] - [% $temp %] + [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = $temp, value_key = 'id', title_key = 'projectnumber') %] [% ELSE %] [% temp = "label"_ temp %] @@ -351,9 +374,19 @@ [% LxERP.format_amount(paid_missing, 2) | html %]
+ [% END %] - -
- +
+[% PROCESS 'webdav/_list.html' %] +
+ [% LxERP.t8('Loading...') %] +
+
+ +
+ +