Add methods to add SpecifiedProcuringProject
This commit is contained in:
@@ -49,7 +49,12 @@ public class Invoice implements IExportableTransaction {
|
||||
protected ArrayList<IZUGFeRDAllowanceCharge> Allowances = new ArrayList<>(),
|
||||
Charges = new ArrayList<>(), LogisticsServiceCharges = new ArrayList<>();
|
||||
protected IZUGFeRDPaymentTerms paymentTerms = null;
|
||||
private Date invoiceReferencedIssueDate;
|
||||
private Date invoiceReferencedIssueDate;
|
||||
private String specifiedProcuringProjectID = null;
|
||||
|
||||
|
||||
|
||||
private String specifiedProcuringProjectName = null;
|
||||
|
||||
public Invoice() {
|
||||
ZFItems = new ArrayList<>();
|
||||
@@ -647,4 +652,23 @@ public class Invoice implements IExportableTransaction {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSpecifiedProcuringProjectID() {
|
||||
return specifiedProcuringProjectID;
|
||||
}
|
||||
|
||||
public Invoice setSpecifiedProcuringProjectID(String specifiedProcuringProjectID) {
|
||||
this.specifiedProcuringProjectID = specifiedProcuringProjectID;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSpecifiedProcuringProjectName() {
|
||||
return specifiedProcuringProjectName;
|
||||
}
|
||||
|
||||
public Invoice setSpecifiedProcuringProjectName(String specifiedProcuringProjectName) {
|
||||
this.specifiedProcuringProjectName = specifiedProcuringProjectName;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -489,4 +489,12 @@ public interface IExportableTransaction {
|
||||
default String[] getNotes() {
|
||||
return null;
|
||||
}
|
||||
|
||||
default String getSpecifiedProcuringProjectName(){
|
||||
return null;
|
||||
}
|
||||
|
||||
default String getSpecifiedProcuringProjectID(){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -457,6 +457,15 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
||||
}
|
||||
}
|
||||
|
||||
if (trans.getSpecifiedProcuringProjectID() != null) {
|
||||
xml = xml + " <ram:SpecifiedProcuringProject>\n"
|
||||
+ " <ram:ID>"
|
||||
+ XMLTools.encodeXML(trans.getSpecifiedProcuringProjectID()) + "</ram:ID>\n";
|
||||
if(trans.getSpecifiedProcuringProjectName()!= null) {
|
||||
xml += " <ram:Name >" + XMLTools.encodeXML(trans.getSpecifiedProcuringProjectName()) + "</ram:Name>\n";
|
||||
}
|
||||
xml += " </ram:ContractReferencedDocument>\n";
|
||||
}
|
||||
xml = xml + " </ram:ApplicableHeaderTradeAgreement>\n"
|
||||
+ " <ram:ApplicableHeaderTradeDelivery>\n";
|
||||
if (this.trans.getDeliveryAddress() != null) {
|
||||
|
||||
Reference in New Issue
Block a user