Files
mustangproject/library/src/main/java/org/mustangproject/Allowance.java
2024-11-28 23:53:48 +01:00

42 lines
892 B
Java

package org.mustangproject;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.math.BigDecimal;
/***
* (absolute) allowances on item and document level
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Allowance extends Charge {
/***
* bean constructor
*/
public Allowance() {
}
/***
* create a allowance with the following amount
* @param totalAmount the money amount as bigdecimal (prob max 2 decimals)
*/
public Allowance(BigDecimal totalAmount) {
super(totalAmount);
}
/***
* Always to return false for IZUGFeRDAllowanceCharge
* @return false since its not supposed to be calculated negatively
*/
@Override
@JsonIgnore
public boolean isCharge() {
return false;
}
}