stock qty not changed if item change
This commit is contained in:
parent
ac3ad0810a
commit
5b7028c7bb
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user