Skip to content

Commit

Permalink
SelfTest:check_missing_tax: Bei reverse_charge Steuer, kein Fehlalarm
Browse files Browse the repository at this point in the history
  • Loading branch information
kivijan authored and jbueren committed Nov 6, 2024
1 parent 9fe89a1 commit 6c8feef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SL/BackgroundJob/SelfTest/Transactions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ sub check_missing_tax_bookings {
# 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 <= ?|;
Expand Down

0 comments on commit 6c8feef

Please sign in to comment.