08.02.26
This commit is contained in:
@@ -179,7 +179,7 @@ class ValuationBase(ModelSQL):
|
|||||||
values = cls._build_basis_pnl(line=line, lot=lot, sale_line=None, pc=pc, sign=-1)
|
values = cls._build_basis_pnl(line=line, lot=lot, sale_line=None, pc=pc, sign=-1)
|
||||||
if line.mtm:
|
if line.mtm:
|
||||||
for strat in line.mtm:
|
for strat in line.mtm:
|
||||||
values['mtm'] = strat.get_mtm(values['qty'])
|
values['mtm'] = strat.get_mtm(values['quantity'])
|
||||||
values['strategy'] = strat
|
values['strategy'] = strat
|
||||||
|
|
||||||
if values:
|
if values:
|
||||||
@@ -200,7 +200,7 @@ class ValuationBase(ModelSQL):
|
|||||||
)
|
)
|
||||||
if line.mtm:
|
if line.mtm:
|
||||||
for strat in line.mtm:
|
for strat in line.mtm:
|
||||||
values['mtm'] = strat.get_mtm(values['qty'])
|
values['mtm'] = strat.get_mtm(values['quantity'])
|
||||||
values['strategy'] = strat
|
values['strategy'] = strat
|
||||||
|
|
||||||
if values:
|
if values:
|
||||||
@@ -227,7 +227,7 @@ class ValuationBase(ModelSQL):
|
|||||||
values = cls._build_basis_pnl(line=line, lot=sl, sale_line=sl_line, pc=pc, sign=+1)
|
values = cls._build_basis_pnl(line=line, lot=sl, sale_line=sl_line, pc=pc, sign=+1)
|
||||||
if sl_line.mtm:
|
if sl_line.mtm:
|
||||||
for strat in line.mtm:
|
for strat in line.mtm:
|
||||||
values['mtm'] = strat.get_mtm(values['qty'])
|
values['mtm'] = strat.get_mtm(values['quantity'])
|
||||||
values['strategy'] = strat
|
values['strategy'] = strat
|
||||||
|
|
||||||
if values:
|
if values:
|
||||||
@@ -248,7 +248,7 @@ class ValuationBase(ModelSQL):
|
|||||||
)
|
)
|
||||||
if sl_line.mtm:
|
if sl_line.mtm:
|
||||||
for strat in sl_line.mtm:
|
for strat in sl_line.mtm:
|
||||||
values['mtm'] = strat.get_mtm(values['qty'])
|
values['mtm'] = strat.get_mtm(values['quantity'])
|
||||||
values['strategy'] = strat
|
values['strategy'] = strat
|
||||||
|
|
||||||
if values:
|
if values:
|
||||||
|
|||||||
Reference in New Issue
Block a user