mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Merge pull request #50231 from frappe/mergify/bp/version-15-hotfix/pr-40586
This commit is contained in:
@@ -55,6 +55,11 @@ class ItemPrice(Document):
|
|||||||
if not frappe.db.exists("Item", self.item_code):
|
if not frappe.db.exists("Item", self.item_code):
|
||||||
frappe.throw(_("Item {0} not found.").format(self.item_code))
|
frappe.throw(_("Item {0} not found.").format(self.item_code))
|
||||||
|
|
||||||
|
if self.uom and not frappe.db.exists(
|
||||||
|
"UOM Conversion Detail", {"parenttype": "Item", "parent": self.item_code, "uom": self.uom}
|
||||||
|
):
|
||||||
|
frappe.throw(_("UOM {0} not found in Item {1}").format(self.uom, self.item_code))
|
||||||
|
|
||||||
def update_price_list_details(self):
|
def update_price_list_details(self):
|
||||||
if self.price_list:
|
if self.price_list:
|
||||||
price_list_details = frappe.db.get_value(
|
price_list_details = frappe.db.get_value(
|
||||||
|
|||||||
Reference in New Issue
Block a user