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 <textarea name="intnotes" rows="[% rows %]" cols="35" wrap="soft">[% intnotes %]</textarea>
26 <th align="right">[% 'Delivery Terms' | $T8 %] </th>
28 [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
32 <th align="right">[% 'direct debit' | $T8 %]</th>
34 [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
40 [%- IF id && follow_ups.size %]
43 [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
53 <th align=left>[% 'Total weight' | $T8 %]</th>
55 [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
63 <input name="taxincluded" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
64 <b>[% 'Tax Included' | $T8 %]</b>
70 [%- UNLESS taxincluded %]
72 <th align="right">[% 'Subtotal' | $T8 %]</th>
73 <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
78 [% FOREACH item = taxaccounts_array %]
79 [% SET description_ref = item _ '_description' %]
80 [% SET rate_ref = item _ '_rate' %]
81 [% SET total_ref = item _ '_total' %]
82 [% SET netto_ref = item _ '_netto' %]
84 <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %] [% $rate_ref * 100 %]%</th>
85 <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
89 <th align="right">[% 'Net amount' | $T8 %]</th>
90 <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
96 <th align="right">[% 'Total' | $T8 %]</th>
97 <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
106 [% PROCESS 'ir/_payments.html' %]
110 [% PROCESS 'webdav/_list.html' %]
112 [%- LxERP.t8("Loading...") %]
116 <hr size="3" noshade>
118 <p>[% print_options %]</p>
122 <input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="[% 'Update' | $T8 %]">
124 [% L.submit_tag("action", LxERP.t8("Storno"), confirm=LxERP.t8('Do you really want to cancel this invoice?')) %]
126 <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
127 <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
130 <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
131 <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
134 <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
137 <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
139 <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
141 [% L.button_tag('kivi.Draft.popup("ir", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
145 [%#- button for saving history %]
146 <input type="button" class="submit" onclick="set_history_window([% id | html %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
148 [% IF INSTANCE_CONF.get_ir_show_mark_as_paid %]
149 [% L.submit_tag("action", LxERP.t8('mark as paid'), confirm=LxERP.t8('This will remove the invoice from showing as unpaid even if the unpaid amount does not match the amount. Proceed?')) %]
153 <input type="hidden" name="rowcount" value="[% rowcount %]">
154 <input type="hidden" name="callback" value="[% callback %]">
155 [% P.hidden_tag('draft_id', draft_id) %]
156 [% P.hidden_tag('draft_description', draft_description) %]
157 <input type="hidden" name="vendor_discount" value="[% vendor_discount %]">