fix: Ref doc map

This commit is contained in:
Deepesh Garg
2021-01-15 14:07:30 +05:30
parent 342299fe3b
commit fc34ded7a8

View File

@@ -225,7 +225,7 @@ class BuyingController(StockController):
ref_doctype_map = { ref_doctype_map = {
"Purchase Order": "Sales Order Item", "Purchase Order": "Sales Order Item",
"Purchase Receipt": "Delivery Note Item", "Purchase Receipt": "Delivery Note Item",
"Purchase Invoice": "Purchase Invoice Item", "Purchase Invoice": "Sales Invoice Item",
} }
ref_doctype = ref_doctype_map.get(self.doctype) ref_doctype = ref_doctype_map.get(self.doctype)