Vendure 2.0.1: The surcharge price
and priceWithTax
getters are not rounded
#2293
Labels
type: bug 🐛
Something isn't working
The surcharge entity can return a decimal number for the
price
andpriceWithTax
properties with the DefaultMoneyStrategy active. This happens because theroundMoney
util is not used.To Reproduce, just use a Surcharge and set tax rate that will guarantee a decimal number, then check those properties - one of them will most likely have decimals if your tax rate is not evenly
The text was updated successfully, but these errors were encountered: