[%- USE T8 %] [% USE HTML %][% USE LxERP %][%- USE L -%] [%- IF delivered %] [%- SET RO = ' readonly' %] [%- END %]
[% 'Notes' | $T8 %] [% 'Internal Notes' | $T8 %]
[% '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 %]