2 [%- SET vclabel = vc == 'customer' ? '<translate>Customer</translate>' : '<translate>Vendor</translate>' %]
5 <form method="post" action="oe.pl">
7 <p><div class="listtop">[% HTML.escape(title) %]</div></p>
14 <th align="right">[% HTML.escape(vclabel) %]</th>
16 [%- INCLUDE 'generic/multibox.html'
18 default = vc == 'customer' ? oldcustomer : oldvendor,
19 style = 'width: 250px',
30 [%- IF ALL_DEPARTMENTS.size %]
32 <th align="right" nowrap><translate>Department</translate></th>
34 [%- INCLUDE 'generic/multibox.html'
35 name = 'department_id',
36 style = 'width: 250px',
37 DATA = ALL_DEPARTMENTS,
39 label_key = 'description',
48 <th align="right">[% HTML.escape(ordlabel) %]</th>
49 <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
52 <th align="right"><translate>Employee</translate></th>
54 [%- INCLUDE 'generic/multibox.html'
56 style = 'width: 250px',
59 label_sub = 'employee_labels',
68 <th align="right"><translate>Salesman</translate></th>
70 [%- INCLUDE 'generic/multibox.html'
72 style = 'width: 250px',
75 label_sub = 'salesman_labels',
83 <th align="right"><translate>Transaction description</translate></th>
84 <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
87 <th align="right"><translate>Project Number</translate></th>
89 [%- INCLUDE 'generic/multibox.html'
90 name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
91 style = "width: 250px",
94 label_key = 'projectnumber',
102 <th align="right"><translate>Order Date</translate> <translate>From</translate></th>
104 <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
105 <input type="button" name="transdatefrom" id="trigger3" value="?">
107 <th align="right"><translate>Bis</translate></th>
109 <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
110 <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
114 <th align="right"><translate>Delivery Date</translate> <translate>From</translate></th>
116 <input name=reqdatefrom id=reqdatefrom size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
117 <input type=button name=reqdatefrom id="trigger5" value=?>
119 <th align="right"><translate>Bis</translate></th>
121 <input name=reqdateto id=reqdateto size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
122 <input type=button name=reqdateto name=reqdateto id="trigger6" value=?>
126 <th align="right"><translate>Include in Report</translate></th>
131 <input type="checkbox" name="open" value="1" id="open" checked>
132 <label for="open"><translate>Open</translate></label>
135 <input type="checkbox" name="closed" value="1" id="closed">
136 <label for="closed"><translate>Closed</translate></label>
139 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
142 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
143 <label for="notdelivered"><translate>Not delivered</translate></label>
146 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
147 <label for="delivered"><translate>Delivered</translate></label>
153 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
154 <label for="l_id"><translate>ID</translate></label>
157 <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
158 <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
163 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
164 <label for="l_transdate"><translate>Date</translate></label>
167 <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
168 <label for="l_reqdate"><translate>Required by</translate></label>
173 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
174 <label for="l_name">[% HTML.escape(vclabel) %]
177 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
178 <label for="l_employee"><translate>Employee</translate></label>
181 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
182 <label for="l_shipvia"><translate>Ship via</translate></label>
187 <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
188 <label for="l_netamount"><translate>Amount</translate></label>
191 <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
192 <label for="l_tax"><translate>Tax</translate></label>
195 <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
196 <label for="l_amount"><translate>Total</translate></label>
201 <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
202 <label for="l_marge_total"><translate>Ertrag</translate></label>
205 <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
206 <label for="l_marge_percent"><translate>Ertrag prozentual</translate></label>
211 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
212 <label for="l_globalprojectnumber"><translate>Project Number</translate></label>
215 <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
216 <label for="l_transaction_description"><translate>Transaction description</translate></label>
221 <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
222 <label for="l_subtotal"><translate>Subtotal</translate></label>
225 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
226 <label for="l_salesman"><translate>Salesman</translate></label>
230 <td colspan=4 align=left><b><translate>Customer</translate></td>
234 <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
235 <label for="l_country"><translate>Country</translate></label>
238 <input name="l_ustid" id="l_ustid" class="checkbox" type="checkbox" value="Y">
239 <label for="l_ustid"><translate>USt-IdNr.</translate></label>
242 [%- IF type == 'sales_order' %]
243 <tr><td colspan="3"><hr></td></tr>
253 <script type="text/javascript">
255 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
256 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
257 Calendar.setup({ inputField : "reqdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger5" });
258 Calendar.setup({ inputField : "reqdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger6" });
263 <input type="hidden" name="nextsub" value="orders">
264 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
265 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
266 <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">