X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fio%2Fship_to.html;h=ca5560c1035e7fbb55daba87cb1f6e8b51cfbb6e;hb=6e6038682b1a2b6e6bc74f1eee40eba21afcb7e9;hp=318a5ebcdbdc64ca010e570d3e50284b0cf9724d;hpb=4fa7102b36468079313df9e579f7537d49aab859;p=kivitendo-erp.git diff --git a/templates/webpages/io/ship_to.html b/templates/webpages/io/ship_to.html index 318a5ebcd..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,7 +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")) %] - -