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>
29 <div class="listtop" align="left">[% 'Documents in the WebDAV repository' | $T8 %]</div>
34 <td align="left" width="30%"><b>[% 'File name' | $T8 %]</b></td>
35 <td align="left" width="70%"><b>[% 'WebDAV link' | $T8 %]</b></td>
38 [%- FOREACH file = WEBDAV %]
40 <td align="left">[% HTML.escape(file.name) %]</td>
41 <td align="left"><a href="[% HTML.escape(file.link) %]">[% HTML.escape(file.type) %]</a></td>
51 <p>[% PRINT_OPTIONS %]</p>
54 [% 'Edit the Delivery Order' | $T8 %]<br>
55 <input type="hidden" name="action" value="dispatcher">
56 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
57 [%- UNLESS delivered %]
58 [%- IF vc == 'customer' %]
59 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
62 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
63 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]">
64 [%- UNLESS delivered %]
65 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
66 [%- IF vc == 'customer' %]
67 <input class="submit" type="submit" name="action_transfer_out" onclick="return check_transfer_qty()" value="[% 'Transfer out' | $T8 %]">
69 <input class="submit" type="submit" name="action_transfer_in" onclick="return check_transfer_qty()" value="[% 'Transfer in' | $T8 %]">
73 <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
75 <input class="submit" type="submit" name="action_mark_closed" value="[% 'Mark closed' | $T8 %]">
77 <input type="button" class="submit" onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
83 [% 'Workflow Delivery Order' | $T8 %]<br>
84 <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]">
85 [% UNLESS delivered %]
86 <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
88 <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
92 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
93 <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
96 <script type='text/javascript'>
97 function check_transfer_qty() {
99 var rowcount = $('input[name=rowcount]').val();
100 for (var i = 1; i < rowcount; i++) {
101 if ($('#stock_in_out_qty_matches_' + i).val() != 1) {
109 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 %]");