4 [%- USE L %][%- USE P -%]
12 <th align="left">[% 'Notes' | $T8 %]</th>
13 <th align="left">[% 'Internal Notes' | $T8 %]</th>
14 <th align="right">[% 'Payment / Delivery Options' | $T8 %]</th>
18 [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
21 [% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]
26 <th align="right">[% 'Payment Terms' | $T8 %]</th>
27 <td>[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
28 <script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
32 <th align="right">[% 'Delivery Terms' | $T8 %] </th>
34 [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
38 <th align="right">[% 'direct debit' | $T8 %]</th>
40 [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
46 [%- IF id && follow_ups.size %]
49 [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
59 <th align=left>[% 'Total weight' | $T8 %]</th>
61 [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
69 <input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
70 <b>[% 'Tax Included' | $T8 %]</b>
76 [%- UNLESS taxincluded %]
78 <th align="right">[% 'Subtotal' | $T8 %]</th>
79 <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
84 [% FOREACH item = taxaccounts_array %]
85 [% SET description_ref = item _ '_description' %]
86 [% SET rate_ref = item _ '_rate' %]
87 [% SET total_ref = item _ '_total' %]
88 [% SET netto_ref = item _ '_netto' %]
90 <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th>
91 <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
95 <th align="right">[% 'Net amount' | $T8 %]</th>
96 <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
102 <th align="right">[% 'Total' | $T8 %]</th>
103 <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
112 [% PROCESS 'ir/_payments.html' %]
116 [% PROCESS 'webdav/_list.html' %]
118 [%- LxERP.t8("Loading...") %]
122 <hr size="3" noshade>
124 <p>[% print_options %]</p>
126 <input type="hidden" name="rowcount" value="[% rowcount %]">
127 <input type="hidden" name="callback" value="[% callback %]">
128 [% P.hidden_tag('draft_id', draft_id) %]
129 [% P.hidden_tag('draft_description', draft_description) %]
130 <input type="hidden" name="vendor_discount" value="[% vendor_discount %]">