X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fap%2Fform_header.html;h=05b7a7a670bf211d427fdd7b4fe90317e6de0cb6;hb=46c6d4ad42ee0f62828e60a8a6875172d84f2cc4;hp=889080b02dda2921bb4ebeb4bde67bceb8cb362d;hpb=2dcf4554600db801c495e0d5bb99eadfb36785bd;p=kivitendo-erp.git diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index 889080b02..05b7a7a67 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -1,9 +1,14 @@ [%- USE L %] +[%- USE P %] [%- USE HTML %] [%- USE T8 %] [%- USE LxERP %][%- USE P -%] -
+

[% title | html %]

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

[% title | html %]

- [% IF ( saved_message ) %]

[% saved_message | html %]

[% END %] @@ -57,6 +62,10 @@ [%- IF INSTANCE_CONF.get_webdav %]
  • [% 'WebDAV' | $T8 %]
  • [%- END %] +[%- IF id AND INSTANCE_CONF.get_doc_storage %] +
  • [% 'Documents' | $T8 %]
  • +
  • [% 'Attachments' | $T8 %]
  • +[%- END %] [%- IF id %] [%- IF AUTH.assert('record_links', 1) %]
  • [% 'Linked Records' | $T8 %]
  • @@ -65,6 +74,10 @@ [%- END %] +[%- IF id AND INSTANCE_CONF.get_doc_storage %] +
    +[%- END %] +
    @@ -76,7 +89,7 @@ @@ -140,24 +153,32 @@
    [% 'Vendor' | $T8 %] - [% P.customer_vendor_picker("vendor_id", vendor_id, type="vendor", style="width: 300px") %] + [% 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) %]
    - + - + - + + + + + + + + +
    [% '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', onChange = "document.getElementById('update_button').click();") %] + [% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]
    @@ -182,7 +203,7 @@ [% 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", class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %] [% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] @@ -199,7 +220,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 %] @@ -211,7 +232,7 @@ - [% P.chart_picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %] + [% P.chart.picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %] [% invtotal | html %] @@ -221,23 +242,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 %] @@ -294,7 +321,7 @@ [% temp = "paid_"_ i %] [% END %] - [% temp = "AP_paid_"_ i %] + [% temp = "AP_paid_"_ i %] + [% readonly = "AP_paid_readonly_desc_"_ i %] @@ -336,7 +364,7 @@
    [% 'Payments' | $T8 %] [% IF( changeable ) %] - + [% ELSE %] [% $temp | html %] @@ -323,12 +350,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 %] @@ -359,6 +387,7 @@ [% LxERP.format_amount(paid_missing, 2) | html %]
    + [% END %] @@ -372,5 +401,5 @@