3 <body onLoad="[% onload %]">
5 <form method="post" name="oe" action="[% script %]">
7 <script type="text/javascript" src="js/common.js"></script>
8 <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
9 <script type="text/javascript" src="js/vendor_selection.js"></script>
10 <script type="text/javascript" src="js/calculate_qty.js"></script>
11 <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
12 <script type="text/javascript" src="js/follow_up.js"></script>
14 [%- FOREACH row = HIDDENS %]
15 <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
18 <input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
20 <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
21 <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
22 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
23 <input type="hidden" name="follow_up_rowcount" value="1">
25 <div class="listtop">[% title %]</div>
36 <th align="right">[% IF vc == 'customer' %]Customer[% ELSE %]Vendor[% END %]</th>
38 [%- INCLUDE 'generic/multibox.html'
40 style = 'width: 250px',
41 DATA = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
47 onChange = "document.getElementById('update_button').click();" -%]
48 <input type="button" value="Details (one letter abbreviation)" onclick="show_vc_details('[% HTML.escape(vc) %]')">
51 [%- IF ALL_CONTACTS.size %]
53 <th align="right">Contact Person</th>
55 [%- INCLUDE 'generic/multibox.html'
57 style = 'width: 250px',
60 label_sub = 'contact_labels',
65 [%- IF ALL_SHIPTO.size %]
67 <th align="right">Shipping Address</th>
69 [%- INCLUDE 'generic/multibox.html'
71 style = 'width: 250px',
74 label_sub = 'shipto_labels',
76 onChange = "document.getElementById('update_button').click();" -%]
82 <td align="right">Credit Limit</td>
83 <td>[% LxERP.format_amount(creditlimit, 0) %]; Remaining <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
88 <th align="right">[% business_label %]</th>
89 <td>[% HTML.escape(business) %]; Trade Discount [% LxERP.format_percent(tradediscount) %] %</td>
92 [%- IF max_dunning_level %]
94 <th align="right">Max. Dunning Level:</th>
96 <b>[% HTML.escape(max_dunning_level) %]</b>;
97 Dunning Amount: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
102 <th align="right">Steuersatz</th>
104 [%- INCLUDE 'generic/multibox.html'
106 style = 'width: 250px',
109 label_key = 'description' -%]
112 [%- IF ALL_DEPARTMENTS %]
114 <th align="right" nowrap>Department</th>
116 [%- INCLUDE 'generic/multibox.html'
117 name = 'department_id',
118 style = 'width: 250px',
119 DATA = ALL_DEPARTMENTS,
121 label_sub = 'department_labels',
129 <th align="right">Currency</th>
130 <td>[% currencies %]</td>
133 [%- IF show_exchangerate %]
135 <th align="right">Exchangerate</th>
138 [% LxERP.format_amount(exchangerate, 2) %]
140 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
146 <th align="right">Shipping Point</th>
147 <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
150 <th align="right">Ship via</th>
151 <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
154 <th align="right">Transaction description</th>
155 <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td>
157 [%- IF show_delivery_customer %]
163 <button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">Choose Customer</button>
165 <td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
166 <input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
170 <button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">Choose Vendor</button>
172 <td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
173 <input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
185 <th align="right">Employee</th>
187 [%- INCLUDE 'generic/multibox.html'
188 name = 'employee_id',
189 DATA = ALL_EMPLOYEES,
191 label_sub = 'sales_employee_labels' -%]
194 [%- IF is_sales and ALL_SALESMEN.size %]
196 <th align="right">Salesman</th>
198 [%- INCLUDE 'generic/multibox.html'
199 name = 'salesman_id',
200 default = salesman_id ? salesman_id : employee_id,
203 label_sub = 'sales_employee_labels' -%]
209 <th width="70%" align="right" nowrap>Order Number</th>
210 <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
214 <th width="70%" align="right" nowrap>[% IF is_req_quo %]RFQ Number[% ELSE %]Quotation Number[% END %]</th>
215 <td><input name="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
219 <th width="70%" align="right" nowrap>Customer Order Number</th>
220 <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
224 <th align="right" nowrap>
232 <input name=transdate id=transdate size=11 title="[% HTML.escape(dateformat) %]" value="[% transdate %]" onBlur="check_right_date_format(this)">
233 <input type=button name=transdate id="trigger1" value="button">
237 <th align="right" nowrap>
238 [%- IF is_sales_quo %]
245 <input name=reqdate id=reqdate size=11 title="[% HTML.escape(dateformat) %]" value="[% reqdate %]" onBlur="check_right_date_format(this)">
246 <input type=button name=reqdate id="trigger2" value="button">
250 <th width="70%" align="right" nowrap>Project Number</th>
252 [%- INCLUDE 'generic/multibox.html'
253 name = 'globalproject_id',
256 label_key = 'projectnumber',
258 onChange = "document.getElementById('update_button').click();" -%]
268 <script type="text/javascript">
270 Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
271 Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });