mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
stock qty not changed if item change
This commit is contained in:
@@ -128,6 +128,7 @@ class BOM(WebsiteGenerator):
|
|||||||
'conversion_factor' : 1,
|
'conversion_factor' : 1,
|
||||||
'bom_no' : args['bom_no'],
|
'bom_no' : args['bom_no'],
|
||||||
'rate' : rate,
|
'rate' : rate,
|
||||||
|
'stock_qty' : args.get("qty") or args.get("stock_qty") or 1,
|
||||||
'base_rate' : rate if self.company_currency() == self.currency else rate * self.conversion_rate
|
'base_rate' : rate if self.company_currency() == self.currency else rate * self.conversion_rate
|
||||||
}
|
}
|
||||||
return ret_item
|
return ret_item
|
||||||
|
|||||||
Reference in New Issue
Block a user