Add methods to add SpecifiedProcuringProject
This commit is contained in:
@@ -50,6 +50,11 @@ public class Invoice implements IExportableTransaction {
|
|||||||
Charges = new ArrayList<>(), LogisticsServiceCharges = new ArrayList<>();
|
Charges = new ArrayList<>(), LogisticsServiceCharges = new ArrayList<>();
|
||||||
protected IZUGFeRDPaymentTerms paymentTerms = null;
|
protected IZUGFeRDPaymentTerms paymentTerms = null;
|
||||||
private Date invoiceReferencedIssueDate;
|
private Date invoiceReferencedIssueDate;
|
||||||
|
private String specifiedProcuringProjectID = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String specifiedProcuringProjectName = null;
|
||||||
|
|
||||||
public Invoice() {
|
public Invoice() {
|
||||||
ZFItems = new ArrayList<>();
|
ZFItems = new ArrayList<>();
|
||||||
@@ -647,4 +652,23 @@ public class Invoice implements IExportableTransaction {
|
|||||||
return this;
|
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() {
|
default String[] getNotes() {
|
||||||
return null;
|
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"
|
xml = xml + " </ram:ApplicableHeaderTradeAgreement>\n"
|
||||||
+ " <ram:ApplicableHeaderTradeDelivery>\n";
|
+ " <ram:ApplicableHeaderTradeDelivery>\n";
|
||||||
if (this.trans.getDeliveryAddress() != null) {
|
if (this.trans.getDeliveryAddress() != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user