]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/ct/search.html
date error in mapping
[mfinanz.git] / templates / webpages / ct / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %][%- USE LxERP -%]
4 <h1>[% title %]</h1>
5
6  <form method="post" action="ct.pl" name="Form" id="form">
7
8   <input type="hidden" name="db" value="[% HTML.escape(db) %]">
9
10   <table>
11    <tr>
12     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</th>
13     <td><input name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" size="35"></td>
14    </tr>
15
16    <tr>
17     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
18     <td><input id="name" name="name" size="35" class="initial_focus"></td>
19    </tr>
20
21    <tr>
22     <th align="right" nowrap>[% 'Department' | $T8 %]</th>
23     <td><input type="text" name="department_1" size="35"></td>
24    </tr>
25    <tr>
26     <th></th>
27     <td><input type="text" name="department_2" size="35"></td>
28    </tr>
29
30    <tr>
31     <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
32     <td><input name="contact" size="35"></td>
33    </tr>
34
35    <tr>
36     <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
37     <td><input name="email" size="35"></td>
38    </tr>
39    <tr>
40     <th align="right" nowrap>[% 'All phone numbers' | $T8 %]</th>
41     <td><input name="all_phonenumbers" size="35"></td>
42    </tr>
43    <tr>
44     <th align="right" nowrap>[% 'Contact person (surname)' | $T8 %]</th>
45     <td><input name="cp_name" size="35"></td>
46    </tr>
47    <tr>
48     <th align="right" nowrap>[% 'Billing/shipping address (street)' | $T8 %]</th>
49     <td><input name="addr_street" size="35"></td>
50    </tr>
51    <tr>
52     <th align="right" nowrap>[% 'Billing/shipping address (zipcode)' | $T8 %]</th>
53     <td><input name="addr_zipcode" size="35"></td>
54    </tr>
55    <tr>
56     <th align="right" nowrap>[% 'Billing/shipping address (city)' | $T8 %]</th>
57     <td><input name="addr_city" size="35"></td>
58    </tr>
59    <tr>
60     <th align="right" nowrap>[% 'Billing/shipping address (country)' | $T8 %]</th>
61     <td><input name="addr_country" size="35"></td>
62    </tr>
63    <tr>
64     <th align="right" nowrap>[% 'Billing/shipping address (GLN)' | $T8 %]</th>
65     <td><input name="addr_gln" size="35"></td>
66    </tr>
67
68    [% IF SHOW_BUSINESS_TYPES %]
69    <tr>
70     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
71     <td>
72      [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1) %]
73     </td>
74    </tr>
75    [% END %]
76
77    <tr>
78      <th align="right" nowrap>[% 'Payment Term' | $T8 %]</th>
79      <td>[% L.select_tag('payment_id', ALL_PAYMENT_TERMS, with_empty=1, title_key='description', with_empty=1) %]</td>
80    </tr>
81
82     <tr>
83      <th align="right">[% 'Tax rate' | $T8 %]</th>
84      <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description') %]</td>
85     </tr>
86
87 [% IF IS_CUSTOMER %]
88    <tr>
89      <th align="right" nowrap>[% LxERP.t8("Factur-X/ZUGFeRD settings") %]</th>
90      <td>[% L.select_tag('create_zugferd_invoices', ZUGFERD_SETTINGS, with_empty = 1) %]</td>
91    </tr>
92 [% END %]
93
94    [% IF IS_CUSTOMER && ALL_SALESMEN.size %]
95    <tr>
96     <th align="right" nowrap>[% 'Salesman' | $T8 %]</th>
97     <td>
98      [% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1) %]
99     </td>
100    </tr>
101    [% END %]
102
103    <tr>
104     <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
105     <td>
106       [% L.date_tag('insertdatefrom') %]
107     </td>
108     <th align="right">[% 'Bis' | $T8 %]</th>
109     <td>
110       [% L.date_tag('insertdateto') %]
111     </td>
112    </tr>
113 [% IF IS_CUSTOMER %]
114    <tr>
115      <th align="right" nowrap>[% 'Dunning lock' | $T8 %]</th>
116      <td>[% L.yes_no_tag('dunning_lock', dunning_lock, default='', with_empty=1) %]</td>
117    </tr>
118 [% END %]
119
120    [% CUSTOM_VARIABLES_FILTER_CODE %]
121
122    <tr>
123     <td></td>
124     <td>
125      <input name="status" class="radio" type="radio" value="all" checked> [% 'All' | $T8 %]
126      <input name="status" class="radio" type="radio" value="orphaned"> [% 'Orphaned' | $T8 %]
127     </td>
128    </tr>
129
130    <tr>
131     <td></td>
132     <td><input name="obsolete" class="radio" type="radio" value="all"> [% 'All' | $T8 %]
133      <input name="obsolete" class="radio" type="radio" value="Y"> [% 'Obsolete' | $T8 %]
134      <input name="obsolete" class="radio" type="radio" value="N" checked> [% 'Not obsolete' | $T8 %]
135     </td>
136    </tr>
137
138    <tr>
139     <th align="right" nowrap>[% 'Include in Report' | $T8 %]</th>
140     <td colspan="5">
141      <table border="0">
142       <tr>
143        <td>
144         <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
145         <label for="l_id">[% 'ID' | $T8 %]</label>
146        </td>
147        <td>
148         <input name="l_[% db | html %]number" id="l_[% db | html %]number" type="checkbox" class="checkbox" value="Y" checked>
149         <label for="l_[% db | html %]number">[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</label>
150        </td>
151        <td>
152         <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
153         <label for="l_name">[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</label>
154        </td>
155        <td>
156         <input name="l_street" id="l_street" type="checkbox" class="checkbox" value="Y" checked>
157         <label for="l_street">[% 'Street' | $T8 %]</label>
158        </td>
159       </tr>
160
161       <tr>
162        <td>
163         <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
164         <label for="l_contact">[% 'Contact' | $T8 %]</label>
165        </td>
166        <td>
167         <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
168         <label for="l_phone">[% 'Phone' | $T8 %]</label>
169        </td>
170        <td>
171         <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
172         <label for="l_fax">[% 'Fax' | $T8 %]</label>
173        </td>
174        <td>
175         <input name="l_zipcode" id="l_zipcode" type="checkbox" class="checkbox" value="Y" checked>
176         <label for="l_zipcode">[% 'Zipcode' | $T8 %]</label>
177        </td>
178       </tr>
179
180       <tr>
181        <td>
182         <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
183         <label for="l_taxnumber">[% 'Tax Number' | $T8 %]</label>
184        </td>
185        <td>
186         <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
187         <label for="l_email">[% 'E-mail' | $T8 %]</label>
188        </td>
189        <td>
190         <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
191         <label for="l_business">[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</label>
192        </td>
193        <td>
194         <input name="l_city" id="l_city" type="checkbox" class="checkbox" value="Y" checked>
195         <label for="l_city">[% 'City' | $T8 %]</label>
196        </td>
197       </tr>
198
199       <tr>
200        <td>
201         <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
202         <label for="l_invnumber">[% 'Invoices' | $T8 %]</label>
203        </td>
204        <td>
205         <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
206         <label for="l_ordnumber">[% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %]</label>
207        </td>
208        <td>
209         <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
210         <label for="l_quonumber">[% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %]</label>
211        </td>
212        <td>
213         <input name="l_country" id="l_country" type="checkbox" class="checkbox" value="Y" checked>
214         <label for="l_country">[% 'Country' | $T8 %]</label>
215        </td>
216       </tr>
217       <tr>
218        <td>
219         <input name="l_discount" id="l_discount" type="checkbox" class="checkbox" value="Y">
220         <label for="l_discount">[% 'Discount' | $T8 %]</label>
221        </td>
222        <td>
223         <input name="l_payment" id="l_payment" type="checkbox" class="checkbox" value="Y">
224         <label for="l_payment">[% 'Payment Terms' | $T8 %]</label>
225        </td>
226        <td>
227         <input name="l_taxzone" id="l_taxzone" type="checkbox" class="checkbox" value="Y">
228         <label for="l_taxzone">[% 'Tax rate' | $T8 %]</label>
229        </td>
230        <td>
231         <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
232         <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
233        </td>
234        <td>
235         <input name="l_gln" id="l_gln" type="checkbox" class="checkbox" value="Y" checked>
236         <label for="l_gln">[% 'GLN' | $T8 %]</label>
237        </td>
238       </tr>
239       [% IF IS_CUSTOMER %]
240       <tr>
241        <td>
242         <input name="l_salesman" id="l_salesman" type="checkbox" class="checkbox" value="Y">
243         <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
244        </td>
245        <td>
246         <input name="l_pricegroup" id="l_pricegroup" type="checkbox" class="checkbox" value="Y">
247         <label for="l_pricegroup">[% 'Pricegroup' | $T8 %]</label>
248        </td>
249        <td>
250         <input name="l_contact_origin" id="l_contact_origin" type="checkbox" class="checkbox" value="Y">
251         <label for="l_contact_origin">[% 'Origin of personal data' | $T8 %]</label>
252        </td>
253        <td>
254         <input name="l_invoice_mail" id="l_invoice_mail" type="checkbox" class="checkbox" value="Y">
255         <label for="l_invoice_mail">[% 'Email of the invoice recipient' | $T8 %]</label>
256        </td>
257       </tr>
258       [% END %]
259       <tr>
260        <td>
261         <input name="l_ustid" id="l_ustid" type="checkbox" class="checkbox" value="Y">
262         <label for="l_ustid">[% 'VAT ID' | $T8 %]</label>
263        </td>
264        <td>
265         <input name="l_main_contact_person" id="l_main_contact_person" type="checkbox" class="checkbox" value="Y">
266         <label for="l_main_contact_person">[% 'Main Contact Person' | $T8 %]</label>
267        </td>
268       [% IF !IS_CUSTOMER %]
269       </tr>
270       [% ELSE %]
271        <td>
272         <input name="l_creditlimit" id="l_creditlimit" type="checkbox" class="checkbox" value="Y">
273         <label for="l_creditlimit">[% 'Credit Limit' | $T8 %]</label>
274        </td>
275        <td>
276         <input name="l_commercial_court" id="l_commercial_court" type="checkbox" class="checkbox" value="Y">
277         <label for="l_commercial_court">[% 'Commercial court' | $T8 %]</label>
278        </td>
279
280       </tr>
281       <tr>
282        <td>
283         <input name="l_delivery_order_mail" id="l_delivery_order_mail" type="checkbox" class="checkbox" value="Y">
284         <label for="l_delivery_order_mail">[% 'Email of the delivery order recipient' | $T8 %]</label>
285        </td>
286         <td>
287         <input name="l_department_1" id="l_department_1" type="checkbox" class="checkbox" value="Y">
288         <label for="l_department_1">[% 'Department' | $T8 %] 1</label>
289        </td>
290        <td>
291         <input name="l_department_2" id="l_department_2" type="checkbox" class="checkbox" value="Y">
292         <label for="l_department_2">[% 'Department' | $T8 %] 2</label>
293        </td>
294        <td>
295         <input name="l_dunning_lock" id="l_dunning_lock" type="checkbox" class="checkbox" value="Y">
296         <label for="l_dunning_lock">[% 'Dunning lock' | $T8 %]</label>
297        </td>
298       </tr>
299       [% END %]
300
301       [% CUSTOM_VARIABLES_INCLUSION_CODE %]
302
303      </table>
304     </td>
305    </tr>
306   </table>
307  </form>