X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcommon%2F_ship_to_dialog.html;h=cb21c4fbd3dcaddb6bf51670dbe98a05ad271927;hb=94f5cb152afa9210162295b6727801c296af0631;hp=c49aef7438ff5d3820a31e255cc0fee2c0c030ad;hpb=5accc16ff55a2775678f2e83a59e37f3282ca8f8;p=kivitendo-erp.git diff --git a/templates/webpages/common/_ship_to_dialog.html b/templates/webpages/common/_ship_to_dialog.html index c49aef743..cb21c4fbd 100644 --- a/templates/webpages/common/_ship_to_dialog.html +++ b/templates/webpages/common/_ship_to_dialog.html @@ -57,6 +57,18 @@ [% 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 ; +'' %] + + @@ -145,7 +157,7 @@

- [% L.button_tag("kivi.SalesPurchase.submit_custom_shipto()", LxERP.t8("Apply")) %] + [% 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")) %]