4 <body onLoad="[% onload %]">
6 <form method="post" name="oe" action="[% script %]">
8 <script type="text/javascript" src="js/common.js"></script>
9 <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
10 <script type="text/javascript" src="js/vendor_selection.js"></script>
11 <script type="text/javascript" src="js/calculate_qty.js"></script>
12 <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
13 <script type="text/javascript" src="js/follow_up.js"></script>
15 [%- FOREACH row = HIDDENS %]
16 <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
19 <input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
21 <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
22 <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
23 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
24 <input type="hidden" name="follow_up_rowcount" value="1">
26 <div class="listtop">[% title %]</div>
37 <th align="right">[% IF vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
39 [%- INCLUDE 'generic/multibox.html'
41 style = 'width: 250px',
42 DATA = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
48 onChange = "document.getElementById('update_button').click();" -%]
49 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% HTML.escape(vc) %]')">
52 [%- IF ALL_CONTACTS.size %]
54 <th align="right">[% 'Contact Person' | $T8 %]</th>
56 [%- INCLUDE 'generic/multibox.html'
58 style = 'width: 250px',
61 label_sub = 'contact_labels',
66 [%- IF ALL_SHIPTO.size %]
68 <th align="right">[% 'Shipping Address' | $T8 %]</th>
70 [%- INCLUDE 'generic/multibox.html'
72 style = 'width: 250px',
75 label_sub = 'shipto_labels',
77 onChange = "document.getElementById('update_button').click();" -%]
83 <td align="right">[% 'Credit Limit' | $T8 %]</td>
84 <td>[% LxERP.format_amount(creditlimit, 0) %]; [% 'Remaining' | $T8 %] <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
89 <th align="right">[% business_label %]</th>
90 <td>[% HTML.escape(business) %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_percent(tradediscount) %] %</td>
93 [%- IF max_dunning_level %]
95 <th align="right">[% 'Max. Dunning Level' | $T8 %]:</th>
97 <b>[% HTML.escape(max_dunning_level) %]</b>;
98 [% 'Dunning Amount' | $T8 %]: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
103 <th align="right">[% 'Steuersatz' | $T8 %]</th>
105 [%- INCLUDE 'generic/multibox.html'
107 style = 'width: 250px',
110 label_key = 'description' -%]
113 [%- IF ALL_DEPARTMENTS %]
115 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
117 [%- INCLUDE 'generic/multibox.html'
118 name = 'department_id',
119 style = 'width: 250px',
120 DATA = ALL_DEPARTMENTS,
122 label_sub = 'department_labels',
130 <th align="right">[% 'Currency' | $T8 %]</th>
131 <td>[% currencies %]</td>
134 [%- IF show_exchangerate %]
136 <th align="right">[% 'Exchangerate' | $T8 %]</th>
139 [% LxERP.format_amount(exchangerate, 2) %]
141 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
147 <th align="right">[% 'Shipping Point' | $T8 %]</th>
148 <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
151 <th align="right">[% 'Ship via' | $T8 %]</th>
152 <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
155 <th align="right">[% 'Transaction description' | $T8 %]</th>
156 <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td>
158 [%- IF show_delivery_customer %]
164 <button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">[% 'Choose Customer' | $T8 %]</button>
166 <td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
167 <input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
171 <button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">[% 'Choose Vendor' | $T8 %]</button>
173 <td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
174 <input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
186 <th align="right">[% 'Employee' | $T8 %]</th>
188 [%- INCLUDE 'generic/multibox.html'
189 name = 'employee_id',
190 DATA = ALL_EMPLOYEES,
192 label_sub = 'sales_employee_labels' -%]
195 [%- IF is_sales and ALL_SALESMEN.size %]
197 <th align="right">[% 'Salesman' | $T8 %]</th>
199 [%- INCLUDE 'generic/multibox.html'
200 name = 'salesman_id',
201 default = salesman_id ? salesman_id : employee_id,
204 label_sub = 'sales_employee_labels' -%]
210 <th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
211 <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
215 <th width="70%" align="right" nowrap>[% IF is_req_quo %][% 'RFQ Number' | $T8 %][% ELSE %][% 'Quotation Number' | $T8 %][% END %]</th>
216 <td><input name="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
220 <th width="70%" align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
221 <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
225 <th align="right" nowrap>
227 [% 'Order Date' | $T8 %]
228 [%- ELSIF is_req_quo %]
229 [% 'RFQ Date' | $T8 %]
231 [% 'Quotation Date' | $T8 %]
235 <input name=transdate id=transdate size=11 title="[% HTML.escape(dateformat) %]" value="[% transdate %]" onBlur="check_right_date_format(this)">
236 <input type=button name=transdate id="trigger1" value="[% 'button' | $T8 %]">
240 <th align="right" nowrap>
241 [%- IF is_sales_quo %]
242 [% 'Valid until' | $T8 %]
244 [% 'Required by' | $T8 %]
248 <input name=reqdate id=reqdate size=11 title="[% HTML.escape(dateformat) %]" value="[% reqdate %]" onBlur="check_right_date_format(this)">
249 <input type=button name=reqdate id="trigger2" value="[% 'button' | $T8 %]">
253 <th width="70%" align="right" nowrap>[% 'Project Number' | $T8 %]</th>
255 [%- INCLUDE 'generic/multibox.html'
256 name = 'globalproject_id',
259 label_key = 'projectnumber',
261 onChange = "document.getElementById('update_button').click();" -%]
271 <script type="text/javascript">
273 Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
274 Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });