Skip to content

Commit cd1b45f

Browse files
committed
SelfTest:check_missing_tax: Bei reverse_charge Steuer, kein Fehlalarm
1 parent 9fe89a1 commit cd1b45f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SL/BackgroundJob/SelfTest/Transactions.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ sub check_missing_tax_bookings {
523523
# check tax bookings. all taxkey <> 0 should have tax bookings in acc_trans
524524

525525
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
527527
(select trans_id from acc_trans where chart_link ilike '%tax%' and trans_id IN
528528
(SELECT trans_id from acc_trans where taxkey NOT IN (SELECT taxkey from tax where rate=0)))
529529
AND transdate >= ? AND transdate <= ?|;

0 commit comments

Comments
 (0)