Revert "Tariffs: add tax only on positive prices (#14527)"
This reverts commit 0a42b53b2d.
This commit is contained in:
parent
3d1e969861
commit
01f20644e1
1 changed files with 1 additions and 5 deletions
|
|
@ -6,9 +6,5 @@ type embed struct {
|
|||
}
|
||||
|
||||
func (t *embed) totalPrice(price float64) float64 {
|
||||
total := price + t.Charges
|
||||
if total > 0 {
|
||||
total *= 1 + t.Tax
|
||||
}
|
||||
return total
|
||||
return (price + t.Charges) * (1 + t.Tax)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue