email_dialog.dialog("close");
};
+ ns.set_number_in_title = function(elt) {
+ $('#nr_in_title').html($(elt).val());
+ };
+
ns.reload_cv_dependant_selections = function() {
var data = $('#order_form').serializeArray();
data.push({ name: 'action', value: 'Order/customer_vendor_changed' });
[%- 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">
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
<tr>
<th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
- <td>[% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11) %]</td>
+ <td>[% L.input_tag('order.ordnumber', SELF.order.ordnumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]</td>
</tr>
[%- END -%]
[%- END -%]
<tr>
<th width="70%" align="right" nowrap>[% quo_nr_txt | $T8 %]</th>
- <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %]</td>
+ [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
+ <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %]</td>
+ [%- ELSE -%]
+ <td>[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]</td>
+ [%- END -%]
</tr>
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]