[%- USE T8 %] [% USE HTML %][% USE LxERP %][%- USE L -%][%- USE P -%] [%- IF delivered %] [%- SET RO = ' readonly' %] [%- END %]
[% 'Notes' | $T8 %] [% 'Internal Notes' | $T8 %]
[% IF delivered %] [% L.hidden_tag("notes", notes) %]
[% P.restricted_html(notes) %]
[% ELSE %] [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] [% END %]
[% 'Delivery Terms' | $T8 %] [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description') %]
[%- IF show_weight %]
[% 'Total weight' | $T8 %] [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
[%- END %]

[% PROCESS 'webdav/_list.html' %]
[%- LxERP.t8("Loading...") %]

[% PRINT_OPTIONS %]

[% 'Edit the Delivery Order' | $T8 %]
[%- UNLESS delivered %] [%- IF vc == 'customer' %] [%- END %] [%- END %] [%- UNLESS delivered %] [%- IF vc == 'customer' %] [% IF transfer_default %] [%- END %] [%- ELSE %] [% IF transfer_default %] [%- END %] [%- END %] [%- END %] [%- IF id %] [%- UNLESS closed %] [%- END %] [%- END %]

[%- IF id %]

[% 'Workflow Delivery Order' | $T8 %]
[% UNLESS delivered || (vc == 'customer' && !INSTANCE_CONF.get_sales_delivery_order_show_delete) || (vc == 'vendor' && !INSTANCE_CONF.get_purchase_delivery_order_show_delete) %] [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %] [% END %]

[%- END %]