10 |
10 |
<table border="0">
|
11 |
11 |
<tr>
|
12 |
12 |
<th align="right">[% LxERP.t8('Status') %]</th>
|
13 |
|
<td>[% L.checkbox_tag("active", checked => active, label => LxERP.t8('Active')) %]</td>
|
|
13 |
<td>[% L.checkbox_tag("active", checked => config.active, label => LxERP.t8('Active')) %]</td>
|
14 |
14 |
</tr>
|
15 |
15 |
|
16 |
16 |
<tr>
|
17 |
17 |
<td> </td>
|
18 |
18 |
<td>
|
19 |
|
[% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => terminated) %]
|
|
19 |
[% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => config.terminated) %]
|
20 |
20 |
</td>
|
21 |
21 |
</tr>
|
22 |
22 |
|
23 |
23 |
<tr>
|
24 |
24 |
<th align="right" valign="top">[%- LxERP.t8('Billing Periodicity') %]</th>
|
25 |
25 |
<td valign="top">
|
26 |
|
[% L.select_tag("periodicity", [ [ "o", LxERP.t8("one time") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=periodicity, style=style) %]
|
|
26 |
[% L.select_tag("periodicity", [ [ "o", LxERP.t8("one time") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=config.periodicity, style=style) %]
|
27 |
27 |
</td>
|
28 |
28 |
</tr>
|
29 |
29 |
|
... | ... | |
33 |
33 |
[% L.select_tag("order_value_periodicity",
|
34 |
34 |
[ [ "p", LxERP.t8("same as periodicity") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ],
|
35 |
35 |
[ "2", LxERP.t8("2 years") ], [ "3", LxERP.t8("3 years") ], [ "4", LxERP.t8("4 years") ], [ "5", LxERP.t8("5 years") ], ],
|
36 |
|
default=order_value_periodicity, style=style) %]
|
|
36 |
default=config.order_value_periodicity, style=style) %]
|
37 |
37 |
</td>
|
38 |
38 |
</tr>
|
39 |
39 |
|
40 |
40 |
<tr>
|
41 |
41 |
<th align="right">[%- LxERP.t8('Start date') %]</th>
|
42 |
42 |
<td valign="top">
|
43 |
|
[% L.date_tag("start_date_as_date", start_date_as_date) %]
|
|
43 |
[% L.date_tag("start_date_as_date", config.start_date_as_date) %]
|
44 |
44 |
</td>
|
45 |
45 |
</tr>
|
46 |
46 |
|
47 |
47 |
<tr>
|
48 |
48 |
<th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
|
49 |
49 |
<td valign="top">
|
50 |
|
[% L.date_tag("end_date_as_date", end_date_as_date) %]
|
|
50 |
[% L.date_tag("end_date_as_date", config.end_date_as_date) %]
|
51 |
51 |
</td>
|
52 |
52 |
</tr>
|
53 |
53 |
|
54 |
54 |
<tr>
|
55 |
55 |
<th align="right">[%- LxERP.t8('Create first invoice on') %]<sup>(2)</sup></th>
|
56 |
56 |
<td valign="top">
|
57 |
|
[% L.date_tag("first_billing_date_as_date", first_billing_date_as_date) %]
|
|
57 |
[% L.date_tag("first_billing_date_as_date", config.first_billing_date_as_date) %]
|
58 |
58 |
</td>
|
59 |
59 |
</tr>
|
60 |
60 |
|
61 |
61 |
<tr>
|
62 |
62 |
<th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
|
63 |
63 |
<td valign="top">
|
64 |
|
[% L.input_tag("extend_automatically_by", extend_automatically_by, size => 10) %]
|
|
64 |
[% L.input_tag("extend_automatically_by", config.extend_automatically_by, size => 10) %]
|
65 |
65 |
</td>
|
66 |
66 |
</tr>
|
67 |
67 |
|
68 |
68 |
<tr>
|
69 |
69 |
<th align="right">[%- LxERP.t8('Record in') %]</th>
|
70 |
70 |
<td valign="top">
|
71 |
|
[% L.select_tag("ar_chart_id", AR, title_key => 'description', default => ar_chart_id, style=style) %]
|
|
71 |
[% L.select_tag("ar_chart_id", AR, title_key => 'description', default => config.ar_chart_id, style=style) %]
|
72 |
72 |
</td>
|
73 |
73 |
</tr>
|
74 |
74 |
|
75 |
75 |
<tr>
|
76 |
76 |
<th align="right">[%- LxERP.t8('direct debit') %]</th>
|
77 |
|
<td valign="top">[% L.checkbox_tag("direct_debit", checked=direct_debit) %]</td>
|
|
77 |
<td valign="top">[% L.checkbox_tag("direct_debit", checked=config.direct_debit) %]</td>
|
78 |
78 |
</tr>
|
79 |
79 |
|
80 |
80 |
<tr class="rule-before">
|
81 |
81 |
<th align="right">[%- LxERP.t8('Print automatically') %]</th>
|
82 |
82 |
<td valign="top">
|
83 |
|
[% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => print) %]
|
|
83 |
[% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => config.print) %]
|
84 |
84 |
</td>
|
85 |
85 |
</tr>
|
86 |
86 |
|
87 |
87 |
<tr>
|
88 |
88 |
<th align="right">[%- LxERP.t8('Printer') %]</th>
|
89 |
89 |
<td valign="top">
|
90 |
|
[% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = printer_id, disabled = !print, style=style) %]
|
|
90 |
[% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = config.printer_id, disabled = !config.print, style=style) %]
|
91 |
91 |
</td>
|
92 |
92 |
</tr>
|
93 |
93 |
|
94 |
94 |
<tr>
|
95 |
95 |
<th align="right">[%- LxERP.t8('Copies') %]</th>
|
96 |
|
<td valign="top">[% L.input_tag("copies", copies, size => 6, disabled => !print) %]</td>
|
|
96 |
<td valign="top">[% L.input_tag("copies", config.copies, size => 6, disabled => !config.print) %]</td>
|
97 |
97 |
</tr>
|
98 |
98 |
|
99 |
99 |
<tr class="rule-before">
|
100 |
100 |
<th align="right">[%- LxERP.t8("Send invoice via email") %]</th>
|
101 |
|
<td>[% L.checkbox_tag("send_email", onclick => "toggle_send_email_ctrl()", checked=send_email) %]</td>
|
|
101 |
<td>[% L.checkbox_tag("send_email", onclick => "toggle_send_email_ctrl()", checked=config.send_email) %]</td>
|
102 |
102 |
</tr>
|
103 |
103 |
|
104 |
104 |
<tr>
|
105 |
105 |
<th align="right">[%- LxERP.t8("Contact to send to") %]</th>
|
106 |
|
<td>[% L.select_tag("email_recipient_contact_id", ALL_CONTACTS, title_key="full_name_dep", value_key="cp_id", default=email_recipient_contact_id, with_empty=1, disabled=!send_email, style=style) %]</td>
|
|
106 |
<td>[% L.select_tag("email_recipient_contact_id", ALL_CONTACTS, title_key="full_name_dep", value_key="cp_id", default=config.email_recipient_contact_id, with_empty=1, disabled=!config.send_email, style=style) %]</td>
|
107 |
107 |
</tr>
|
108 |
108 |
|
109 |
109 |
<tr>
|
110 |
110 |
<th align="right">[%- LxERP.t8("Other recipients") %]<sup>3</sup></th>
|
111 |
|
<td>[% L.input_tag("email_recipient_address", email_recipient_address, disabled=!send_email, style=style) %]</td>
|
|
111 |
<td>[% L.input_tag("email_recipient_address", config.email_recipient_address, disabled=!config.send_email, style=style) %]</td>
|
112 |
112 |
</tr>
|
113 |
113 |
|
114 |
114 |
<tr>
|
115 |
115 |
<th align="right">[%- LxERP.t8("Sender") %]<sup>4</sup></th>
|
116 |
|
<td>[% L.input_tag("email_sender", email_sender, disabled=!send_email, style=style) %]</td>
|
|
116 |
<td>[% L.input_tag("email_sender", config.email_sender, disabled=!config.send_email, style=style) %]</td>
|
117 |
117 |
</tr>
|
118 |
118 |
|
119 |
119 |
<tr>
|
120 |
120 |
<th align="right">[%- LxERP.t8("Subject") %]</th>
|
121 |
|
<td>[% L.input_tag("email_subject", email_subject, disabled=!send_email, style=style) %]</td>
|
|
121 |
<td>[% L.input_tag("email_subject", config.email_subject, disabled=!config.send_email, style=style) %]</td>
|
122 |
122 |
</tr>
|
123 |
123 |
|
124 |
124 |
<tr>
|
125 |
125 |
<th align="right" valign="top">[%- LxERP.t8("Message") %]</th>
|
126 |
|
<td valign="top">[% L.textarea_tag("email_body", email_body, disabled=!send_email, rows=8, style=style) %]</td>
|
|
126 |
<td valign="top">[% L.textarea_tag("email_body", config.email_body, disabled=!config.send_email, rows=8, style=style) %]</td>
|
127 |
127 |
</tr>
|
128 |
128 |
</table>
|
129 |
129 |
</p>
|
Wiederkehrende Rechnungen: Templatevariablen in Hash oder Objekt übergeben
Damit lässt sich das Template auch mit einem PeriodicInvoiceConfig-Objekt
aufrufen und kann so von anderen Controllern verwendet werden.