mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
Merge pull request #18592 from deepeshgarg007/utils_fix_v12
fix: Ambigious column in query
This commit is contained in:
@@ -382,7 +382,7 @@ def get_qty_amount_data_for_cumulative(pr_doc, doc, items=[]):
|
|||||||
`tab{child_doc}`.amount
|
`tab{child_doc}`.amount
|
||||||
FROM `tab{child_doc}`, `tab{parent_doc}`
|
FROM `tab{child_doc}`, `tab{parent_doc}`
|
||||||
WHERE
|
WHERE
|
||||||
`tab{child_doc}`.parent = `tab{parent_doc}`.name and {date_field}
|
`tab{child_doc}`.parent = `tab{parent_doc}`.name and `tab{parent_doc}`.{date_field}
|
||||||
between %s and %s and `tab{parent_doc}`.docstatus = 1
|
between %s and %s and `tab{parent_doc}`.docstatus = 1
|
||||||
{condition} group by `tab{child_doc}`.name
|
{condition} group by `tab{child_doc}`.name
|
||||||
""".format(parent_doc = doctype,
|
""".format(parent_doc = doctype,
|
||||||
|
|||||||
Reference in New Issue
Block a user