[%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] [%- USE L %][%- USE P -%] [%- IF show_weight %] [%- END %]
[%- IF id && follow_ups.size %] [%- END %]
[% 'Notes' | $T8 %] [% 'Internal Notes' | $T8 %] [% 'Payment / Delivery Options' | $T8 %]
[% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %] [% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
[% 'Payment Terms' | $T8 %] [% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
[% 'Delivery Terms' | $T8 %] [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
[% 'direct debit' | $T8 %] [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
[%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
[% 'Total weight' | $T8 %] [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
[%- IF taxaccounts %] [% 'Tax Included' | $T8 %]

[%- END %] [%- UNLESS taxincluded %] [%- END %] [%# tax %] [% FOREACH item = taxaccounts_array %] [% SET description_ref = item _ '_description' %] [% SET rate_ref = item _ '_rate' %] [% SET total_ref = item _ '_total' %] [% SET netto_ref = item _ '_netto' %] [%- IF taxincluded %] [%- END %] [%- END %]
[% 'Subtotal' | $T8 %] [% LxERP.format_amount(invsubtotal, 2) %]
[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]% [% LxERP.format_amount($total_ref, 2) %]
[% 'Net amount' | $T8 %] [% LxERP.format_amount($netto_ref, 2) %]
[% 'Total' | $T8 %] [% LxERP.format_amount(invtotal, 2) %]
[% PROCESS 'ir/_payments.html' %] [% PROCESS 'webdav/_list.html' %]
[%- LxERP.t8("Loading...") %]

[% print_options %]

[% P.hidden_tag('draft_id', draft_id) %] [% P.hidden_tag('draft_description', draft_description) %]