52e02b4f789b873ff6e430aebf706bc60514f3b5
[kivitendo-erp.git] / templates / webpages / dbupgrade / tax_constraints.html
1 [%- USE T8 %]
2 [% USE HTML %]<div class="listtop">[% 'Inconsistency in database' | $T8 %]</div>
3
4 <form name="Form" method="post" action="login.pl">
5 <input type="hidden" name="action" value="login">
6
7 <p>[% 'There is an inconsistancy in your database.' | $T8 %]</p>
8 <p>[% 'Please contact your administrator.' | $T8 %]</p>
9
10 [% IF invalid_tax_account %]
11   <p>[% 'There are invalid taxnumbers in use.' | $T8 %]</p>
12   <p>[% 'Please set another taxnumber for the following taxes and run the update again:' | $T8 %]</p>
13   <table>
14     <tr>
15       <th class="listheading">[% 'tax_taxkey' | $T8 %]</th>
16       <th class="listheading">[% 'tax_taxdescription' | $T8 %]</th>
17       <th class="listheading">[% 'tax_rate' | $T8 %]</th>
18     </tr>
19
20     [% SET row_odd = '1' %][% FOREACH row = TAX %]
21     <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
22       <td align="right">[% HTML.escape(row.taxkey) %]</td>
23       <td align="left"> [% HTML.escape(row.taxdescription) %]</a></td>
24       <td align="right">[% HTML.escape(row.rate) %] %</td>
25     </tr>
26     [% END %]
27   </table>
28
29 [% END %]
30
31 [% IF taxkey_is_null %]
32   <p>[% 'There are entries in tax where taxkey is NULL.' | $T8 %]</p>
33   <p>[% 'Please define a taxkey for the following taxes and run the update again:' | $T8 %]</p>
34   <table>
35     <tr>
36       <th class="listheading">[% 'tax_taxdescription' | $T8 %]</th>
37       <th class="listheading">[% 'tax_rate' | $T8 %]</th>
38       <th class="listheading">[% 'taxnumber' | $T8 %]</th>
39       <th class="listheading">[% 'account_description' | $T8 %]</th>
40     </tr>
41
42     [% SET row_odd = '1' %][% FOREACH row = TAX %]
43     <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
44       <td align="left"> [% HTML.escape(row.taxdescription) %]</a></td>
45       <td align="right">[% HTML.escape(row.rate) %] %</td>
46       <td align="right">[% HTML.escape(row.taxnumber) %]</td>
47       <td>[% HTML.escape(row.account_description) %]</td>
48     </tr>
49     [% END %]
50   </table>
51
52 [% END %]
53 </form>