diff --git a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py index b8fd512ee958..a52c8de87b04 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py @@ -593,6 +593,7 @@ def get_tcs_amount(parties, inv, tax_details, vouchers, adv_vouchers): "voucher_no": ["in", vouchers], }, "sum(debit)", + order_by=None ) or 0.0 ) @@ -661,6 +662,7 @@ def get_limit_consumed(ldc, parties): "company": ldc.company, }, "sum(tax_withholding_net_total)", + order_by=None ) return limit_consumed