@@ -51,8 +70,8 @@
[% 'Vendor' | $T8 %]
- [% 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.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 250px", class="initial_focus",
+ show_details="1") %]
[% P.hidden_tag("previous_vendor_id", vendor_id) %]
@@ -90,13 +109,12 @@
[%- END %]
[% 'Record in' | $T8 %]
- [% selectAP %]
-
+ [% P.chart.picker("AP_chart_id", AP_chart_id, style="width:250px;", type="AP", "data-validate"="required") %]
[% 'Steuersatz' | $T8 %]
- [% 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();") %]
+ [% 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 = "kivi.io.update_taxzone()") %]
[%- IF id %]
[%- END %]
@@ -114,7 +132,14 @@
[%- IF currencies %]
[% 'Currency' | $T8 %]
- [% currencies %]
+
+ [%- IF readonly %]
+ [% HTML.escape(currency) %]
+ [% L.hidden_tag("currency", currency) %]
+ [%- ELSE %]
+ [% currencies %]
+ [%- END %]
+
[%- END %]
@@ -123,14 +148,20 @@
[% 'Exchangerate' | $T8 %]
- [%- IF forex %]
- [% LxERP.format_amount(exchangerate, 2) %]
+ [%- IF readonly %]
+ [% LxERP.format_amount(exchangerate, 5) %]
+ [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
[%- ELSE %]
[%- END %]
+ [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
[%- END %]
+
+ [% 'Transaction description' | $T8 %]
+ [% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]
+
[% 'Project Number' | $T8 %]
- [%- L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = '1', onChange = "document.getElementById('update_button').click();") %]
+ [% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]