mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix: only erase BOM when do_not_explode is set
This commit is contained in:
@@ -251,9 +251,8 @@ class BOM(WebsiteGenerator):
|
|||||||
for item in self.get("items"):
|
for item in self.get("items"):
|
||||||
self.validate_bom_currency(item)
|
self.validate_bom_currency(item)
|
||||||
|
|
||||||
item.bom_no = ""
|
if item.do_not_explode:
|
||||||
if not item.do_not_explode:
|
item.bom_no = ""
|
||||||
item.bom_no = item.bom_no
|
|
||||||
|
|
||||||
ret = self.get_bom_material_detail(
|
ret = self.get_bom_material_detail(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user