[% IF vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] |
[% SET vc_id = vc _ "_id" %]
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus wi-lightwide", onchange="\$('#update_button').click()") %]
[% #P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)"), class="neutral wi-tiny") %]
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
|
[% IF ALL_CONTACTS.size %]
[% 'Contact Person' | $T8 %] |
[% L.select_tag('cp_id', ALL_CONTACTS, default=cp_id, value_key='cp_id', title_key='full_name_dep', with_empty=1, class='wi-lightwide') %] |
[% END %]
[% 'Shipping Address' | $T8 %] |
[% IF ALL_SHIPTO.size %]
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ; L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', class='wi-lightwide') %]
[% END %]
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto"), class="inline below wi-lightwide neutral") %]
|
[% IF is_sales && vc_obj.additional_billing_addresses.as_list.size %]
[% 'Custom Billing Address' | $T8 %] |
[% L.select_tag('billing_address_id', vc_obj.additional_billing_addresses,
with_empty=1, default=billing_address_id, value_key='id', title_key='displayable_id', style='width: 250px') %]
|
[% END %]
[% IF business %]
[% business_label %] |
[% HTML.escape(business) %], [% 'Trade Discount' | $T8 %] [% LxERP.format_percent(tradediscount) %] % |
[% END %]
[% IF is_order %]
[% 'Credit Limit' | $T8 %] |
[% LxERP.format_amount(creditlimit, 0) %], [% 'Remaining' | $T8 %] [% LxERP.format_amount( creditremaining, 0 ) %] |
[% END %]
[% IF max_dunning_level %]
[% 'Max. Dunning Level' | $T8 %]: |
[% HTML.escape(max_dunning_level) %];
[% 'Dunning Amount' | $T8 %]: [% LxERP.format_amount(dunning_amount, 2) %]
|
[% END %]
[% 'Steuersatz' | $T8 %] |
[% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES), default=taxzone_id, title_key='description', class='wi-lightwide') %] |
[% IF ALL_LANGUAGES.size %]
[% 'Language' | $T8 %] |
[% L.select_tag('language_id', ALL_LANGUAGES, default=language_id, title_key = 'description', with_empty=1, style='width:250px') %]
|
[% END %]
[% IF ALL_DEPARTMENTS.size %]
[% 'Department' | $T8 %] |
[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key = 'description', with_empty=1, class='wi-lightwide') %] |
[% END %]
[% 'Currency' | $T8 %] |
[% L.select_tag("currency", ALL_CURRENCIES, value_key="name", default=currency, onchange="document.getElementById('update_button').click();", class='wi-lightwide') %] |
[% IF show_exchangerate %]
[% 'Exchangerate' | $T8 %] |
[% IF forex %]
[% LxERP.format_amount(exchangerate, 5) %]
[% ELSE %]
[% END %]
|
[% END %]
[% 'Shipping Point' | $T8 %] |
|
[% 'Ship via' | $T8 %] |
|
[% 'Transaction description' | $T8 %] |
[% L.input_tag("transaction_description", transaction_description, class="wi-lightwide", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %] |
[% IF show_delivery_customer %]
|
[% END %]
[% IF is_sales_ord %]
[% LxERP.t8('Periodic Invoices') %] |
[% HTML.escape(periodic_invoices_status) %]
[% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure'), class='neutral') %]
?
[% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
|
[% END %]
[% 'Internal Notes' | $T8 %]
[% L.textarea_tag('intnotes', intnotes, style="width: 350px; height: 150px") %]
|