main #7
@@ -302,8 +302,8 @@ class ValuationBase(ModelSQL):
|
|||||||
if sf.currency != line.purchase.currency:
|
if sf.currency != line.purchase.currency:
|
||||||
with Transaction().set_context(date=Date.today()):
|
with Transaction().set_context(date=Date.today()):
|
||||||
price = Currency.compute(sf.currency, price, line.purchase.currency)
|
price = Currency.compute(sf.currency, price, line.purchase.currency)
|
||||||
if line.mtm:
|
|
||||||
qty = round(lot.get_current_quantity_converted(), 5)
|
qty = round(lot.get_current_quantity_converted(), 5)
|
||||||
|
if line.mtm:
|
||||||
for strat in line.mtm:
|
for strat in line.mtm:
|
||||||
fee_lines.append({
|
fee_lines.append({
|
||||||
'lot': lot.id,
|
'lot': lot.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user