X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fir%2Fform_header.html;h=296c79bcd2c01f62bf15e2b7099a8fdfcfb75c68;hb=1e09187933c03ee698a28310b34be95177c437eb;hp=75ffde5d4a4c062d3a5a3cb6b815c377a7450438;hpb=7349649bae8d80eabfd253592d59f8455f9ef6b0;p=kivitendo-erp.git diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 75ffde5d4..296c79bcd 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -1,17 +1,15 @@ [%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] -[%- USE L %] +[%- USE L %][%- USE P -%]

[% title %]

-[%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %] +[%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_obj.name _ ')' %] - - -
+

[% saved_message %]

@@ -19,7 +17,7 @@ [%- END %] - + @@ -34,6 +32,10 @@
  • [% 'WebDAV' | $T8 %]
  • [%- END %] [%- IF id %] + [%- IF INSTANCE_CONF.get_doc_storage %] +
  • [% 'Documents' | $T8 %]
  • +
  • [% 'Attachments' | $T8 %]
  • + [%- END %] [%- IF AUTH.assert('record_links', 1) %]
  • [% 'Linked Records' | $T8 %]
  • [%- END %] @@ -49,23 +51,10 @@ [% 'Vendor' | $T8 %] - [%- INCLUDE 'generic/multibox.html' - id = 'vendor', - name = 'vendor', - style = 'width: 250px', - class = 'initial_focus', - DATA = ALL_VENDORS, - id_sub = 'vc_keys', - label_key = 'name', - select = vc_select, - limit = vclimit, - allow_textbox = 1, - onChange = "document.getElementById('update_button').click();" -%] - + [% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %] + [% P.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] + [% P.hidden_tag("previous_vendor_id", vendor_id) %] - - - [%- IF ALL_CONTACTS.size %] @@ -107,30 +96,19 @@ [% 'Steuersatz' | $T8 %] - [%- INCLUDE 'generic/multibox.html' - name = 'taxzone_id' - style = 'width: 250px' - DATA = ALL_TAXZONES - id_key = 'id' - readonly = (id ? 1 : 0) - label_key = 'description' -%] + [% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES) , default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %] + [%- IF id %] + + [%- END %] [%- IF id %] [%- END %] -[%- IF all_departments %] +[%- IF ALL_DEPARTMENTS.as_list.size %] [% 'Department' | $T8 %] - - [%- INCLUDE 'generic/multibox.html' - name = 'department_id', - style = 'width: 250px', - DATA = all_departments, - id_key = 'id', - label_sub = 'department_labels', - show_empty = 1 -%] - + [% P.select_tag("department_id", ALL_DEPARTMENTS, with_empty=1, default=department_id, title_key="description", style="width: 250px") %] [%- END %] [%- IF currencies %] @@ -146,13 +124,17 @@ [% 'Exchangerate' | $T8 %] [%- IF forex %] - [% LxERP.format_amount(exchangerate, 2) %] + [% LxERP.format_amount(exchangerate, 5) %] [%- ELSE %] [%- END %] [%- END %] + + [% 'Transaction description' | $T8 %] + [% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %] + @@ -161,20 +143,9 @@ [% 'Employee' | $T8 %] [% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %] - -[%- IF is_type_credit_note %] - - [% 'Credit Note Number' | $T8 %] - - - - [% 'Credit Note Date' | $T8 %] - [% L.date_tag('invdate', invdate) %] - -[%- ELSE %] [% 'Invoice Number' | $T8 %] - + [% L.input_tag("invnumber", invnumber, size="11") %] [% 'Invoice Date' | $T8 %] @@ -187,8 +158,14 @@ -[%- END %] - + + [% LxERP.t8('Tax point') %] + [% L.date_tag('tax_point', tax_point, id='tax_point') %] + + + [% 'Delivery Date' | $T8 %] + [% L.date_tag('deliverydate', deliverydate) %] + [% 'Order Number' | $T8 %] @@ -203,15 +180,7 @@ [% 'Project Number' | $T8 %] - - [%- INCLUDE 'generic/multibox.html' - name = 'globalproject_id', - DATA = ALL_PROJECTS, - id_key = 'id', - label_key = 'projectnumber', - show_empty = 1, - onChange = "document.getElementById('update_button').click();" -%] - + [% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]