epic-ts
[kivitendo-erp.git] / templates / webpages / dunning / search.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 <h1>[% title %]</h1>
5
6 [% PROCESS 'common/flash.html' %]
7
8  <form method="post" name="search" action="dn.pl">
9
10   <table width="100%">
11    <tr>
12     <td>
13      <table>
14       <tr>
15        <th align="right">[% 'Customer' | $T8 %]</th>
16        <td colspan="3">
17         [% IF SHOW_CUSTOMER_DDBOX %]
18          <select id='customer' name="customer_id" class="initial_focus">
19           <option value=""></option>
20           [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
21           [% END %]
22          </select>
23          [% ELSE %]
24          <input id='customer' name="customer" size="35" class="initial_focus">
25         [% END %]
26        </td>
27       </tr>
28
29       [% IF SHOW_DUNNING_LEVELS %]
30        <tr>
31         <th align="right" nowrap>[% 'Dunning Level' | $T8 %]</th>
32         <td colspan="3">
33          <select name="dunning_level">
34           <option value=""></option>
35           [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>
36           [% END %]
37          </select>
38         </td>
39        </tr>
40       [% END %]
41
42       [% IF SHOW_DEPARTMENT_DDBOX %]
43        <tr>
44         <th align="right" nowrap>[% 'Department' | $T8 %]</th>
45         <td colspan="3">
46          <select name="department_id">
47           <option value=""></option>
48           [% FOREACH row = ALL_DEPARTMENTS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</option>
49           [% END %]
50          </select>
51         </td>
52        </tr>
53       [% END %]
54
55       <tr>
56        <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
57        <td colspan="3"><input name="invnumber" size="20"></td>
58       </tr>
59
60       <tr>
61        <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
62        <td colspan="3"><input name="ordnumber" size="20"></td>
63       </tr>
64
65       <tr>
66        <th align="right" nowrap>[% 'Notes' | $T8 %]</th>
67        <td colspan="3"><input name="notes" size="40"></td>
68       </tr>
69
70       <tr>
71        <th align="right" nowrap>[% 'Invdate from' | $T8 %]</th>
72        <td>
73          [% L.date_tag('transdatefrom') %]
74        </td>
75        <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
76        <td>
77          [% L.date_tag('transdateto') %]
78        </td>
79       </tr>
80
81       <tr>
82        <th align="right" nowrap>[% 'Dunning Date from' | $T8 %]</th>
83        <td>
84         [% L.date_tag('dunningfrom') %]
85        </td>
86        <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
87        <td>
88         [% L.date_tag('dunningto') %]
89        </td>
90       </tr>
91       <tr>
92        <th align="right">[% 'Salesman' | $T8 %]</th>
93        <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
94       </tr>
95      </table>
96     </td>
97    </tr>
98
99    <tr><td><hr size="3" noshade></td></tr>
100
101    <tr>
102     <td>
103      <table>
104       <tr>
105        <th align="right" nowrap>[% 'Show old dunnings' | $T8 %]</th>
106        <td><input type="checkbox" value="1" name="showold"></td>
107        <th align="right" nowrap>[% 'Show Salesman' | $T8 %]</th>
108        <td><input type="checkbox" value="1" name="l_salesman"></td>
109       </tr>
110      </table>
111     </td>
112    </tr>
113   </table>
114
115   <input type="hidden" name="nextsub" value="show_dunning">
116
117   <br>
118
119   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
120
121  </form>