File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
SL/BackgroundJob/SelfTest Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ sub check_missing_tax_bookings {
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 <= ?| ;
You can’t perform that action at this time.
0 commit comments