2 [% USE HTML %][% USE LxERP %][%- USE L -%]
4 [%- SET RO = ' readonly' %]
11 <th align="left">[% 'Notes' | $T8 %]</th>
12 <th align="left">[% 'Internal Notes' | $T8 %]</th>
16 <td><textarea name="notes" rows="[% LxERP.numtextrows(notes, 25, 8, 2) %]" cols="25" wrap="soft"[% RO %]>[% HTML.escape(notes) %]</textarea></td>
17 <td><textarea name="intnotes" rows="[% LxERP.numtextrows(intnotes, 35, 8, 2) %]" cols="35" wrap="soft"[% RO %]>[% HTML.escape(intnotes) %]</textarea></td>
21 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
22 <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description') %]</td>
36 <th align="left">[% 'Total weight' | $T8 %]</th>
38 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
52 [% PROCESS 'webdav/_list.html' %]
54 [%- LxERP.t8("Loading...") %]
60 <p>[% PRINT_OPTIONS %]</p>
63 [% 'Edit the Delivery Order' | $T8 %]<br>
64 <input type="hidden" name="action" value="dispatcher">
65 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
66 [%- UNLESS delivered %]
67 [%- IF vc == 'customer' %]
68 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
71 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
72 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
73 [%- UNLESS delivered %]
74 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
75 [%- IF vc == 'customer' %]
76 <input class="submit" type="submit" name="action_transfer_out" onclick="return check_transfer_qty()" value="[% 'Transfer out' | $T8 %]">
77 [% IF transfer_default %]
78 <input class="submit" type="submit" name="action_transfer_out_default" value="[% 'Transfer out via default' | $T8 %]">
81 <input class="submit" type="submit" name="action_transfer_in" onclick="return check_transfer_qty()" value="[% 'Transfer in' | $T8 %]">
82 [% IF transfer_default %]
83 <input class="submit" type="submit" name="action_transfer_in_default" value="[% 'Transfer in via default' | $T8 %]">
88 <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
90 <input class="submit" type="submit" name="action_mark_closed" value="[% 'Mark closed' | $T8 %]">
92 <input type="button" class="submit" onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
98 [% 'Workflow Delivery Order' | $T8 %]<br>
99 <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
100 [% UNLESS delivered || (vc == 'customer' && !INSTANCE_CONF.get_sales_delivery_order_show_delete) || (vc == 'vendor' && !INSTANCE_CONF.get_purchase_delivery_order_show_delete) %]
101 [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
103 <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
107 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
108 <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
111 <script type='text/javascript'>
112 function check_transfer_qty() {
113 var all_match = true;
114 var rowcount = $('input[name=rowcount]').val();
115 for (var i = 1; i < rowcount; i++) {
116 if ($('#stock_in_out_qty_matches_' + i).val() != 1) {
124 return confirm("[% 'There are still transfers not matching the qty of the delivery order. Stock operations can not be changed later. Do you really want to proceed?' | $T8 %]");