3 [%- SET vclabel = vc == 'customer' ? '<translate>Customer</translate>' : '<translate>Vendor</translate>' %]
4 [%- SET vcnumberlabel = vc == 'customer' ? '<translate>Customer Number</translate>' : '<translate>Vendor Number</translate>' %]
7 <form method="post" action="oe.pl">
9 <p><div class="listtop">[% HTML.escape(title) %]</div></p>
16 <th align="right">[% HTML.escape(vclabel) %]</th>
18 [%- INCLUDE 'generic/multibox.html'
20 default = vc == 'customer' ? oldcustomer : oldvendor,
21 style = 'width: 250px',
32 [%- IF ALL_DEPARTMENTS.size %]
34 <th align="right" nowrap><translate>Department</translate></th>
36 [%- INCLUDE 'generic/multibox.html'
37 name = 'department_id',
38 style = 'width: 250px',
39 DATA = ALL_DEPARTMENTS,
41 label_key = 'description',
50 <th align="right">[% HTML.escape(ordlabel) %]</th>
51 <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
54 <th align="right"><translate>Employee</translate></th>
56 [%- INCLUDE 'generic/multibox.html'
58 style = 'width: 250px',
61 label_sub = 'employee_labels',
70 <th align="right"><translate>Salesman</translate></th>
72 [%- INCLUDE 'generic/multibox.html'
74 style = 'width: 250px',
77 label_sub = 'salesman_labels',
85 <th align="right"><translate>Transaction description</translate></th>
86 <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
89 <th align="right"><translate>Project Number</translate></th>
91 [%- INCLUDE 'generic/multibox.html'
92 name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
93 style = "width: 250px",
96 label_key = 'projectnumber',
104 <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
106 <input name="transdatefrom" id="transdatefrom" size="11" title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
107 <input type="button" name="transdatefrom" id="trigger3" value="?">
109 <th align="right"><translate>Bis</translate></th>
111 <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
112 <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
116 <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
118 <input name=reqdatefrom id=reqdatefrom size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
119 <input type=button name=reqdatefrom id="trigger5" value=?>
121 <th align="right"><translate>Bis</translate></th>
123 <input name=reqdateto id=reqdateto size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
124 <input type=button name=reqdateto name=reqdateto id="trigger6" value=?>
128 <th align="right"><translate>Include in Report</translate></th>
133 <input type="checkbox" name="open" value="1" id="open" checked>
134 <label for="open"><translate>Open</translate></label>
137 <input type="checkbox" name="closed" value="1" id="closed">
138 <label for="closed"><translate>Closed</translate></label>
141 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
144 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
145 <label for="notdelivered"><translate>Not delivered</translate></label>
148 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
149 <label for="delivered"><translate>Delivered</translate></label>
155 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
156 <label for="l_id"><translate>ID</translate></label>
159 <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
160 <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
165 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
166 <label for="l_transdate"><translate>Date</translate></label>
169 <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
170 <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
175 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
176 <label for="l_name">[% HTML.escape(vclabel) %]
179 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
180 <label for="l_employee"><translate>Employee</translate></label>
183 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
184 <label for="l_shipvia"><translate>Ship via</translate></label>
189 <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
190 <label for="l_netamount"><translate>Amount</translate></label>
193 <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
194 <label for="l_tax"><translate>Tax</translate></label>
197 <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
198 <label for="l_amount"><translate>Total</translate></label>
203 <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
204 <label for="l_marge_total"><translate>Ertrag</translate></label>
207 <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
208 <label for="l_marge_percent"><translate>Ertrag prozentual</translate></label>
213 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
214 <label for="l_globalprojectnumber"><translate>Project Number</translate></label>
217 <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
218 <label for="l_transaction_description"><translate>Transaction description</translate></label>
223 <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
224 <label for="l_subtotal"><translate>Subtotal</translate></label>
227 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
228 <label for="l_salesman"><translate>Salesman</translate></label>
232 <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
236 <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
237 <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
240 <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
241 <label for="l_country"><translate>Country</translate></label>
244 <input name="l_ustid" id="l_ustid" class="checkbox" type="checkbox" value="Y">
245 <label for="l_ustid"><translate>USt-IdNr.</translate></label>
248 [%- IF type == 'sales_order' %]
249 <tr><td colspan="3"><hr></td></tr>
259 <script type="text/javascript">
261 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
262 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
263 Calendar.setup({ inputField : "reqdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger5" });
264 Calendar.setup({ inputField : "reqdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger6" });
269 <input type="hidden" name="nextsub" value="orders">
270 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
271 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
272 <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">