Anzeige von Kundennummmer in Verkauf
[kivitendo-erp.git] / templates / webpages / oe / search.html
1 [%- USE HTML %]
2 [%- USE T8 %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
6 [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
7 <body>
8
9 <form method="post" action="oe.pl">
10
11  <p><div class="listtop">[% HTML.escape(title) %]</div></p>
12
13 <table width="100%">
14  <tr>
15   <td>
16    <table>
17     <tr>
18      <th align="right">[% HTML.escape(vclabel) %]</th>
19      <td colspan="3">
20             [%- INCLUDE 'generic/multibox.html'
21                  name          = vc,
22                  default       = vc == 'customer' ? oldcustomer : oldvendor,
23                  style         = 'width: 250px',
24                  DATA          = ALL_VC,
25                  id_sub        = 'vc_keys',
26                  label_key     = 'name',
27                  select        = vc_select,
28                  limit         = vclimit,
29                  show_empty    = 1,
30                  allow_textbox = 1,
31                  -%]
32      </td>
33     </tr>
34 [%- IF ALL_DEPARTMENTS.size %]
35     <tr>
36      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
37      <td colspan="3">
38             [%- INCLUDE 'generic/multibox.html'
39                  name          = 'department_id',
40                  style         = 'width: 250px',
41                  DATA          = ALL_DEPARTMENTS,
42                  id_key        = 'id',
43                  label_key     = 'description',
44                  limit         = vclimit,
45                  show_empty    = 1,
46                  allow_textbox = 1,
47             -%]
48      </td>
49     </tr>
50 [%- END %]
51     <tr>
52      <th align="right">[% HTML.escape(ordlabel) %]</th>
53      <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
54     </tr>
55     <tr>
56      <th align="right">[% 'Employee' | $T8 %]</th>
57      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
58     </tr>
59     <tr>
60      <th align="right">[% 'Salesman' | $T8 %]</th>
61      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
62     </tr>
63     <tr>
64      <th align="right">[% 'Transaction description' | $T8 %]</th>
65      <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
66     </tr>
67     <tr>
68      <th align="right">[% 'Project Number' | $T8 %]</th>
69      <td colspan="3">
70             [%- INCLUDE 'generic/multibox.html'
71                  name          =  vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
72                  style         = "width: 250px",
73                  DATA          =  ALL_PROJECTS,
74                  id_key        = 'id',
75                  label_key     = 'projectnumber',
76                  limit         = vclimit,
77                  show_empty    = 1,
78                  allow_textbox = 1,
79             -%]
80      </td>
81     </tr>
82     <tr>
83      <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
84      <td>
85        [% L.date_tag('transdatefrom') %]
86      </td>
87      <th align="right">[% 'Bis' | $T8 %]</th>
88      <td>
89       [% L.date_tag('transdateto') %]
90      </td>
91     </tr>
92     <tr>
93      <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
94      <td>
95        [% L.date_tag('reqdatefrom') %]
96      </td>
97      <th align="right">[% 'Bis' | $T8 %]</th>
98      <td>
99        [% L.date_tag('reqdateto') %]
100      </td>
101     </tr>
102     <tr>
103      <th align="right">[% 'Include in Report' | $T8 %]</th>
104      <td colspan="5">
105       <table>
106        <tr>
107         <td>
108          <input type="checkbox" name="open" value="1" id="open" checked>
109          <label for="open">[% 'Open' | $T8 %]</label>
110         </td>
111         <td>
112          <input type="checkbox" name="closed" value="1" id="closed">
113          <label for="closed">[% 'Closed' | $T8 %]</label>
114         </td>
115        </tr>
116 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
117        <tr>
118         <td>
119          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
120          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
121         </td>
122         <td>
123          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
124          <label for="delivered">[% 'Delivery Order created' | $T8 %]</label>
125         </td>
126        </tr>
127 [%- END %]
128 [%- IF type == 'sales_order' %]
129        <tr>
130         <td>
131          [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
132         </td>
133         <td>
134          [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
135         </td>
136        </tr>
137 [%- END %]
138        <tr>
139         <td>
140          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
141          <label for="l_id">[% 'ID' | $T8 %]</label>
142         </td>
143         <td>
144          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
145          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
146         </td>
147        </tr>
148        <tr>
149         <td>
150          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
151          <label for="l_transdate">[% 'Date' | $T8 %]</label>
152         </td>
153         <td>
154          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
155          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
156         </td>
157        </tr>
158        <tr>
159         <td>
160          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
161          <label for="l_name">[% HTML.escape(vclabel) %]
162         </td>
163         <td>
164          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
165          <label for="l_employee">[% 'Employee' | $T8 %]</label>
166         </td>
167         <td>
168          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
169          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
170         </td>
171        </tr>
172        <tr>
173         <td>
174          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
175          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
176         </td>
177        </tr>
178        <tr>
179         <td>
180          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
181          <label for="l_netamount">[% 'Amount' | $T8 %]</label>
182         </td>
183         <td>
184          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
185          <label for="l_tax">[% 'Tax' | $T8 %]</label>
186         </td>
187         <td>
188          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
189          <label for="l_amount">[% 'Total' | $T8 %]</label>
190         </td>
191        </tr>
192        <tr>
193         <td>
194          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
195          <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
196         </td>
197         <td>
198          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
199          <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
200         </td>
201        </tr>
202        <tr>
203         <td>
204          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
205          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
206         </td>
207         <td>
208          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
209          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
210         </td>
211        </tr>
212        <tr>
213         <td>
214          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
215          <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
216         </td>
217         <td>
218          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
219          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
220         </td>
221        </tr>
222        <tr>
223         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
224        </tr>
225        <tr>
226         <td>
227          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
228          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
229         </td>
230         <td>
231          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
232          <label for="l_country">[% 'Country' | $T8 %]</label>
233         </td>
234         <td>
235          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
236          <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
237         </td>
238        </tr>
239 [%- IF type == 'sales_order' %]
240        <tr><td colspan="3"><hr></td></tr>
241 [%- END %]
242       </table>
243      </td>
244     </tr>
245    </table>
246   </td>
247  </tr>
248 </table>
249
250 <br>
251 <input type="hidden" name="nextsub" value="orders">
252 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
253 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
254 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
255 </form>
256
257 </body>
258 </html>