[% USE HTML %]
[% USE LxERP %]
[% USE L %]
-<body>
-
- <div class="listtop">[% title %]</div>
+[% SET style="width: 400px" %]
+<h1>[% title %]</h1>
<form name="Form" action="oe.pl" method="post">
</tr>
<tr>
- <th align="right" valign="top">[%- LxERP.t8('Periodicity') %]</th>
+ <th align="right" valign="top">[%- LxERP.t8('Billing Periodicity') %]</th>
+ <td valign="top">
+ [% L.select_tag("periodicity", [ [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=periodicity, style=style) %]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right" valign="top">[%- LxERP.t8('Order value periodicity') %]</th>
<td valign="top">
- [% L.radio_button_tag("periodicity", value => "m", label => LxERP.t8("monthly"), checked => periodicity == 'm') %]
- <br>
- [% L.radio_button_tag("periodicity", value => "q", label => LxERP.t8("quarterly"), checked => periodicity == 'q') %]
- <br>
- [% L.radio_button_tag("periodicity", value => "y", label => LxERP.t8("yearly"), checked => periodicity == 'y') %]
+ [% L.select_tag("order_value_periodicity",
+ [ [ "p", LxERP.t8("same as periodicity") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ],
+ [ "2", LxERP.t8("2 years") ], [ "3", LxERP.t8("3 years") ], [ "4", LxERP.t8("4 years") ], [ "5", LxERP.t8("5 years") ], ],
+ default=order_value_periodicity, style=style) %]
</td>
</tr>
</td>
</tr>
+ <tr>
+ <th align="right">[%- LxERP.t8('Create first invoice on') %]<sup>(2)</sup></th>
+ <td valign="top">
+ [% L.date_tag("first_billing_date_as_date", first_billing_date_as_date) %]
+ </td>
+ </tr>
+
<tr>
<th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
<td valign="top">
<tr>
<th align="right">[%- LxERP.t8('Record in') %]</th>
<td valign="top">
- [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id) %]
+ [% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id, style=style) %]
</td>
</tr>
+ <tr>
+ <th align="right">[%- LxERP.t8('direct debit') %]</th>
+ <td valign="top">[% L.checkbox_tag("direct_debit", checked=direct_debit) %]</td>
+ </tr>
+
<tr>
<th align="right">[%- LxERP.t8('Print automatically') %]</th>
<td valign="top">
<tr>
<th align="right">[%- LxERP.t8('Printer') %]</th>
<td valign="top">
- [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print) %]
+ [% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print, style=style) %]
</td>
</tr>
<hr>
<p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
+ <p>(2): [% LxERP.t8("If missing then the start date will be used.") %]</p>
[% L.hidden_tag('action', 'save_periodic_invoices_config') %]
<script type="text/javascript">
<!--
function toggle_printer_id_ctrl() {
- var disabled = !$('#print').attr('checked');
- $('#printer_id').attr('disabled', disabled);
- $('#copies').attr('disabled', disabled);
+ var disabled = !$('#print').prop('checked');
+ $('#printer_id').prop('disabled', disabled);
+ $('#copies').prop('disabled', disabled);
}
-->
</script>
-
-</body>
-</html>