Wiederkehrende Rechnung: Option für halbjährliche Fakturierung
[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('Extend automatically by n months') %]</th>
52      <td valign="top">
53       [% L.input_tag("extend_automatically_by", extend_automatically_by, size => 10) %]
54      </td>
55     </tr>
56
57     <tr>
58      <th align="right">[%- LxERP.t8('Record in') %]</th>
59      <td valign="top">
60       [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id) %]
61      </td>
62     </tr>
63
64     <tr>
65      <th align="right">[%- LxERP.t8('Print automatically') %]</th>
66      <td valign="top">
67       [% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
68      </td>
69     </tr>
70
71     <tr>
72      <th align="right">[%- LxERP.t8('Printer') %]</th>
73      <td valign="top">
74       [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print) %]
75      </td>
76     </tr>
77
78     <tr>
79      <th align="right">[%- LxERP.t8('Copies') %]</th>
80      <td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
81     </tr>
82    </table>
83   </p>
84
85   <hr>
86
87   <p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
88
89   [% L.hidden_tag('action', 'save_periodic_invoices_config') %]
90
91   <p>
92    [% L.submit_tag('', LxERP.t8('Close')) %]
93    [% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
94   </p>
95  </form>
96
97  <script type="text/javascript">
98   <!--
99     function toggle_printer_id_ctrl() {
100       var disabled = !$('#print').prop('checked');
101       $('#printer_id').prop('disabled', disabled);
102       $('#copies').prop('disabled', disabled);
103     }
104     -->
105  </script>