mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 17:26:43 +00:00
fix: removed unused query
(cherry picked from commit 5f590ddfa2)
# Conflicts:
# erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py
This commit is contained in:
@@ -610,8 +610,11 @@ def get_tcs_amount(parties, inv, tax_details, vouchers, adv_vouchers):
|
|||||||
conditions.append(ple.voucher_no == ple.against_voucher_no)
|
conditions.append(ple.voucher_no == ple.against_voucher_no)
|
||||||
conditions.append(ple.company == inv.company)
|
conditions.append(ple.company == inv.company)
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
(qb.from_(ple).select(Abs(Sum(ple.amount))).where(Criterion.all(conditions)).run(as_list=1))
|
(qb.from_(ple).select(Abs(Sum(ple.amount))).where(Criterion.all(conditions)).run(as_list=1))
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> 5f590ddfa2 (fix: removed unused query)
|
||||||
advance_amt = (
|
advance_amt = (
|
||||||
qb.from_(ple).select(Abs(Sum(ple.amount))).where(Criterion.all(conditions)).run()[0][0] or 0.0
|
qb.from_(ple).select(Abs(Sum(ple.amount))).where(Criterion.all(conditions)).run()[0][0] or 0.0
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user