X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/1c181c11d5637d4388b138942f2edcd3c97e23c4..fbcd5580:/templates/webpages/io/ship_to.html diff --git a/templates/webpages/io/ship_to.html b/templates/webpages/io/ship_to.html index 476aaebb0..e3e6500ba 100644 --- a/templates/webpages/io/ship_to.html +++ b/templates/webpages/io/ship_to.html @@ -15,6 +15,9 @@ 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 %] @@ -32,6 +35,9 @@ 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 %] ]; @@ -63,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 ; '' %] @@ -156,6 +162,13 @@