fix: Concurrency issues in Sales and Purchase returns (#34019)

This commit is contained in:
Deepesh Garg 2023-02-13 15:31:19 +05:30 committed by GitHub
parent 4f2553e7b6
commit a67284e96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,6 +252,7 @@ def get_already_returned_items(doc):
child.parent = par.name and par.docstatus = 1
and par.is_return = 1 and par.return_against = %s
group by item_code
for update
""".format(
column, doc.doctype, doc.doctype
),