- allow prepaid amount in invoice class

This commit is contained in:
jstaerk
2023-01-10 19:25:01 +01:00
parent b5ede93bf7
commit 6259ee6f2a
2 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
- allow Bank credentials without BIC
- allow minimum profile without delivery date
- allow prepaid amount in invoice class
2.6.0 "Joyeux Noël"
=======

View File

@@ -52,6 +52,7 @@ public class Invoice implements IExportableTransaction {
protected String contractReferencedDocument = null;
protected ArrayList<FileAttachment> xmlEmbeddedFiles=null;
protected BigDecimal totalPrepaidAmount = null;
protected Date detailedDeliveryDateStart = null;
protected Date detailedDeliveryPeriodEnd = null;
@@ -273,6 +274,22 @@ public class Invoice implements IExportableTransaction {
return buyerOrderReferencedDocumentIssueDateTime;
}
/***
* allow to set a amount which has already been paid
* @param prepaid null is possible to omit
* @return fluent setter
*/
public Invoice setTotalPrepaidAmount(BigDecimal prepaid) {
totalPrepaidAmount=prepaid;
return this;
}
@Override
public BigDecimal getTotalPrepaidAmount() {
return totalPrepaidAmount;
}
/***
* when the order (or whatever reference in BuyerOrderReferencedDocumentID) was issued (@todo switch to date?)
* @param buyerOrderReferencedDocumentIssueDateTime IssueDateTime in format CCYY-MM-DDTHH:MM:SS