[%- USE LxERP %]
[%- USE L %]
[%- USE HTML %]
-<h1>[% FORM.title %]</h1>
+<h1>[% FORM.title %] <span id='nr_in_title'>[%- SELF.order.number -%]</span></h1>
<div id="print_options" style="display:none">
<form method="post" action="controller.pl" id="print_options_form">
</form>
</div>
+<div id="shipto_dialog" class="hidden"></div>
+
<form method="post" action="controller.pl" id="order_form">
- [% L.hidden_tag('callback', FORM.callback) %]
- [% L.hidden_tag('type', FORM.type) %]
- [% L.hidden_tag('id', SELF.order.id) %]
+ [% L.hidden_tag('callback', FORM.callback) %]
+ [% L.hidden_tag('type', FORM.type) %]
+ [% L.hidden_tag('id', SELF.order.id) %]
+ [% L.hidden_tag('converted_from_oe_id', SELF.converted_from_oe_id) %]
[%- INCLUDE 'common/flash.html' %]
<div id="ui-tabs-1">
[%- LxERP.t8("Loading...") %]
</div>
- </div>
- <br>
-
- [% L.hidden_tag('action', 'Order/dispatch') %]
+ <div id="shipto_inputs" class="hidden">
+ [%- PROCESS 'common/_ship_to_dialog.html'
+ vc_obj=SELF.order.customervendor
+ cs_obj=SELF.order.custom_shipto
+ cvars=SELF.order.custom_shipto.cvars_by_config
+ id_selector='#order_shipto_id' %]
+ </div>
- [% L.button_tag('kivi.Order.save(' _ INSTANCE_CONF.get_order_warn_duplicate_parts _ ')', LxERP.t8('Save')) %]
- [% L.button_tag('kivi.Order.show_print_options()', LxERP.t8('Print')) %]
- [% L.button_tag('kivi.Order.email()', LxERP.t8('E-mail')) %]
- [% L.button_tag('kivi.Order.save_and_delivery_order(' _ INSTANCE_CONF.get_order_warn_duplicate_parts _ ')', LxERP.t8('Save and Delivery Order')) %]
-[%- IF SELF.order.id && ( (SELF.cv == 'customer' && INSTANCE_CONF.get_sales_order_show_delete) || (SELF.cv == 'vendor' && INSTANCE_CONF.get_purchase_order_show_delete) ) %]
- [% L.button_tag('kivi.Order.delete_order()', LxERP.t8('Delete'), confirm=LxERP.t8("Are you sure?")) %]
-[%- END %]
-[%- IF SELF.order.id && INSTANCE_CONF.get_doc_storage %]
- [% L.button_tag('kivi.File.downloadOrderitemsFiles(\'' _ SELF.order.type _'\',' _ SELF.order.id _')',LxERP.t8('Download all Attachments')) %]
-[%- END %]
+ </div>
</form>