Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Trunk
-
None
-
Community Day 2 - 2016, OFBiz Community Day (May 2020)
Description
- Make InvoiceWorker class as final.
- Add a private constructor.
- Make the following private static variable as final.
private static BigDecimal ZERO = BigDecimal.ZERO; private static int decimals = UtilNumber.getBigDecimalScale("invoice.decimals"); private static int rounding = UtilNumber.getBigDecimalRoundingMode("invoice.rounding"); private static int taxDecimals = UtilNumber.getBigDecimalScale("salestax.calc.decimals"); private static int taxRounding = UtilNumber.getBigDecimalRoundingMode("salestax.rounding");