mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 17:11:33 +02:00
fix: Ambiguous column error while creating Sales Return (#45275)
(cherry picked from commit ec487c14d9)
This commit is contained in:
@@ -259,7 +259,7 @@ def get_already_returned_items(doc):
|
|||||||
)
|
)
|
||||||
data = frappe.db.sql(
|
data = frappe.db.sql(
|
||||||
f"""
|
f"""
|
||||||
select {column}, {field}
|
select {column}, child.{field}
|
||||||
from
|
from
|
||||||
`tab{doc.doctype} Item` child, `tab{doc.doctype}` par
|
`tab{doc.doctype} Item` child, `tab{doc.doctype}` par
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user