From fc34ded7a81eb09efaf6e22beaabd8d8c50e6e03 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 15 Jan 2021 14:07:30 +0530 Subject: [PATCH] fix: Ref doc map --- erpnext/controllers/buying_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index b380ccb093f..92adcabcb12 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -225,7 +225,7 @@ class BuyingController(StockController): ref_doctype_map = { "Purchase Order": "Sales Order Item", "Purchase Receipt": "Delivery Note Item", - "Purchase Invoice": "Purchase Invoice Item", + "Purchase Invoice": "Sales Invoice Item", } ref_doctype = ref_doctype_map.get(self.doctype)