fix: only erase BOM when do_not_explode is set
This commit is contained in:
parent
b170cec2fe
commit
d224bf1d34
@ -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)
|
||||||
|
|
||||||
|
if item.do_not_explode:
|
||||||
item.bom_no = ""
|
item.bom_no = ""
|
||||||
if not item.do_not_explode:
|
|
||||||
item.bom_no = item.bom_no
|
|
||||||
|
|
||||||
ret = self.get_bom_material_detail(
|
ret = self.get_bom_material_detail(
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user