1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]<h1>[% HTML.escape(title) %]</h1>
3 <form action="controller.pl" method="post">
4 [%- L.hidden_tag("id", SELF.config.id) %]
8 <th align="right">[% 'Description' | $T8 %]</th>
9 <td>[%- L.input_tag("config.description", SELF.config.description) %]</td>
12 <th align="right">[% 'Inventory account' | $T8 %]</th>
13 [%- IF SELF.config.id AND linked_parts != 0 %]
14 <td>[%- CHARTLIST.inventory_accno %] -- [%- CHARTLIST.inventory_accno_description %]</td>
16 <td>[%- L.select_tag("config.inventory_accno_id", ACCOUNTS.ic, title_sub=\account_label, default=SELF.config.inventory_accno_id) %]</td>
19 [%- FOREACH tz = TAXZONES %]
21 <th align="right">[% 'Revenue' | $T8 %] [% HTML.escape(tz.description) %]</th>
22 [%- IF SELF.config.id AND linked_parts != 0 %]
23 <td>[% CHARTLIST.${tz.id}.income_accno %] -- [% CHARTLIST.${tz.id}.income_accno_description %]</td>
25 <td>[%- L.select_tag('income_accno_id_' _ tz.id, ACCOUNTS.ic_income, title_sub=\account_label, default=CHARTLIST.${tz.id}.income_accno_id) %]</td>
29 <th align="right">[% 'Expense' | $T8 %] [% HTML.escape(tz.description) %]</th>
30 [%- IF SELF.config.id AND linked_parts != 0 %]
31 <td>[% CHARTLIST.${tz.id}.expense_accno %] -- [% CHARTLIST.${tz.id}.expense_accno_description %]</td>
33 <td>[%- L.select_tag('expense_accno_id_' _ tz.id, ACCOUNTS.ic_expense, title_sub=\account_label, default=CHARTLIST.${tz.id}.expense_accno_id) %]</td>
40 [% L.hidden_tag("action", "Buchungsgruppen/dispatch") %]
41 [% L.submit_tag("action_" _ (SELF.config.id ? "update" : "create"), LxERP.t8('Save'), onclick="return check_prerequisites();") %]
42 <a href="[% SELF.url_for(action='list') %]">[%- LxERP.t8("Cancel") %]</a>
47 <script type="text/javascript">
49 function check_prerequisites() {
50 if ($('#config_description').val() === "") {
51 alert(kivi.t8('The description is missing.'));