[% USE HTML %][% USE L %][% USE LxERP %][%- USE JavaScript -%] [% select_options = [ [ 0, LxERP.t8("Billing Address") ] ] ; FOREACH shipto = vc_obj.shipto ; tmpcity = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ; tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ; CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ; END ; '' %]
[% LxERP.t8("Copy address from master data") %]: [% L.select_tag("", select_options, id="shipto_to_copy", style="width: 300px") %] [% L.button_tag("kivi.SalesPurchase.copy_shipto_address()", LxERP.t8("Copy")) %]
[% IF cs_obj ; fields = ['shiptoname', 'shiptodepartment_1', 'shiptodepartment_2', 'shiptostreet', 'shiptozipcode', 'shiptocity', 'shiptocountry', 'shiptogln', 'shiptocontact', 'shiptocp_gender', 'shiptophone', 'shiptofax', 'shiptoemail'] ; FOREACH field = fields ; $field = cs_obj.$field ; END ; END ; '' %][% LxERP.t8('Billing Address') %] | [% LxERP.t8('Shipping Address') %] | |
---|---|---|
[%- IF vc == "customer" %][%- LxERP.t8('Customer Number') %][%- ELSE %][%- LxERP.t8('Vendor Number') %][%- END %] | [%- IF vc == "customer" %][%- HTML.escape(vc_obj.customernumber) %][%- ELSE %][%- HTML.escape(vc_obj.vendornumber) %][%- END %] | |
[% LxERP.t8('Company Name') %] | [% HTML.escape(vc_obj.name) %] | [% L.input_tag("shiptoname", shiptoname, "size", "35") %] |
[% LxERP.t8('Department') %] | [% HTML.escape(vc_obj.department_1) %] | [% L.input_tag("shiptodepartment_1", shiptodepartment_1, "size", "35") %] |
[% HTML.escape(vc_obj.department_2) %] | [% L.input_tag("shiptodepartment_2", shiptodepartment_2, "size", "35") %] | |
[% LxERP.t8('Street') %] | [% HTML.escape(vc_obj.street) %] | [% L.input_tag("shiptostreet", shiptostreet, "size", "35") %] |
[% LxERP.t8('Zipcode') %] | [% HTML.escape(vc_obj.zipcode) %] | [% L.input_tag("shiptozipcode", shiptozipcode, "size", "35") %] |
[% LxERP.t8('City') %] | [% HTML.escape(vc_obj.city) %] | [% L.input_tag("shiptocity", shiptocity, "size", "35") %] |
[% LxERP.t8('Country') %] | [% HTML.escape(vc_obj.country) %] | [% L.input_tag("shiptocountry", shiptocountry, "size", "35") %] |
[% LxERP.t8('GLN') %] | [% HTML.escape(vc_obj.gln) %] | [% L.input_tag("shiptogln", shiptogln, "size", "35") %] |
[% LxERP.t8('Contact') %] | [% HTML.escape(vc_obj.contact) %] | [% L.input_tag("shiptocontact", shiptocontact, "size", "35") %] |
[% LxERP.t8('Gender') %] | [% L.select_tag('shiptocp_gender', [ [ 'm', LxERP.t8('male') ], [ 'f', LxERP.t8('female') ] ], 'default' = shiptocp_gender) %] | |
[% LxERP.t8('Phone') %] | [% HTML.escape(vc_obj.phone) %] | [% L.input_tag("shiptophone", shiptophone, "size", "35") %] |
[% LxERP.t8('Fax') %] | [% HTML.escape(vc_obj.fax) %] | [% L.input_tag("shiptofax", shiptofax, "size", "35") %] |
[% LxERP.t8('E-mail') %] | [% HTML.escape(vc_obj.email) %] | [% L.input_tag("shiptoemail", shiptoemail, "size", "35") %] |
[% HTML.escape(var.config.description) %] | [% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %] |
[% L.button_tag("kivi.SalesPurchase.submit_custom_shipto('" _ id_selector _ "')", LxERP.t8("Apply")) %] [% L.button_tag("kivi.SalesPurchase.reset_shipto_fields()", LxERP.t8("Reset")) %] [% L.button_tag("kivi.SalesPurchase.clear_shipto_fields()", LxERP.t8("Clear fields")) %] [% L.button_tag("\$('#shipto_dialog').dialog('close');", LxERP.t8("Abort")) %]