X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/345248fd59538b5bfabc5fc54defdc17f76481f3..c5d397d9b1c2e13dfdaf644fbd98cd41d00a2909:/templates/webpages/io/ship_to.html diff --git a/templates/webpages/io/ship_to.html b/templates/webpages/io/ship_to.html index 32c326ebe..ca5560c10 100644 --- a/templates/webpages/io/ship_to.html +++ b/templates/webpages/io/ship_to.html @@ -1,7 +1,81 @@ -[% USE HTML %][% USE L %][% USE LxERP %] - +[% USE HTML %][% USE L %][% USE LxERP %][%- USE JavaScript -%] + + + +[% 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("; ") ] ]) ; + END ; + '' %]
+ [% L.hidden_tag("shipto_id", shipto_id) %] + +

+ [% LxERP.t8("Copy address from master data") %]: + [% L.select_tag("", select_options, id="shipto_to_copy", style="width: 400px") %] + [% L.button_tag("copy_address()", LxERP.t8("Copy")) %] + [% L.button_tag("clear_fields()", LxERP.t8("Clear fields")) %] +

@@ -83,5 +157,5 @@ [% L.hidden_tag("nextsub", nextsub) %] [% L.hidden_tag("previousform", previousform) %] - [% L.submit_tag("__dummy", LxERP.t8("Continue")) %] + [% L.button_tag("clear_shipto_id_before_submit()", LxERP.t8("Continue")) %]