Package org.mustangproject.ZUGFeRD
Interface IZUGFeRDAllowanceCharge
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.math.BigDecimalgetBasisAmount()returns a basis the precentage is calculated fromdefault java.lang.StringgetCategoryCode()the category ID why this has been applieddefault java.math.BigDecimalgetPercent()returns a percentage, if relative abount, or null for absolute amountsjava.lang.StringgetReason()get a description for the allowance/chargejava.lang.StringgetReasonCode()get the code for the allowance/chargejava.math.BigDecimalgetTaxPercent()get the applicable tax percentage for the allowance/chargejava.math.BigDecimalgetTotalAmount(IAbsoluteValueProvider trans)returns the absolute amount, even if it was relative in the first placebooleanisCharge()is this in reality a charge and now allowance
-
-
-
Method Detail
-
getTotalAmount
java.math.BigDecimal getTotalAmount(IAbsoluteValueProvider trans)
returns the absolute amount, even if it was relative in the first place- Parameters:
trans- the class delivering the initial value- Returns:
- the calculated value (e.g. when percentage)
-
getPercent
default java.math.BigDecimal getPercent()
returns a percentage, if relative abount, or null for absolute amounts- Returns:
- null or Percentage as Bigdecimal
-
getBasisAmount
default java.math.BigDecimal getBasisAmount()
returns a basis the precentage is calculated from- Returns:
- null or the basis
-
getReason
java.lang.String getReason()
get a description for the allowance/charge- Returns:
- the description
-
getReasonCode
java.lang.String getReasonCode()
get the code for the allowance/charge- Returns:
- the code
-
getTaxPercent
java.math.BigDecimal getTaxPercent()
get the applicable tax percentage for the allowance/charge- Returns:
- the percentage
-
getCategoryCode
default java.lang.String getCategoryCode()
the category ID why this has been applied- Returns:
- default value Standard rate=S
-
isCharge
boolean isCharge()
is this in reality a charge and now allowance- Returns:
- true if amnount to be treated negative
-
-