Cambios solicitados
This commit is contained in:
@ -25,13 +25,14 @@
|
||||
unit.promotions?.forEach(promotion => {
|
||||
amount /= 1/(1 - promotion.amount)
|
||||
})
|
||||
amount /= 1/(1 - this.commission)
|
||||
amount = 1 - amount
|
||||
prices.push({
|
||||
id: unit.id,
|
||||
base: price,
|
||||
commission: this.commission,
|
||||
broker: price / (1 - this.commission),
|
||||
amount,
|
||||
final: price / (1 - amount)
|
||||
final: price / (1 - this.commission) / (1 - amount)
|
||||
})
|
||||
})
|
||||
return prices
|
||||
|
Reference in New Issue
Block a user