Package org.mustangproject
Class Allowance
- java.lang.Object
-
- org.mustangproject.Charge
-
- org.mustangproject.Allowance
-
- All Implemented Interfaces:
IZUGFeRDAllowanceCharge
public class Allowance extends Charge
(absolute) allowances on item and document level
-
-
Field Summary
-
Fields inherited from class org.mustangproject.Charge
basisAmount, categoryCode, percent, reason, reasonCode, taxPercent, totalAmount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalgetTotalAmount(IAbsoluteValueProvider currentItem)returns the absolute amount, even if it was relative in the first placebooleanisCharge()Always to return false for IZUGFeRDAllowanceCharge-
Methods inherited from class org.mustangproject.Charge
getBasisAmount, getCategoryCode, getPercent, getReason, getReasonCode, getTaxPercent, getTotalAmount, setBasisAmount, setCategoryCode, setPercent, setReason, setReasonCode, setTaxPercent, setTotalAmount
-
-
-
-
Method Detail
-
getTotalAmount
public java.math.BigDecimal getTotalAmount(IAbsoluteValueProvider currentItem)
Description copied from interface:IZUGFeRDAllowanceChargereturns the absolute amount, even if it was relative in the first place- Specified by:
getTotalAmountin interfaceIZUGFeRDAllowanceCharge- Overrides:
getTotalAmountin classCharge- Parameters:
currentItem- the class delivering the initial value- Returns:
- the calculated value (e.g. when percentage)
-
isCharge
public boolean isCharge()
Always to return false for IZUGFeRDAllowanceCharge- Specified by:
isChargein interfaceIZUGFeRDAllowanceCharge- Overrides:
isChargein classCharge- Returns:
- false since its not supposed to be calculated negatively
-
-