2 [%- SET vclabel = vc == 'customer' ? '<translate>Customer</translate>' : '<translate>Vendor</translate>' %]
3 [%- SET vcnumberlabel = vc == 'customer' ? '<translate>Customer Number</translate>' : '<translate>Vendor Number</translate>' %]
6 <form method="post" action="oe.pl">
8 <p><div class="listtop">[% HTML.escape(title) %]</div></p>
15 <th align="right">[% HTML.escape(vclabel) %]</th>
17 [%- INCLUDE 'generic/multibox.html'
19 default = vc == 'customer' ? oldcustomer : oldvendor,
20 style = 'width: 250px',
29 [% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
30 { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
35 [%- IF ALL_DEPARTMENTS.size %]
37 <th align="right" nowrap><translate>Department</translate></th>
39 [%- INCLUDE 'generic/multibox.html'
40 name = 'department_id',
41 style = 'width: 250px',
42 DATA = ALL_DEPARTMENTS,
44 label_key = 'description',
53 <th align="right">[% HTML.escape(ordlabel) %]</th>
54 <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
57 <th align="right"><translate>Employee</translate></th>
59 [%- INCLUDE 'generic/multibox.html'
61 style = 'width: 250px',
64 label_sub = 'employee_labels',
73 <th align="right"><translate>Salesman</translate></th>
75 [%- INCLUDE 'generic/multibox.html'
77 style = 'width: 250px',
80 label_sub = 'salesman_labels',
88 <th align="right"><translate>Transaction description</translate></th>
89 <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
92 <th align="right"><translate>Project Number</translate></th>
94 [%- INCLUDE 'generic/multibox.html'
95 name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
96 style = "width: 250px",
99 label_key = 'projectnumber',
107 <th align="right"><translate>Order Date</translate> <translate>From</translate></th>
109 <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
110 <input type="button" name="transdatefrom" id="trigger3" value="?">
112 <th align="right"><translate>Bis</translate></th>
114 <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
115 <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
119 <th align="right"><translate>Delivery Date</translate> <translate>From</translate></th>
121 <input name=reqdatefrom id=reqdatefrom size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
122 <input type=button name=reqdatefrom id="trigger5" value=?>
124 <th align="right"><translate>Bis</translate></th>
126 <input name=reqdateto id=reqdateto size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
127 <input type=button name=reqdateto name=reqdateto id="trigger6" value=?>
131 <th align="right"><translate>Include in Report</translate></th>
136 <input type="checkbox" name="open" value="1" id="open" checked>
137 <label for="open"><translate>Open</translate></label>
140 <input type="checkbox" name="closed" value="1" id="closed">
141 <label for="closed"><translate>Closed</translate></label>
144 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
147 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
148 <label for="notdelivered"><translate>Not delivered</translate></label>
151 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
152 <label for="delivered"><translate>Delivered</translate></label>
158 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
159 <label for="l_id"><translate>ID</translate></label>
162 <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
163 <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
168 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
169 <label for="l_transdate"><translate>Date</translate></label>
172 <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
173 <label for="l_reqdate"><translate>Required by</translate></label>
178 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
179 <label for="l_name">[% HTML.escape(vclabel) %]
182 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
183 <label for="l_employee"><translate>Employee</translate></label>
186 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
187 <label for="l_shipvia"><translate>Ship via</translate></label>
192 <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
193 <label for="l_netamount"><translate>Amount</translate></label>
196 <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
197 <label for="l_tax"><translate>Tax</translate></label>
200 <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
201 <label for="l_amount"><translate>Total</translate></label>
206 <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
207 <label for="l_marge_total"><translate>Ertrag</translate></label>
210 <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
211 <label for="l_marge_percent"><translate>Ertrag prozentual</translate></label>
216 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
217 <label for="l_globalprojectnumber"><translate>Project Number</translate></label>
220 <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
221 <label for="l_transaction_description"><translate>Transaction description</translate></label>
226 <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
227 <label for="l_subtotal"><translate>Subtotal</translate></label>
230 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
231 <label for="l_salesman"><translate>Salesman</translate></label>
235 <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
239 <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
240 <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
243 <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
244 <label for="l_country"><translate>Country</translate></label>
247 <input name="l_ustid" id="l_ustid" class="checkbox" type="checkbox" value="Y">
248 <label for="l_ustid"><translate>USt-IdNr.</translate></label>
251 [%- IF type == 'sales_order' %]
252 <tr><td colspan="3"><hr></td></tr>
262 <script type="text/javascript">
264 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
265 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
266 Calendar.setup({ inputField : "reqdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger5" });
267 Calendar.setup({ inputField : "reqdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger6" });
272 <input type="hidden" name="nextsub" value="orders">
273 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
274 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
275 <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">