4 [%- USE L %][%- USE P -%]
12 <th align="left">[% 'Notes (will appear on hard copy)' | $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) %]
43 [%- IF INSTANCE_CONF.get_create_qrbill_invoices > 0 %]
45 <th align="right">[% 'QR bill without amount' | $T8 %]</th>
47 [%- L.checkbox_tag('qrbill_without_amount', 'checked', qrbill_without_amount) %]
54 [%- IF id && follow_ups.size %]
57 [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
67 <th align=left>[% 'Total weight' | $T8 %]</th>
69 [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
78 <th align=left>[% 'Ertrag' | $T8 %]</th>
80 [% LxERP.format_amount(marge_total, 2, 0) %]
81 <input type=hidden name="marge_total" value="[% marge_total %]">
85 <th align=left>[% 'Ertrag prozentual' | $T8 %]</th>
87 [% LxERP.format_amount(marge_percent, 2, 0) %] %
88 <input type=hidden name="marge_percent" value="[% marge_percent %]">
95 <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
96 <input name="taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
97 <b>[% 'Tax Included' | $T8 %]</b>
103 [%- UNLESS taxincluded %]
105 <th align="right">[% 'Subtotal' | $T8 %]</th>
106 <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
111 [% FOREACH item = taxaccounts_array %]
112 [% SET description_ref = item _ '_description' %]
113 [% SET rate_ref = item _ '_rate' %]
114 [% SET total_ref = item _ '_total' %]
115 [% SET netto_ref = item _ '_netto' %]
117 <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th>
118 <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
120 [%- IF taxincluded %]
122 <th align="right">[% 'Net amount' | $T8 %]</th>
123 <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
130 <th align='right'>[% 'Rounding' | $T8 %]</th>
131 <td align='right'>[% LxERP.format_amount(rounding, 2) %]</td>
136 <th align="right">[% 'Total' | $T8 %]</th>
137 <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
145 [% IF is_type_normal_invoice OR is_type_credit_note %]
146 [% PROCESS 'is/_payments.html' %]
150 [% PROCESS 'webdav/_list.html' %]
152 [% LxERP.t8('Loading...') %]
156 <input type="hidden" name="rowcount" value="[% rowcount %]">
157 <input type="hidden" name="callback" value="[% callback | html %]">
158 [% P.hidden_tag('draft_id', draft_id) %]
159 [% P.hidden_tag('draft_description', draft_description) %]
160 <input type="hidden" name="customer_discount" value="[% customer_discount %]">
161 <input type="hidden" name="gldate" value="[% gldate %]">
163 [%- IF INSTANCE_CONF.get_create_qrbill_invoices <= 0 %]
164 <input type="hidden" name="qrbill_without_amount" value="[% qrbill_without_amount %]">
167 <div id="shipto_inputs" class="hidden">
168 [%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]
171 <div id="email_inputs" style="display: none"></div>
173 <div id="print_options" style="display: none">
177 <script type='text/javascript'>
178 $(kivi.SalesPurchase.init_on_submit_checks);
181 <div id="shipto_dialog" class="hidden"></div>
182 <div id="print_dialog" class="hidden">
183 [%- PROCESS 'common/_print_dialog.html' %]