5 [%- IF is_req_quo || is_pur_ord %]
 
   6   [%- SET allow_invoice=1 %]
 
   7 [%- ELSIF is_sales_quo && INSTANCE_CONF.get_allow_sales_invoice_from_sales_quotation %]
 
   8   [%- SET allow_invoice=1 %]
 
   9 [%- ELSIF is_sales_ord && INSTANCE_CONF.get_allow_sales_invoice_from_sales_order %]
 
  10   [%- SET allow_invoice=1 %]
 
  12   [%- SET allow_invoice=0 %]
 
  21                 <th align="left">[% 'Notes' | $T8 %]</th>
 
  22                 <th align="left">[% 'Internal Notes' | $T8 %]</th>
 
  25                 <td>[% L.textarea_tag('notes',    notes,    style="width: 350px; height: 150px", class="texteditor") %]</td>
 
  26                 <td>[% L.textarea_tag('intnotes', intnotes, style="width: 350px; height: 150px") %]</td>
 
  29                 <th align="right">[% 'Payment Terms' | $T8 %]</th>
 
  30                 <td>[% L.select_tag('payment_id', ALL_PAYMENTS, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]</td>
 
  33                 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
 
  34                 <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]</td>
 
  37 [%- IF is_sales_ord %]
 
  39              <th align="right">[%- LxERP.t8('Periodic Invoices') %]</th>
 
  41               [% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %]
 
  42               ([% HTML.escape(periodic_invoices_status) %])
 
  43               [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
 
  44               <a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank">?</a>
 
  49       [%- IF id && num_follow_ups %]
 
  51        <td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
 
  60               <th  align="left">[% 'Total weight' | $T8 %]</th>
 
  62                 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
 
  73               <th  align="left">[% 'Ertrag' | $T8 %]</th>
 
  75                 [% LxERP.format_amount(marge_total, 2) %]
 
  76                 <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
 
  80               <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
 
  82                 [% LxERP.format_amount(marge_percent, 2) %]
 
  83                 <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
 
  93             <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
 
  94             <input name="taxincluded" class="checkbox" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>[% 'Tax Included' | $T8 %]</b><br><br>
 
  97 [%- IF NOT taxincluded %]
 
  99                 <th align='right'>[% 'Subtotal' | $T8 %]</th>
 
 100                 <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
 
 106                 <th align='right'>[% 'Rounding' | $T8 %]</th>
 
 107                 <td align='right'>[% LxERP.format_amount(rounding, 2) %]</td>
 
 111                 <th align="right">[% 'Total' | $T8 %]</th>
 
 112                 <td align="right">[% LxERP.format_amount(invtotal, 2) %]
 
 113                   <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
 
 114                   <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
 
 126 [%- PROCESS 'webdav/_list.html' %]
 
 128  [%- LxERP.t8("Loading...") %]
 
 132 <input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
 
 133 [% L.hidden_tag("rowcount", rowcount) %]
 
 134 <input type="hidden" name="callback" value="[% callback | html %]">
 
 135 [% IF vc == 'customer' %]
 
 136   <input type="hidden" name="customer_discount" value="[% HTML.escape(customer_discount) %]">
 
 138   <input type="hidden" name="vendor_discount" value="[% HTML.escape(vendor_discount) %]">
 
 141 <div id="shipto_inputs" class="hidden">
 
 142  [%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]
 
 145 <div id="email_inputs" class="hidden"></div>
 
 147 <div id="print_options" class="hidden">
 
 152 <div id="shipto_dialog" class="hidden"></div>
 
 153 <div id="print_dialog" class="hidden">
 
 154  [%- PROCESS 'common/_print_dialog.html' %]