add dummy for occurrence dates

This commit is contained in:
Jochen Stärk
2020-09-08 16:46:21 +02:00
parent e276a447f6
commit bbf8c97501
4 changed files with 54 additions and 3 deletions

View File

@@ -35,6 +35,9 @@ public class Invoice implements IExportableTransaction {
protected ArrayList<IZUGFeRDExportableItem> ZFItems = null;
protected String contractReferencedDocument = null;
protected Date occurrenceDateFrom = null;
protected Date occurrenceDateTo = null;
protected ArrayList<IZUGFeRDAllowanceCharge> Allowances = new ArrayList<IZUGFeRDAllowanceCharge>(),
Charges = new ArrayList<IZUGFeRDAllowanceCharge>(), LogisticsServiceCharges = new ArrayList<IZUGFeRDAllowanceCharge>();
protected IZUGFeRDTradeSettlement[] getTradeSettlement = null;
@@ -433,4 +436,41 @@ public class Invoice implements IExportableTransaction {
contractReferencedDocument=s;
return this;
}
public Invoice setOccurrenceDate(Date occur) {
occurrenceDateFrom=occur;
occurrenceDateTo=null;
return this;
}
public Invoice setOccurrencePeriod(Date start, Date end) {
occurrenceDateFrom=start;
occurrenceDateTo=end;
return this;
}
@Override
public Date getOccurrenceDate() {
return occurrenceDateFrom;
}
@Override
public Date getOccurrencePeriodFrom() {
if (occurrenceDateTo!=null) {
return occurrenceDateFrom;
} else {
return null;
}
}
@Override
public Date getOccurrencePeriodTo() {
if (occurrenceDateTo!=null) {
return occurrenceDateTo;
} else {
return null;
}
}
}

View File

@@ -393,4 +393,15 @@ public interface IExportableTransaction {
default IZUGFeRDExportableContact getDeliveryAddress() {
return null;
}
default Date getOccurrenceDate() {
return null;
}
default Date getOccurrencePeriodFrom() {
return null;
}
default Date getOccurrencePeriodTo() {
return null;
}
}