093cf05749153ba1fc3e12d1b9de35d9dc8e3756
[kivitendo-erp.git] / templates / webpages / oe / edit_periodic_invoices_config.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4 <h1>[% title %]</h1>
5
6  <form name="Form" action="oe.pl" method="post">
7
8   <p>
9    <table border="0">
10     <tr>
11      <th align="right">[% LxERP.t8('Status') %]</th>
12      <td>[% L.checkbox_tag("active", checked => active, label => LxERP.t8('Active')) %]</td>
13     </tr>
14
15     <tr>
16      <td>&nbsp;</td>
17      <td>
18       [% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => terminated) %]
19      </td>
20     </tr>
21
22     <tr>
23      <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
24      <td valign="top">
25       [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"),   checked => periodicity == 'm') %]
26       <br>
27       [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("every third month"), checked => periodicity == 'q') %]
28       <br>
29       [% L.radio_button_tag("periodicity", value => "b", label => LxERP.t8("semiannually"), checked => periodicity == 'b') %]
30       <br>
31       [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"),    checked => periodicity == 'y') %]
32      </td>
33     </tr>
34
35     <tr>
36      <th align="right">[%- LxERP.t8('Start date') %]</th>
37      <td valign="top">
38       [% L.date_tag("start_date_as_date", start_date_as_date) %]
39      </td>
40     </tr>
41
42     <tr>
43      <th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
44      <td valign="top">
45       [% L.date_tag("end_date_as_date", end_date_as_date) %]
46      </td>
47     </tr>
48
49     <tr>
50      <th align="right">[%- LxERP.t8('Create first invoice on') %]<sup>(2)</sup></th>
51      <td valign="top">
52       [% L.date_tag("first_billing_date_as_date", first_billing_date_as_date) %]
53      </td>
54     </tr>
55
56     <tr>
57      <th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
58      <td valign="top">
59       [% L.input_tag("extend_automatically_by", extend_automatically_by, size => 10) %]
60      </td>
61     </tr>
62
63     <tr>
64      <th align="right">[%- LxERP.t8('Record in') %]</th>
65      <td valign="top">
66       [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id) %]
67      </td>
68     </tr>
69
70     <tr>
71      <th align="right">[%- LxERP.t8('Print automatically') %]</th>
72      <td valign="top">
73       [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
74      </td>
75     </tr>
76
77     <tr>
78      <th align="right">[%- LxERP.t8('Printer') %]</th>
79      <td valign="top">
80       [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print) %]
81      </td>
82     </tr>
83
84     <tr>
85      <th align="right">[%- LxERP.t8('Copies') %]</th>
86      <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
87     </tr>
88    </table>
89   </p>
90
91   <hr>
92
93   <p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
94   <p>(2): [% LxERP.t8("If missing then the start date will be used.") %]</p>
95
96   [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
97
98   <p>
99    [% L.submit_tag('', LxERP.t8('Close')) %]
100    [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
101   </p>
102  </form>
103
104  <script type="text/javascript">
105   <!--
106     function toggle_printer_id_ctrl() {
107       var disabled = !$('#print').prop('checked');
108       $('#printer_id').prop('disabled', disabled);
109       $('#copies').prop('disabled', disabled);
110     }
111     -->
112  </script>