Revert "Tariffs: add tax only on positive prices (#14527)"

This reverts commit 0a42b53b2d.
This commit is contained in:
andig 2024-06-26 09:53:12 +02:00
parent 3d1e969861
commit 01f20644e1

View file

@ -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)
}