2 [% USE HTML %][% USE LxERP %]
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>
30 <th align="left">[% 'Total weight' | $T8 %]</th>
32 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
33 <input type="hidden" name="totalweight" value="[% HTML.escape(totalweight) %]">
45 [% PROCESS 'webdav/_list.html' %]
47 [%- LxERP.t8("Loading...") %]
53 <p>[% PRINT_OPTIONS %]</p>
56 [% 'Edit the Delivery Order' | $T8 %]<br>
57 <input type="hidden" name="action" value="dispatcher">
58 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
59 [%- UNLESS delivered %]
60 [%- IF vc == 'customer' %]
61 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
64 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
65 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
66 [%- UNLESS delivered %]
67 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
68 [%- IF vc == 'customer' %]
69 <input class="submit" type="submit" name="action_transfer_out" onclick="return check_transfer_qty()" value="[% 'Transfer out' | $T8 %]">
71 <input class="submit" type="submit" name="action_transfer_in" onclick="return check_transfer_qty()" value="[% 'Transfer in' | $T8 %]">
75 <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
77 <input class="submit" type="submit" name="action_mark_closed" value="[% 'Mark closed' | $T8 %]">
79 <input type="button" class="submit" onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
85 [% 'Workflow Delivery Order' | $T8 %]<br>
86 <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
87 [% UNLESS delivered || (vc == 'customer' && !INSTANCE_CONF.get_sales_delivery_order_show_delete) || (vc == 'vendor' && !INSTANCE_CONF.get_purchase_delivery_order_show_delete) %]
88 <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
90 <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
94 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
95 <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
98 <script type='text/javascript'>
99 function check_transfer_qty() {
100 var all_match = true;
101 var rowcount = $('input[name=rowcount]').val();
102 for (var i = 1; i < rowcount; i++) {
103 if ($('#stock_in_out_qty_matches_' + i).val() != 1) {
111 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 %]");