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           <textarea name="notes" rows="[% rows %]" cols="26">[% notes %]</textarea>
 
  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(){ if (this.value) set_duedate()})</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>
 
 129          <th align="right">[% 'Total' | $T8 %]</th>
 
 130          <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
 
 139 [% PROCESS 'is/_payments.html' %]
 
 142 [% PROCESS 'webdav/_list.html' %]
 
 144  [% LxERP.t8('Loading...') %]
 
 148 <hr size="3" noshade>
 
 150 <p>[% print_options %]</p>
 
 154     <input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="[% 'Update' | $T8 %]">
 
 155     <input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
 
 156     <input class="submit" type="submit" name="action" value="[% 'Print' | $T8 %]">
 
 157     <input class="submit" type="submit" name="action" value="[% 'E-mail' | $T8 %]">
 
 159     <input class="submit" type="submit" name="action" value="[% 'Storno' | $T8 %]">
 
 161     <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
 
 162     <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
 
 164 [% IF id && !is_type_credit_note %]
 
 165     <input class="submit" type="submit" name="action" value="[% 'Credit Note' | $T8 %]">
 
 168     <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
 
 169     <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
 
 171     <input class="submit" type="submit" name="action" value="[% 'Order' | $T8 %]">
 
 172     <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
 
 176       <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
 
 177       <input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
 
 178       <input class="submit" type="submit" name="action" value="[% 'Preview' | $T8 %]">
 
 179       <input class="submit" type="submit" name="action" value="[% 'E-mail' | $T8 %]">
 
 180       <input class="submit" type="submit" name="action" value="[% 'Print and Post' | $T8 %]">
 
 181       <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]">
 
 182       <input class="submit" type="submit" name="action" value="[% 'Save Draft' | $T8 %]">
 
 187       [%#- button for saving history %]
 
 188       <input type="button" class="submit" onclick="set_history_window([% id | html %]);" name="history" id="history" value="[% 'history' | $T8 %]">
 
 189       [% IF INSTANCE_CONF.get_is_show_mark_as_paid %]
 
 190           <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
 
 194 <input type="hidden" name="rowcount" value="[% rowcount %]">
 
 195 <input type="hidden" name="callback" value="[% callback | html %]">
 
 196 <input type="hidden" name="draft_id" value="[% draft_id %]">
 
 197 <input type="hidden" name="draft_description" value="[% draft_description %]">
 
 198 <input type="hidden" name="customer_discount" value="[% customer_discount %]">
 
 199 <input type="hidden" name="gldate" value="[% gldate %]">