mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-13 17:01:21 +01:00
Add rounding option to tax getter
This commit is contained in:
parent
f6aad7e397
commit
31003ca29f
@ -19,7 +19,7 @@ import java.util.UUID;
|
||||
public class TaxModule implements Listener {
|
||||
|
||||
private static BigDecimal getTax(BigDecimal price, float taxAmount) {
|
||||
return price.multiply(BigDecimal.valueOf(taxAmount).divide(BigDecimal.valueOf(100)));
|
||||
return price.multiply(BigDecimal.valueOf(taxAmount).divide(BigDecimal.valueOf(100), BigDecimal.ROUND_DOWN));
|
||||
}
|
||||
|
||||
private static boolean isServerAccount(UUID name) {
|
||||
|
Loading…
Reference in New Issue
Block a user