产品优化

This commit is contained in:
jinling.yang
2023-11-16 17:35:04 +08:00
parent 77535fa70e
commit f36c2ac096
5 changed files with 87 additions and 45 deletions

View File

@@ -95,7 +95,6 @@ class ResMrpBomMo(models.Model):
limit=1,
order='volume desc'
)
logging.info('get_bom-vals:%s' % embryo_has)
if embryo_has:
rate_of_waste = ((embryo_has.volume - product.model_volume) % embryo_has.volume) * 100
if rate_of_waste <= 20: