Open 01es opened 10 years ago
I have just noticed that Money
uses plus()
and minus()
to add and subtract another Money
- it would be more consistent if Money
used add()
and subtract()
for consistency with BigDecimal
, as there are often used together and BigDecimal.plus()
has a different meaning compared to BigDecimal.add()
.
Type
Money
need to be enhanced in order to support construction of ex tax (i.e. ex GST, ex VAT) instances. Also, need to use typeBigDecimal
for representing a tax rate due to the fact that some countries use fractional tax rates (e.g. in UK until 2011 VAT was 17.5%).