X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fio%2Fship_to.html;h=e3e6500ba5a3221bbe18a28bf5eb895bf5745a5e;hb=fdbb6888ea00ca5f6450015ea70bb3d5f89edfc9;hp=ca5560c1035e7fbb55daba87cb1f6e8b51cfbb6e;hpb=fa7fc7eeb3ca718914affee06c0629a08d571288;p=kivitendo-erp.git diff --git a/templates/webpages/io/ship_to.html b/templates/webpages/io/ship_to.html index ca5560c10..e3e6500ba 100644 --- a/templates/webpages/io/ship_to.html +++ b/templates/webpages/io/ship_to.html @@ -9,11 +9,15 @@ shiptozipcode: "[% JavaScript.escape(vc_obj.zipcode) %]", shiptocity: "[% JavaScript.escape(vc_obj.city) %]", shiptocountry: "[% JavaScript.escape(vc_obj.country) %]", + shiptogln: "[% JavaScript.escape(vc_obj.gln) %]", shiptocontact: "[% JavaScript.escape(vc_obj.contact) %]", shiptocp_gender: "[% JavaScript.escape(vc_obj.cp_gender) %]", shiptophone: "[% JavaScript.escape(vc_obj.phone) %]", shiptofax: "[% JavaScript.escape(vc_obj.fax) %]", shiptoemail: "[% JavaScript.escape(vc_obj.email) %]" +[% FOREACH var = cvars %] + , "shiptocvar_[% JavaScript.escape(var.config.name) %]": "" +[% END %] } [% FOREACH shipto = vc_obj.shipto %] @@ -25,11 +29,15 @@ shiptozipcode: "[% JavaScript.escape(shipto.shiptozipcode) %]", shiptocity: "[% JavaScript.escape(shipto.shiptocity) %]", shiptocountry: "[% JavaScript.escape(shipto.shiptocountry) %]", + shiptogln: "[% JavaScript.escape(shipto.shiptogln) %]", shiptocontact: "[% JavaScript.escape(shipto.shiptocontact) %]", shiptocp_gender: "[% JavaScript.escape(shipto.shiptocp_gender) %]", shiptophone: "[% JavaScript.escape(shipto.shiptophone) %]", shiptofax: "[% JavaScript.escape(shipto.shiptofax) %]", shiptoemail: "[% JavaScript.escape(shipto.shiptoemail) %]" + [% FOREACH var = shipto.cvars_by_config %] + , "shiptocvar_[% JavaScript.escape(var.config.name) %]": "[% JavaScript.escape(var.value_as_text) %]" + [% END %] } [% END %] ]; @@ -61,9 +69,9 @@ [% select_options = [ [ 0, LxERP.t8("Billing Address") ] ] ; FOREACH shipto = vc_obj.shipto ; - city = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ; - title = [ shipto.shiptoname, shipto.shiptostreet, city ] ; - CALL select_options.import([ [ loop.count, title.grep('\S').join("; ") ] ]) ; + tmpcity = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ; + tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ; + CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ; END ; '' %] @@ -122,6 +130,11 @@ [% HTML.escape(country) %] [% L.input_tag("shiptocountry", shiptocountry, "size", "35") %] + + [% LxERP.t8('GLN') %] + [% HTML.escape(gln) %] + [% L.input_tag("shiptogln", shiptogln, "size", "35") %] + [% LxERP.t8('Contact') %] [% HTML.escape(contact) %] @@ -149,6 +162,13 @@ [% HTML.escape(email) %] [% L.input_tag("shiptoemail", shiptoemail, "size", "35") %] +[% FOREACH var = cvars %] + + [% HTML.escape(var.config.description) %] + + [% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %] + +[% END %]