Revision c5ebebfb
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/acctranscorrections/assistant_for_wrong_taxes.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[% USE HTML %][% USE LxERP %]
|
|
3 |
<h1>[% title %]</h1>
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %]
|
|
4 | 4 |
|
5 |
<p> |
|
6 |
[% 'The following transaction contains wrong taxes:' | $T8 %] |
|
7 |
<a href="[% problem.link %]"> |
|
8 |
[%- IF problem.data.module == 'ar' %] |
|
9 |
[% 'AR Transaction' | $T8 %] |
|
10 |
[%- ELSIF problem.data.module == 'ap' %] |
|
11 |
[% 'AP Transaction' | $T8 %] |
|
12 |
[%- ELSE %] |
|
13 |
[% 'General Ledger Transaction' | $T8 %] |
|
14 |
[%- END %] |
|
15 |
[% HTML.escape(problem.data.reference) %] |
|
16 |
</a> |
|
17 |
</p> |
|
5 |
<h1>[% title %]</h1> |
|
18 | 6 |
|
19 |
<p>[% 'At the moment the transaction looks like this:' | $T8 %]</p> |
|
7 |
<p>[% 'The following transaction contains wrong taxes:' | $T8 %] <a href="[% problem.link %]"> |
|
8 |
[% IF problem.data.module == 'ar' %][% 'AR Transaction' | $T8 %] |
|
9 |
[% ELSIF problem.data.module == 'ap' %][% 'AP Transaction' | $T8 %] |
|
10 |
[% ELSE %][% 'General Ledger Transaction' | $T8 %][% END %] |
|
11 |
[% HTML.escape(problem.data.reference) %] |
|
12 |
</a></p> |
|
20 | 13 |
|
21 |
<p> |
|
22 |
<table> |
|
23 |
<tr> |
|
24 |
<th class="listheading">[% 'Account' | $T8 %]</th> |
|
25 |
<th class="listheading">[% 'Debit' | $T8 %]</th> |
|
26 |
<th class="listheading">[% 'Credit' | $T8 %]</th> |
|
27 |
<th class="listheading">[% 'Taxkey' | $T8 %]</th> |
|
28 |
<th class="listheading">[% 'Recorded Tax' | $T8 %]</th> |
|
29 |
<th class="listheading">[% 'Expected Tax' | $T8 %]</th> |
|
30 |
<th class="listheading"></th> |
|
31 |
</tr> |
|
14 |
<p>[% 'At the moment the transaction looks like this:' | $T8 %]</p> |
|
32 | 15 |
|
33 |
[%- SET curr_row = 0 %] |
|
34 |
[%- IF problem.acc_trans.credit.entries.size > problem.acc_trans.debit.entries.size %] |
|
35 |
[%- SET order = [ 'credit', 'debit' ] %] |
|
36 |
[%- SET other_side = 'debit' %] |
|
37 |
[%- ELSE %] |
|
38 |
[%- SET order = [ 'debit', 'credit' ] %] |
|
39 |
[%- SET other_side = 'credit' %] |
|
40 |
[%- END %] |
|
16 |
<table class="tbl-List"> |
|
17 |
<thead> |
|
18 |
<tr> |
|
19 |
<th>[% 'Account' | $T8 %]</th> |
|
20 |
<th>[% 'Debit' | $T8 %]</th> |
|
21 |
<th>[% 'Credit' | $T8 %]</th> |
|
22 |
<th>[% 'Taxkey' | $T8 %]</th> |
|
23 |
<th>[% 'Recorded Tax' | $T8 %]</th> |
|
24 |
<th>[% 'Expected Tax' | $T8 %]</th> |
|
25 |
<th></th> |
|
26 |
</tr> |
|
27 |
</thead> |
|
41 | 28 |
|
42 |
[%- FOREACH idx = order %] |
|
43 |
[%- FOREACH row = problem.acc_trans.$idx.entries %] |
|
44 |
[%- SET curr_row = curr_row + 1 %] |
|
45 |
<tr class="listrow[% curr_row % 2 %]"> |
|
46 |
<td>[% HTML.escape(row.accno) %]--[% HTML.escape(row.chartdescription) %]</td> |
|
47 |
<td align="right"> |
|
48 |
[%- IF idx == 'debit' %] |
|
49 |
[% LxERP.format_amount(row.display_amount, 2) %] |
|
50 |
[%- END %] |
|
51 |
</td> |
|
52 |
<td align="right"> |
|
53 |
[%- IF idx == 'credit' %] |
|
54 |
[% LxERP.format_amount(row.display_amount, 2) %] |
|
55 |
[%- END %] |
|
56 |
</td> |
|
57 |
<td>[% IF idx != other_side %][% HTML.escape(row.taxdescription) %][% END %]</td> |
|
58 |
<td align="right">[% IF row.actual_tax %][% LxERP.format_amount(row.actual_tax, 2) %][% END %]</td> |
|
59 |
<td align="right">[% IF row.expected_tax %][% LxERP.format_amount(row.expected_tax, 2) %][% END %]</td> |
|
60 |
<td align="center" valign="center"><img src="image/[% IF row.tax_error %]error[% ELSE %]ok[% END %].png"></td> |
|
61 |
</tr> |
|
62 |
[%- END %] |
|
63 |
[%- END %] |
|
29 |
[% SET curr_row = 0 %] |
|
30 |
[% IF problem.acc_trans.credit.entries.size > problem.acc_trans.debit.entries.size %] |
|
31 |
[% SET order = [ 'credit', 'debit' ] %] |
|
32 |
[% SET other_side = 'debit' %] |
|
33 |
[% ELSE %] |
|
34 |
[% SET order = [ 'debit', 'credit' ] %] |
|
35 |
[% SET other_side = 'credit' %] |
|
36 |
[% END %] |
|
64 | 37 |
|
65 |
</table> |
|
66 |
</p> |
|
67 |
<hr> |
|
38 |
<tbody> |
|
39 |
[% FOREACH idx = order %] |
|
40 |
[% FOREACH row = problem.acc_trans.$idx.entries %] |
|
41 |
[% SET curr_row = curr_row + 1 %] |
|
42 |
<tr class="listrow[% curr_row % 2 %]"> |
|
43 |
<td>[% HTML.escape(row.accno) %]--[% HTML.escape(row.chartdescription) %]</td> |
|
44 |
<td>[% IF idx == 'debit' %][% LxERP.format_amount(row.display_amount, 2) %][% END %]</td> |
|
45 |
<td>[% IF idx == 'credit' %][% LxERP.format_amount(row.display_amount, 2) %][% END %]</td> |
|
46 |
<td>[% IF idx != other_side %][% HTML.escape(row.taxdescription) %][% END %]</td> |
|
47 |
<td>[% IF row.actual_tax %][% LxERP.format_amount(row.actual_tax, 2) %][% END %]</td> |
|
48 |
<td>[% IF row.expected_tax %][% LxERP.format_amount(row.expected_tax, 2) %][% END %]</td> |
|
49 |
<td><img src="image/[% IF row.tax_error %]error[% ELSE %]ok[% END %].png"></td> |
|
50 |
</tr> |
|
51 |
[% END %] |
|
52 |
[% END %] |
|
53 |
</tbody> |
|
54 |
</table> |
|
68 | 55 |
|
69 |
<form method="post" action="acctranscorrections.pl">
|
|
70 |
<p>
|
|
71 |
<input type="hidden" name="action" value="delete_transaction"> |
|
72 |
<input type="hidden" name="trans_id" value="[% HTML.escape(problem.data.trans_id) %]"> |
|
73 |
<input type="submit" class="submit" value="[% 'Delete transaction' | $T8 %]">
|
|
74 |
<input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]">
|
|
75 |
</p>
|
|
76 |
</form>
|
|
56 |
<form method="post" action="acctranscorrections.pl"> |
|
57 |
<div class="buttons">
|
|
58 |
<input type="hidden" name="action" value="delete_transaction">
|
|
59 |
<input type="hidden" name="trans_id" value="[% HTML.escape(problem.data.trans_id) %]">
|
|
60 |
<input type="submit" value="[% 'Delete transaction' | $T8 %]">
|
|
61 |
<input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]">
|
|
62 |
</div>
|
|
63 |
</form> |
|
77 | 64 |
|
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/acc*
Dateien in acc_trans/* und acctranscorrections/*