- [% L.select_tag('shipto_id', ALL_SHIPTO, default=shipto_id, value_key='shipto_id', title_key='displayable_id', with_empty=1, style='width: 250px', onChange="document.getElementById('update_button').click();") %]
+[%- IF ALL_SHIPTO.size %]
+ [% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
+ L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
+[%- END %]
+ [% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
+ </td>
+ </tr>
+
+[%- IF is_sales && vc_obj.additional_billing_addresses.as_list.size %]
+ <tr>
+ <th align="right">[% 'Custom Billing Address' | $T8 %]</th>
+ <td>
+ [% L.select_tag('billing_address_id', vc_obj.additional_billing_addresses,
+ with_empty=1, default=billing_address_id, value_key='id', title_key='displayable_id', style='width: 250px') %]