3 [%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %]
 
   5 <script type="text/javascript" src="js/common.js"></script>
 
   6 <script type="text/javascript" src="js/delivery_vendor_selection.js"></script>
 
   7 <script type="text/javascript" src="js/vendor_selection.js"></script>
 
   8 <script type="text/javascript" src="js/calculate_qty.js"></script>
 
   9 <script type="text/javascript" src="js/follow_up.js"></script>
 
  10 <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
 
  12 <form method="post" name="invoice" action="[% script %]">
 
  14 <p>[% saved_message %]</p>
 
  16 [%- FOREACH key = HIDDENS %]
 
  17 <input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key)  %]">
 
  19 <input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
 
  20 <input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
 
  21 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
 
  22 <input type="hidden" name="follow_up_rowcount" value="1">
 
  24 <input type="hidden" name="lizenzen" value="[% lizenzen %]">
 
  26 <p><div class="listtop" width="100%">[% title %]</div></p>
 
  33           <th align="right">Vendor</th>
 
  35             [%- INCLUDE 'generic/multibox.html'
 
  37                  style         = 'width: 250px',
 
  44                  onChange      = "document.getElementById('update_button').click();" -%]
 
  45             <input type="button" value="Details (one letter abbreviation)" onclick="show_vc_details('[% vc | html %]')">
 
  47           <input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
 
  48           <input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
 
  49           <input type="hidden" name="oldvendor" value="[% HTML.escape(oldvendor) %]">
 
  50           <input type="hidden" name="selectvendor" value="[% HTML.escape(selectvendor) %]">
 
  52 [%- IF ALL_CONTACTS.size %]
 
  54           <th align="right">Contact Person</th>
 
  56             [%- INCLUDE 'generic/multibox.html'
 
  58                  style      = 'width: 250px',
 
  61                  label_sub  = 'contact_labels',
 
  67           <td align="right">Credit Limit</td>
 
  69             [% LxERP.format_amount(creditlimit, 0, '0') %]; Remaining
 
  70             <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
 
  74           <th align="right" nowrap>Record in</th>
 
  75           <td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td>
 
  76           <input type="hidden" name="selectAP" value="[% selectAP %]">
 
  79           <th align="right">Steuersatz</th>
 
  81             [%- INCLUDE 'generic/multibox.html'
 
  83                  style      = 'width: 250px'
 
  86                  readonly   = (id ? 1 : 0)
 
  87                  label_key  = 'description' -%]
 
  90           <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
 
  93 [%- IF all_departments %]
 
  95           <th align="right" nowrap>Department</th>
 
  97             [%- INCLUDE 'generic/multibox.html'
 
  98                  name       = 'department_id',
 
  99                  style      = 'width: 250px',
 
 100                  DATA       = all_departments,
 
 102                  label_sub  = 'department_labels',
 
 109           <th align="right">Currency</th>
 
 110           <td>[% currencies %]</td>
 
 113         <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
 
 114         <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
 
 115 [%- IF show_exchangerate %]
 
 117           <th align="right">Exchangerate</th>
 
 120             [% LxERP.format_amount(exchangerate, 2) %]
 
 122             <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
 
 129     <td align="right" valign="top">
 
 132           <th align="right">Employee</th>
 
 134             [%- INCLUDE 'generic/multibox.html'
 
 135                  name       = 'employee_id',
 
 136                  DATA       = ALL_EMPLOYEES,
 
 138                  label_sub  = 'sales_employee_labels' -%]
 
 142 [%- IF is_type_credit_note %]
 
 144           <th align="right" nowrap>Credit Note Number</th>
 
 145           <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
 
 148           <th align="right">Credit Note Date</th>
 
 150             <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
 
 151             <input type="button" name="invdate_button" id="trigger1" value="button">
 
 156           <th align="right" nowrap>Invoice Number</th>
 
 157           <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
 
 160           <th align="right">Invoice Date</th>
 
 162             <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
 
 163             <input type="button" name="invdate_button" id="trigger1" value="button">
 
 167           <th align="right">Due Date</th>
 
 169             <input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)">
 
 170             <input type="button" name="duedate_button" id="trigger2" value="button">
 
 176           <th align="right" nowrap>Order Number</th>
 
 177           <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
 
 180           <th align="right" nowrap>Order Date</th>
 
 181           <td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)">
 
 182           <input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
 
 185           <th align="right" nowrap>Quotation Date</th>
 
 186           <td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)">
 
 187            <input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
 
 190           <th align="right" nowrap>Project Number</th>
 
 192             [%- INCLUDE 'generic/multibox.html'
 
 193                  name       = 'globalproject_id',
 
 196                  label_key  = 'projectnumber',
 
 198                  onChange   = "document.getElementById('update_button').click();" -%]
 
 211   <script type="text/javascript" src="js/show_form_details.js"></script>
 
 212   <script type="text/javascript" src="js/show_vc_details.js"></script>
 
 213   <script type="text/javascript" src="js/show_history.js"></script>
 
 214   <script type="text/javascript">
 
 216      Calendar.setup({ inputField : "invdate",      ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
 
 217      Calendar.setup({ inputField : "duedate",      ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
 
 218      Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" });
 
 219      Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" });
 
 220      $('document').ready(function(){
 
 221 [% IF creditwarning != '' %]
 
 222        alert('Credit Limit exceeded!!!');
 
 226        setupDateFormat('[% dateformat %]', 'Falsches Datumsformat!');
 
 227        setupPoints('[% numberformat %]', 'wrongformat');
 
 232   <input type="hidden" name="webdav" value="[% webdav %]">