Bulk Payroll did not calculate tax

Hey Everyone,
I was testing payroll for 5000 employees dummy data and here are the methods I used.

Used Data import for 5000 employees - 3 Batches 2000, 2000 and 1000 batch. Worked perfectly

Used Data import for Salary structure Assignment of 5000 employees - again 3 batches worked perfectly.

All the salary structures were in draft and ERP doesn’t allow 500+ batch run so I submitted in 10 batches, 500 submissions every time. And it went perfectly.

Now I created a Payroll entry and created Salary Slips. it took more than 7 minutes to process and after successful generation of 5000 salary slips.

Issue is there is no tax calculated in any slip. I created 1 more employee and tested using same salary structure manually, and tax was calculated fine.

So, the problem is not with the Salary components or any things, its just the Batch processing doesn’t calculate the TAX. Now I went through random salary slips and removed the TAX component and Pressed Save Button, it calculated the TAX perfectly and TAX component was there.

Am I missing something or is it a bug in erp that it doesn’t work perfectly with batch payroll of 5000 employees?

in any case the calculation method should be same right?

yep, every method is the same for the bulk operation and for single entry. I have done payroll for a batch of 100 employees and worked but i tried with 5000 and it did not calculate anything just showing the basic and a fixed deduction.

This is unlikely, calculations are done separately per slip regardless of the number of salary slips processed