Steuerzonen ungültig machen
[kivitendo-erp.git] / templates / webpages / buchungsgruppen / form.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]<h1>[% HTML.escape(title) %]</h1>
2
3 <form action="controller.pl" method="post">
4 [%- L.hidden_tag("id", SELF.config.id) %]
5
6 <table>
7   <tr>
8     <th align="right">[% 'Description' | $T8 %]</th>
9     <td>[%- L.input_tag("config.description", SELF.config.description) %]</td>
10   </tr>
11   <tr>
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>
15     [%- ELSE %]
16     <td>[%- L.select_tag("config.inventory_accno_id", ACCOUNTS.ic, title_sub=\account_label, default=SELF.config.inventory_accno_id) %]</td>
17     [%- END %]
18   </tr>
19 [%- FOREACH tz = TAXZONES %]
20   <tr>
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>
24     [%- ELSE %]
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>
26     [%- END %]
27   </tr>
28   <tr>
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>
32     [%- ELSE %]
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>
34     [%- END %]
35   </tr>
36 [%- END %]
37 </table>
38
39  <p>
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>
43  </p>
44
45  <hr>
46
47 <script type="text/javascript">
48 <!--
49 function check_prerequisites() {
50   if ($('#config_description').val() === "") {
51     alert(kivi.t8('The description is missing.'));
52     return false;
53   }
54
55   return true;
56 }
57 -->
58 </script>
59 </form>