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