fix: Ambiguous column error while submitting stock entry (#36058)

fix: Ambiguous column error while submitting stock entry (#36058)
This commit is contained in:
mergify[bot]
2023-07-12 13:23:07 +05:30
committed by GitHub
parent ea807f8d9a
commit a3a052bb51

View File

@@ -1001,7 +1001,7 @@ class WorkOrder(Document):
consumed_qty = frappe.db.sql(
"""
SELECT
SUM(qty)
SUM(detail.qty)
FROM
`tabStock Entry` entry,
`tabStock Entry Detail` detail