main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 0cd9d63b15 - Show all commits

View File

@@ -116,7 +116,7 @@ class ValuationBase(ModelSQL):
'amount': amount,
'base_amount': base_amount,
'rate': rate,
'mtm': None #round(amount - (mtm * pc.ratio / 100), 2),
'mtm': None, #round(amount - (mtm * pc.ratio / 100), 2),
'unit': sale_line.unit.id if sale_line else line.unit.id,
'currency': currency,
})
@@ -180,7 +180,7 @@ class ValuationBase(ModelSQL):
if line.mtm:
for strat in line.mtm:
values['mtm'] = line.get_mtm(values['qty'])
values['strategy'] = strat.name
values['strategy'] = strat
if values:
price_lines.append(values)
@@ -201,7 +201,7 @@ class ValuationBase(ModelSQL):
if line.mtm:
for strat in line.mtm:
values['mtm'] = line.get_mtm(values['qty'])
values['strategy'] = strat.name
values['strategy'] = strat
if values:
price_lines.append(values)
@@ -228,7 +228,7 @@ class ValuationBase(ModelSQL):
if sl_line.mtm:
for strat in line.mtm:
values['mtm'] = sl_line.get_mtm(values['qty'])
values['strategy'] = strat.name
values['strategy'] = strat
if values:
price_lines.append(values)
@@ -249,7 +249,7 @@ class ValuationBase(ModelSQL):
if sl_line.mtm:
for strat in sl_line.mtm:
values['mtm'] = sl_line.get_mtm(values['qty'])
values['strategy'] = strat.name
values['strategy'] = strat
if values:
price_lines.append(values)