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 <textarea name="intnotes" rows="[% rows %]" cols="35">[% intnotes %]</textarea>
26 <th align="right">[% 'Payment Terms' | $T8 %]</th>
28 [%- INCLUDE 'generic/multibox.html'
30 style = 'width: 250px',
33 label_key = 'description',
36 <script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
40 <th align="right">[% 'Delivery Terms' | $T8 %] </th>
42 [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
46 <th align="right">[% 'direct debit' | $T8 %]</th>
48 [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
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>
146 [% PROCESS 'is/_payments.html' %]
149 [% PROCESS 'webdav/_list.html' %]
151 [% LxERP.t8('Loading...') %]
155 <hr size="3" noshade>
157 <p>[% print_options %]</p>
159 <div id='form_action_bar'>
160 <input type="hidden" id="action" name="action" value="dispatcher">
163 <input class="submit" type="submit" accesskey="u" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
164 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
165 <input class="submit" type="submit" name="action_print" id="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
166 <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
168 [% L.submit_tag("action_storno", LxERP.t8("Storno"), "data-require-transaction-description"=INSTANCE_CONF.get_require_transaction_description_ps, confirm=LxERP.t8('Do you really want to cancel this invoice?')) %]
170 <input class="submit" type="submit" name="action_post_payment" value="[% 'Post Payment' | $T8 %]">
171 <input class="submit" type="submit" name="action_use_as_new" value="[% 'Use As New' | $T8 %]">
173 [% IF id && !is_type_credit_note %]
174 <input class="submit" type="submit" name="action_credit_note" value="[% 'Credit Note' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
176 [% IF show_delete && (!storno || storno_id) %]
177 [% L.submit_tag("action_delete", LxERP.t8("Delete"), confirm=LxERP.t8('Do you really want to delete this invoice?')) %]
179 [% IF show_delete && !storno %]
180 <input class="submit" type="submit" name="action_post" value="[% 'Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
182 <input class="submit" type="submit" name="action_order" value="[% 'Order' | $T8 %]">
183 <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
187 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
188 <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
189 <input class="submit" type="submit" name="action_preview" value="[% 'Preview' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
190 <input class="submit" type="submit" name="action_post_and_e_mail" value="[% 'Post and E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
191 <input class="submit" type="submit" name="action_print_and_post" value="[% 'Print and Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
192 <input class="submit" type="submit" name="action_post" value="[% 'Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
193 [% L.button_tag('kivi.Draft.popup("is", "invoice", "' _ draft_id _ '", "' _ draft_description _ '")', LxERP.t8('Drafts')) %]
198 [%#- button for saving history %]
199 <input type="button" class="submit" onclick="set_history_window([% id | html %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
200 [% IF INSTANCE_CONF.get_is_show_mark_as_paid %]
201 <input type="submit" class="submit" name="action_mark_as_paid" value="[% 'mark as paid' | $T8 %]">
206 <a href="[% callback %]">[% 'back' | $T8 %]</a>
210 <input type="hidden" name="rowcount" value="[% rowcount %]">
211 <input type="hidden" name="callback" value="[% callback | html %]">
212 <input type="hidden" name="draft_id" value="[% draft_id %]">
213 <input type="hidden" name="draft_description" value="[% draft_description %]">
214 <input type="hidden" name="customer_discount" value="[% customer_discount %]">
215 <input type="hidden" name="gldate" value="[% gldate %]">
217 <script type='text/javascript'>
218 $(kivi.SalesPurchase.init_on_submit_checks);