[%- 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>
-<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) %]
+<div id="shipto_dialog" class="hidden"></div>
+
+<form method="post" action="controller.pl" id="order_form"
+ data-transport-cost-reminder-article-id="[% HTML.escape(transport_cost_reminder_article.id) %]"
+ data-transport-cost-reminder-article-description="[% HTML.escape(transport_cost_reminder_article.displayable_name) %]">
+ [% 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 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>
+
</div>
+
</form>