@@ -74,7 +74,7 @@ class Agent(ModelView, ModelSQL):
|
||||
Round(
|
||||
Sum(Coalesce(commission.base_amount, 0)),
|
||||
currency.digits).as_('base_amount'),
|
||||
Round(Sum(commission.amount), currency.digits).as_('amount'),
|
||||
Round(Sum(commission.amount), price_digits[1]).as_('amount'),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -232,7 +232,7 @@ Check commission reporting per agent::
|
||||
>>> reporting_agent.base_amount
|
||||
Decimal('100.00')
|
||||
>>> reporting_agent.amount
|
||||
Decimal('10.00')
|
||||
Decimal('10.0000')
|
||||
>>> reporting_agent.number
|
||||
1
|
||||
|
||||
@@ -240,6 +240,6 @@ Check commission reporting per agent::
|
||||
>>> reporting_agent_timeseries.base_amount
|
||||
Decimal('100.00')
|
||||
>>> reporting_agent_timeseries.amount
|
||||
Decimal('10.00')
|
||||
Decimal('10.0000')
|
||||
>>> reporting_agent_timeseries.number
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user