all the refactor
This commit is contained in:
@@ -305,7 +305,7 @@ func (c *CartGrain) UpdateTotals() {
|
||||
voucher.Applied = true
|
||||
continue
|
||||
}
|
||||
value := NewPriceFromIncVat(voucher.Value, 25)
|
||||
value := NewPriceFromIncVat(voucher.Value, 2500) // 25% in basis points
|
||||
if c.TotalPrice.IncVat <= value.IncVat {
|
||||
// don't apply discounts to more than the total price
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user