improve cashdiscount
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
- #689
|
- #689
|
||||||
- be able to set detailedDeliveryPeriodFrom, detailedDeliveryPeriodTo MS188
|
- be able to set detailedDeliveryPeriodFrom, detailedDeliveryPeriodTo MS188
|
||||||
- updated verapdf from 1.26.1 to 1.26.2
|
- updated verapdf from 1.26.1 to 1.26.2
|
||||||
|
- cashDiscount JSON now corrently ignores values for cii and xr methods
|
||||||
|
|
||||||
2.16.0
|
2.16.0
|
||||||
=======
|
=======
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.mustangproject;
|
package org.mustangproject;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import org.mustangproject.ZUGFeRD.IZUGFeRDCashDiscount;
|
import org.mustangproject.ZUGFeRD.IZUGFeRDCashDiscount;
|
||||||
@@ -63,6 +64,7 @@ public class CashDiscount implements IZUGFeRDCashDiscount {
|
|||||||
/***
|
/***
|
||||||
* @return this particular cash discount as cross industry invoice XML
|
* @return this particular cash discount as cross industry invoice XML
|
||||||
*/
|
*/
|
||||||
|
@JsonIgnore
|
||||||
public String getAsCII() {
|
public String getAsCII() {
|
||||||
return "<ram:SpecifiedTradePaymentTerms>"+
|
return "<ram:SpecifiedTradePaymentTerms>"+
|
||||||
"<ram:Description>Cash Discount</ram:Description>"+
|
"<ram:Description>Cash Discount</ram:Description>"+
|
||||||
@@ -78,6 +80,7 @@ public class CashDiscount implements IZUGFeRDCashDiscount {
|
|||||||
* XRechnung CIUS defined it's own proprietary format for a freetext field
|
* XRechnung CIUS defined it's own proprietary format for a freetext field
|
||||||
* @return this particular cash discount in proprietary xrechnung format
|
* @return this particular cash discount in proprietary xrechnung format
|
||||||
*/
|
*/
|
||||||
|
@JsonIgnore
|
||||||
public String getAsXRechnung() {
|
public String getAsXRechnung() {
|
||||||
return "#SKONTO#TAGE="+days+"#PROZENT="+XMLTools.nDigitFormat(percent,2)+"#\n";
|
return "#SKONTO#TAGE="+days+"#PROZENT="+XMLTools.nDigitFormat(percent,2)+"#\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user