fix: travis failing (#24211)

This commit is contained in:
rohitwaghchaure
2020-12-25 18:13:12 +05:30
committed by GitHub
parent 327f03566a
commit 0917c1ec7c

View File

@@ -204,6 +204,8 @@ def get_already_returned_items(doc):
return items
def get_returned_qty_map_for_row(row_name, doctype):
if doctype == "POS Invoice": return {}
child_doctype = doctype + " Item"
reference_field = "dn_detail" if doctype == "Delivery Note" else frappe.scrub(child_doctype)