2 [% USE HTML %][% USE LxERP %][%- USE L -%][%- USE P -%]
4 [%- SET RO = ' readonly' %]
11 <th align="left">[% 'Notes' | $T8 %]</th>
12 <th align="left">[% 'Internal Notes' | $T8 %]</th>
18 [% L.hidden_tag("notes", notes) %]
19 <div style="width: 350px; height: 150px; border: 1px solid black">[% P.restricted_html(notes) %]</div>
21 [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
24 <td><textarea name="intnotes" rows="[% LxERP.numtextrows(intnotes, 35, 8, 2) %]" cols="35" wrap="soft"[% RO %]>[% HTML.escape(intnotes) %]</textarea></td>
28 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
29 <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description') %]</td>
43 <th align="left">[% 'Total weight' | $T8 %]</th>
45 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
59 [% PROCESS 'webdav/_list.html' %]
61 [%- LxERP.t8("Loading...") %]
67 <p>[% PRINT_OPTIONS %]</p>
70 [% 'Edit the Delivery Order' | $T8 %]<br>
71 <input type="hidden" name="action" value="dispatcher">
72 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
73 [%- UNLESS delivered %]
74 [%- IF vc == 'customer' %]
75 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
78 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
79 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
80 [%- UNLESS delivered %]
81 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
82 [%- IF vc == 'customer' %]
83 <input class="submit" type="submit" name="action_transfer_out" value="[% 'Transfer out' | $T8 %]" data-check-transfer-qty="1" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
84 [% IF transfer_default %]
85 <input class="submit" type="submit" name="action_transfer_out_default" value="[% 'Transfer out via default' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
88 <input class="submit" type="submit" name="action_transfer_in" value="[% 'Transfer in' | $T8 %]" data-check-transfer-qty="1" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
89 [% IF transfer_default %]
90 <input class="submit" type="submit" name="action_transfer_in_default" value="[% 'Transfer in via default' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
95 <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
97 <input class="submit" type="submit" name="action_mark_closed" value="[% 'Mark closed' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
99 <input type="button" class="submit" onclick="set_history_window([% id %], 'id');" name="history" id="history" value="[% 'history' | $T8 %]">
105 [% 'Workflow Delivery Order' | $T8 %]<br>
106 <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
107 [% UNLESS delivered || (vc == 'customer' && !INSTANCE_CONF.get_sales_delivery_order_show_delete) || (vc == 'vendor' && !INSTANCE_CONF.get_purchase_delivery_order_show_delete) %]
108 [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
110 <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
114 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
115 <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
118 <script type='text/javascript'>
119 $(kivi.SalesPurchase.init_on_submit_checks);