Revision cd1b45f6
Von Jan Büren vor 6 Monaten hinzugefügt
- ID cd1b45f61aa54c5ca348d6828df914b2692cf0a7
- Vorgänger 9fe89a1e
SL/BackgroundJob/SelfTest/Transactions.pm | ||
---|---|---|
# check tax bookings. all taxkey <> 0 should have tax bookings in acc_trans
|
||
|
||
my $query = qq| select trans_id, chart.accno,transdate from acc_trans left join chart on (chart.id = acc_trans.chart_id)
|
||
WHERE taxkey NOT IN (SELECT taxkey from tax where rate=0) AND trans_id NOT IN
|
||
WHERE taxkey NOT IN (SELECT taxkey from tax where rate=0 OR reverse_charge_chart_id is not null) AND trans_id NOT IN
|
||
(select trans_id from acc_trans where chart_link ilike '%tax%' and trans_id IN
|
||
(SELECT trans_id from acc_trans where taxkey NOT IN (SELECT taxkey from tax where rate=0)))
|
||
AND transdate >= ? AND transdate <= ?|;
|
Auch abrufbar als: Unified diff
SelfTest:check_missing_tax: Bei reverse_charge Steuer, kein Fehlalarm