fix: Ambiguous column error while submitting stock entry

fix: Ambiguous column error while submitting stock entry
This commit is contained in:
Deepesh Garg 2023-07-12 10:18:38 +05:30 committed by GitHub
commit 0a6c565eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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