Interface VatCalculationService
- All Known Implementing Classes:
VatCalculationServiceImpl
public interface VatCalculationService
all these methods function the same way
returns the netto, brutto or vat amount based on:
1. the price
2. the vat percentage (if there's no vat, this is null)
3. the rounding (same as in entity Rounding)
4. whether the vat is inclusive (true) or exclusive (false or null), this is not used when vat percentage is null
-
Method Summary
Modifier and TypeMethodDescriptiongetBruttoAmount
(BigDecimal price, @Nullable BigDecimal vatPercent, BigDecimal rounding, @Nullable Boolean inclusive) getNettoAmount
(BigDecimal price, @Nullable BigDecimal vatPercent, BigDecimal rounding, @Nullable Boolean inclusive) getVatAmount
(BigDecimal price, @Nullable BigDecimal vatPercent, BigDecimal rounding, @Nullable Boolean inclusive)
-
Method Details
-
getNettoAmount
BigDecimal getNettoAmount(BigDecimal price, @Nullable @Nullable BigDecimal vatPercent, BigDecimal rounding, @Nullable @Nullable Boolean inclusive) -
getVatAmount
BigDecimal getVatAmount(BigDecimal price, @Nullable @Nullable BigDecimal vatPercent, BigDecimal rounding, @Nullable @Nullable Boolean inclusive) -
getBruttoAmount
BigDecimal getBruttoAmount(BigDecimal price, @Nullable @Nullable BigDecimal vatPercent, BigDecimal rounding, @Nullable @Nullable Boolean inclusive)
-