I feel the following line is introducing a bug in calculation of TDS for purhcase invoice.
Tax withholding_category.py
- TDS rate is 2.8% and Single Transaction = 5000 & Cumulative = 10000. (TAX CATEGORY VALUE).
- Apply that category to a Supplier
- Now create purchase invoice (Invoice amount = 5400 and its calculation TDS rate , that correct).
- Now create another invoice of amount 3000 and save.
After saving , in the3000 invoice its also deducts TDS from the net amount.
Expected result: should not apply TDS rate on 3000 invoice because TDS Single transaction is 5000 and the cumulative threshold has not been touched yet.
Was this intentional or is it a bug?