public class CashDiscount extends java.lang.Object implements IZUGFeRDCashDiscount
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Integer |
days
the period (usually days) count how long the percent apply
|
protected java.math.BigDecimal |
percent
the reduction percent allowed in the period
|
| Constructor and Description |
|---|
CashDiscount(java.math.BigDecimal percent,
int days)
Create a cash discount (skonto) with the specified height in the specified period.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAsCII() |
java.lang.String |
getAsXRechnung()
since EN16931 voted not to have (or even allow) cash discounts in their core invoice the german
XRechnung CIUS defined it's own proprietary format for a freetext field
|
protected java.math.BigDecimal percent
protected java.lang.Integer days
public CashDiscount(java.math.BigDecimal percent,
int days)
percent - max 3 decimals "behind the dot", more precision is currently ignoreddays - the count of the periods (usually days) the percentage appliespublic java.lang.String getAsCII()
getAsCII in interface IZUGFeRDCashDiscountpublic java.lang.String getAsXRechnung()
getAsXRechnung in interface IZUGFeRDCashDiscountCopyright © 2024. All rights reserved.