[%- USE T8 %] [%- USE HTML %] [%- USE LxERP %] [%- USE L %][%- USE P -%] [%- IF show_weight %] [%- END %]
[%- IF id && follow_ups.size %] [%- END %]
[% 'Notes (will appear on hard copy)' | $T8 %] [% 'Internal Notes' | $T8 %] [% 'Payment / Delivery Options' | $T8 %]
[% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
[% 'Payment Terms' | $T8 %] [%- INCLUDE 'generic/multibox.html' name = 'payment_id', style = 'width: 250px', DATA = payment_terms, id_key = 'id', label_key = 'description', show_empty = 1 allow_textbox = 0 -%]
[% '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) %]
[% 'Ertrag' | $T8 %] [% LxERP.format_amount(marge_total, 2, 0) %]
[% 'Ertrag prozentual' | $T8 %] [% LxERP.format_amount(marge_percent, 2, 0) %] %
[%- 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 'is/_payments.html' %] [% PROCESS 'webdav/_list.html' %]
[% LxERP.t8('Loading...') %]

[% print_options %]

[% IF id %] [% IF show_storno %] [% END %] [% IF id && !is_type_credit_note %] [% END %] [% IF show_delete && !storno %] [% END %] [% ELSE # no id %] [% UNLESS locked %] [%- END %] [% END # id %] [% IF id %] [%#- button for saving history %] [% IF INSTANCE_CONF.get_is_show_mark_as_paid %] [% END %] [% END %]