fix: check if customer provided item while setting opening stock (#24633)

This commit is contained in:
Afshan
2021-02-24 19:05:29 +05:30
committed by GitHub
parent 9272ea838f
commit 2b2e205b74

View File

@@ -177,7 +177,7 @@ class Item(WebsiteGenerator):
if not self.valuation_rate and self.standard_rate:
self.valuation_rate = self.standard_rate
if not self.valuation_rate:
if not self.valuation_rate and not self.is_customer_provided_item:
frappe.throw(_("Valuation Rate is mandatory if Opening Stock entered"))
from erpnext.stock.doctype.stock_entry.stock_entry_utils import make_stock_entry