Revision 6c8feefe
SL/BackgroundJob/SelfTest/Transactions.pm | ||
---|---|---|
523 | 523 |
# check tax bookings. all taxkey <> 0 should have tax bookings in acc_trans |
524 | 524 |
|
525 | 525 |
my $query = qq| select trans_id, chart.accno,transdate from acc_trans left join chart on (chart.id = acc_trans.chart_id) |
526 |
WHERE taxkey NOT IN (SELECT taxkey from tax where rate=0) AND trans_id NOT IN |
|
526 |
WHERE taxkey NOT IN (SELECT taxkey from tax where rate=0 OR reverse_charge_chart_id is not null) AND trans_id NOT IN
|
|
527 | 527 |
(select trans_id from acc_trans where chart_link ilike '%tax%' and trans_id IN |
528 | 528 |
(SELECT trans_id from acc_trans where taxkey NOT IN (SELECT taxkey from tax where rate=0))) |
529 | 529 |
AND transdate >= ? AND transdate <= ?|; |
Auch abrufbar als: Unified diff
SelfTest:check_missing_tax: Bei reverse_charge Steuer, kein Fehlalarm