X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fwebpages%2Fap%2Fform_header.html;fp=templates%2Fwebpages%2Fap%2Fform_header.html;h=e3bc2e9c765e07161e95f4113eb9b9ef8e7f089c;hp=fdcbefab63324979a199dc53e81a0121dd82e125;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index fdcbefab6..e3bc2e9c7 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -1,38 +1,15 @@ [%- USE L %] +[%- USE P %] [%- USE HTML %] [%- USE T8 %] -[%- USE LxERP %] - - +[%- USE LxERP %][%- USE P -%] - +

[% title | html %]

-
+[%- INCLUDE 'common/flash.html' %] - - - + - - @@ -41,7 +18,7 @@ - + @@ -65,6 +42,8 @@ +[%- P.hidden_tag('convert_from_oe_id', convert_from_oe_id) -%] + [% FOREACH i IN [1..paidaccounts] %] [% temp = "acc_trans_id_"_ i %] @@ -73,21 +52,32 @@ [% END %] -

[% title | html %]

- [% IF ( saved_message ) %]

[% saved_message | html %]

[% END %] -
+
+[%- IF id AND INSTANCE_CONF.get_doc_storage %] +
+[%- END %] +
@@ -99,12 +89,9 @@ @@ -131,7 +118,7 @@ - + [% IF ( defaultcurrency && (currency != defaultcurrency) ) %] @@ -144,15 +131,17 @@ - [% IF ( selectdepartment ) %] + [% IF ALL_DEPARTMENTS %] - + [% END %] + + + + @@ -168,24 +157,32 @@
[% 'Vendor' | $T8 %] - [% IF ( selectvendor ) %] - - [% ELSE %] - - [% END %] - + [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 330px", 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) %]
[% '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, 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 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 %][% 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') %] + [% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]
@@ -209,25 +206,32 @@ [% 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) %] - [% 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 %] - [% 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 %] - [% 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 %] @@ -239,7 +243,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 %] @@ -249,23 +253,29 @@ - - - - - - - - -
[% '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')") %] +
+ [% UNLESS no_payment_bookings %] @@ -322,7 +332,7 @@ [% temp = "paid_"_ i %] [% END %] - [% temp = "AP_paid_"_ i %] + [% temp = "AP_paid_"_ i %] + [% readonly = "AP_paid_readonly_desc_"_ i %] @@ -364,7 +375,7 @@
[% 'Payments' | $T8 %] [% IF( changeable ) %] - + [% ELSE %] [% $temp | html %] @@ -351,12 +361,13 @@ [% IF( changeable ) %] [% 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 ) %] - [% 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 %] @@ -387,12 +398,19 @@ [% LxERP.format_amount(paid_missing, 2) | html %]
+ [% END %]
+[% PROCESS 'webdav/_list.html' %] +
+ [% LxERP.t8('Loading...') %]
+
+ +