Merge remote-tracking branch 'origin/issues/923' into issues/923
# Conflicts: # BT17.xml
This commit is contained in:
205
BT17.xml
205
BT17.xml
@@ -1,205 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<rsm:CrossIndustryInvoice xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100">
|
|
||||||
<!-- generated by: mustangproject.org vnull-->
|
|
||||||
<rsm:ExchangedDocumentContext>
|
|
||||||
|
|
||||||
<ram:GuidelineSpecifiedDocumentContextParameter>
|
|
||||||
<ram:ID>urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended</ram:ID>
|
|
||||||
</ram:GuidelineSpecifiedDocumentContextParameter>
|
|
||||||
</rsm:ExchangedDocumentContext>
|
|
||||||
<rsm:ExchangedDocument>
|
|
||||||
<ram:ID>RE-20170509/505</ram:ID>
|
|
||||||
<ram:Name>RECHNUNG</ram:Name>
|
|
||||||
<ram:TypeCode>380</ram:TypeCode>
|
|
||||||
<ram:IssueDateTime>
|
|
||||||
<udt:DateTimeString format="102">20170509</udt:DateTimeString>
|
|
||||||
</ram:IssueDateTime>
|
|
||||||
</rsm:ExchangedDocument>
|
|
||||||
<rsm:SupplyChainTradeTransaction>
|
|
||||||
<ram:IncludedSupplyChainTradeLineItem>
|
|
||||||
<ram:AssociatedDocumentLineDocument>
|
|
||||||
<ram:LineID>1</ram:LineID>
|
|
||||||
</ram:AssociatedDocumentLineDocument>
|
|
||||||
<ram:SpecifiedTradeProduct>
|
|
||||||
<ram:Name>Künstlerische Gestaltung (Stunde): Einer Beispielrechnung</ram:Name>
|
|
||||||
</ram:SpecifiedTradeProduct>
|
|
||||||
<ram:SpecifiedLineTradeAgreement>
|
|
||||||
<ram:NetPriceProductTradePrice>
|
|
||||||
<ram:ChargeAmount>160.0000</ram:ChargeAmount>
|
|
||||||
<ram:BasisQuantity unitCode="HUR">100.0000</ram:BasisQuantity>
|
|
||||||
</ram:NetPriceProductTradePrice>
|
|
||||||
</ram:SpecifiedLineTradeAgreement>
|
|
||||||
<ram:SpecifiedLineTradeDelivery>
|
|
||||||
<ram:BilledQuantity unitCode="HUR">1.0000</ram:BilledQuantity>
|
|
||||||
</ram:SpecifiedLineTradeDelivery>
|
|
||||||
<ram:SpecifiedLineTradeSettlement>
|
|
||||||
<ram:ApplicableTradeTax>
|
|
||||||
<ram:TypeCode>VAT</ram:TypeCode>
|
|
||||||
<ram:ExemptionReason>Intra-community supply</ram:ExemptionReason>
|
|
||||||
<ram:CategoryCode>K</ram:CategoryCode>
|
|
||||||
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
|
|
||||||
</ram:ApplicableTradeTax>
|
|
||||||
<ram:SpecifiedTradeSettlementLineMonetarySummation>
|
|
||||||
<ram:LineTotalAmount>1.60</ram:LineTotalAmount>
|
|
||||||
</ram:SpecifiedTradeSettlementLineMonetarySummation>
|
|
||||||
<ram:AdditionalReferencedDocument>
|
|
||||||
<ram:IssuerAssignedID>1825</ram:IssuerAssignedID>
|
|
||||||
<ram:TypeCode>130</ram:TypeCode>
|
|
||||||
</ram:AdditionalReferencedDocument>
|
|
||||||
</ram:SpecifiedLineTradeSettlement>
|
|
||||||
</ram:IncludedSupplyChainTradeLineItem>
|
|
||||||
<ram:IncludedSupplyChainTradeLineItem>
|
|
||||||
<ram:AssociatedDocumentLineDocument>
|
|
||||||
<ram:LineID>2</ram:LineID>
|
|
||||||
</ram:AssociatedDocumentLineDocument>
|
|
||||||
<ram:SpecifiedTradeProduct>
|
|
||||||
<ram:Name>Bestellerweiterung für E&F Umbau</ram:Name>
|
|
||||||
</ram:SpecifiedTradeProduct>
|
|
||||||
<ram:SpecifiedLineTradeAgreement>
|
|
||||||
<ram:NetPriceProductTradePrice>
|
|
||||||
<ram:ChargeAmount>0.7900</ram:ChargeAmount>
|
|
||||||
<ram:BasisQuantity unitCode="C62">1.0000</ram:BasisQuantity>
|
|
||||||
</ram:NetPriceProductTradePrice>
|
|
||||||
</ram:SpecifiedLineTradeAgreement>
|
|
||||||
<ram:SpecifiedLineTradeDelivery>
|
|
||||||
<ram:BilledQuantity unitCode="C62">400.0000</ram:BilledQuantity>
|
|
||||||
</ram:SpecifiedLineTradeDelivery>
|
|
||||||
<ram:SpecifiedLineTradeSettlement>
|
|
||||||
<ram:ApplicableTradeTax>
|
|
||||||
<ram:TypeCode>VAT</ram:TypeCode>
|
|
||||||
<ram:ExemptionReason>Intra-community supply</ram:ExemptionReason>
|
|
||||||
<ram:CategoryCode>K</ram:CategoryCode>
|
|
||||||
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
|
|
||||||
</ram:ApplicableTradeTax>
|
|
||||||
<ram:SpecifiedTradeSettlementLineMonetarySummation>
|
|
||||||
<ram:LineTotalAmount>316.00</ram:LineTotalAmount>
|
|
||||||
</ram:SpecifiedTradeSettlementLineMonetarySummation>
|
|
||||||
</ram:SpecifiedLineTradeSettlement>
|
|
||||||
</ram:IncludedSupplyChainTradeLineItem>
|
|
||||||
<ram:IncludedSupplyChainTradeLineItem>
|
|
||||||
<ram:AssociatedDocumentLineDocument>
|
|
||||||
<ram:LineID>3</ram:LineID>
|
|
||||||
</ram:AssociatedDocumentLineDocument>
|
|
||||||
<ram:SpecifiedTradeProduct>
|
|
||||||
<ram:Name>Heiße Luft pro Liter</ram:Name>
|
|
||||||
</ram:SpecifiedTradeProduct>
|
|
||||||
<ram:SpecifiedLineTradeAgreement>
|
|
||||||
<ram:NetPriceProductTradePrice>
|
|
||||||
<ram:ChargeAmount>0.1000</ram:ChargeAmount>
|
|
||||||
<ram:BasisQuantity unitCode="LTR">1.0000</ram:BasisQuantity>
|
|
||||||
</ram:NetPriceProductTradePrice>
|
|
||||||
</ram:SpecifiedLineTradeAgreement>
|
|
||||||
<ram:SpecifiedLineTradeDelivery>
|
|
||||||
<ram:BilledQuantity unitCode="LTR">200.0000</ram:BilledQuantity>
|
|
||||||
</ram:SpecifiedLineTradeDelivery>
|
|
||||||
<ram:SpecifiedLineTradeSettlement>
|
|
||||||
<ram:ApplicableTradeTax>
|
|
||||||
<ram:TypeCode>VAT</ram:TypeCode>
|
|
||||||
<ram:ExemptionReason>Intra-community supply</ram:ExemptionReason>
|
|
||||||
<ram:CategoryCode>K</ram:CategoryCode>
|
|
||||||
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
|
|
||||||
</ram:ApplicableTradeTax>
|
|
||||||
<ram:SpecifiedTradeSettlementLineMonetarySummation>
|
|
||||||
<ram:LineTotalAmount>20.00</ram:LineTotalAmount>
|
|
||||||
</ram:SpecifiedTradeSettlementLineMonetarySummation>
|
|
||||||
</ram:SpecifiedLineTradeSettlement>
|
|
||||||
</ram:IncludedSupplyChainTradeLineItem>
|
|
||||||
<ram:ApplicableHeaderTradeAgreement>
|
|
||||||
<ram:BuyerReference>AB321</ram:BuyerReference>
|
|
||||||
<ram:SellerTradeParty>
|
|
||||||
<ram:Name>Bei Spiel GmbH</ram:Name>
|
|
||||||
<ram:PostalTradeAddress>
|
|
||||||
<ram:PostcodeCode>12345</ram:PostcodeCode>
|
|
||||||
<ram:LineOne>Ecke 12</ram:LineOne>
|
|
||||||
<ram:CityName>Stadthausen</ram:CityName>
|
|
||||||
<ram:CountryID>DE</ram:CountryID>
|
|
||||||
</ram:PostalTradeAddress>
|
|
||||||
<ram:SpecifiedTaxRegistration>
|
|
||||||
<ram:ID schemeID="VA">DE0815</ram:ID>
|
|
||||||
</ram:SpecifiedTaxRegistration>
|
|
||||||
<ram:SpecifiedTaxRegistration>
|
|
||||||
<ram:ID schemeID="FC">0815</ram:ID>
|
|
||||||
</ram:SpecifiedTaxRegistration>
|
|
||||||
</ram:SellerTradeParty>
|
|
||||||
<ram:BuyerTradeParty>
|
|
||||||
<ram:Name>Theodor Est</ram:Name>
|
|
||||||
<ram:PostalTradeAddress>
|
|
||||||
<ram:PostcodeCode>88802</ram:PostcodeCode>
|
|
||||||
<ram:LineOne>Bahnstr. 42</ram:LineOne>
|
|
||||||
<ram:LineTwo>Hinterhaus</ram:LineTwo>
|
|
||||||
<ram:LineThree>Zweiter Stock</ram:LineThree>
|
|
||||||
<ram:CityName>Spielkreis</ram:CityName>
|
|
||||||
<ram:CountryID>DE</ram:CountryID>
|
|
||||||
</ram:PostalTradeAddress>
|
|
||||||
<ram:SpecifiedTaxRegistration>
|
|
||||||
<ram:ID schemeID="VA">DE999999999</ram:ID>
|
|
||||||
</ram:SpecifiedTaxRegistration>
|
|
||||||
</ram:BuyerTradeParty>
|
|
||||||
<ram:AdditionalReferencedDocument>
|
|
||||||
<ram:IssuerAssignedID>Testing1</ram:IssuerAssignedID>
|
|
||||||
<ram:TypeCode>50</ram:TypeCode>
|
|
||||||
</ram:AdditionalReferencedDocument>
|
|
||||||
</ram:ApplicableHeaderTradeAgreement>
|
|
||||||
<ram:ApplicableHeaderTradeDelivery>
|
|
||||||
<ram:ShipToTradeParty>
|
|
||||||
<ram:Name>Theodor Est</ram:Name>
|
|
||||||
<ram:PostalTradeAddress>
|
|
||||||
<ram:PostcodeCode>88802</ram:PostcodeCode>
|
|
||||||
<ram:LineOne>Bahnstr. 42</ram:LineOne>
|
|
||||||
<ram:LineTwo>Hinterhaus</ram:LineTwo>
|
|
||||||
<ram:LineThree>Zweiter Stock</ram:LineThree>
|
|
||||||
<ram:CityName>Spielkreis</ram:CityName>
|
|
||||||
<ram:CountryID>DE</ram:CountryID>
|
|
||||||
</ram:PostalTradeAddress>
|
|
||||||
</ram:ShipToTradeParty>
|
|
||||||
<ram:ActualDeliverySupplyChainEvent>
|
|
||||||
<ram:OccurrenceDateTime>
|
|
||||||
<udt:DateTimeString format="102">20170507</udt:DateTimeString>
|
|
||||||
</ram:OccurrenceDateTime>
|
|
||||||
</ram:ActualDeliverySupplyChainEvent>
|
|
||||||
<ram:DespatchAdviceReferencedDocument>
|
|
||||||
<ram:IssuerAssignedID>123</ram:IssuerAssignedID>
|
|
||||||
</ram:DespatchAdviceReferencedDocument>
|
|
||||||
</ram:ApplicableHeaderTradeDelivery>
|
|
||||||
<ram:ApplicableHeaderTradeSettlement>
|
|
||||||
<ram:InvoiceCurrencyCode>USD</ram:InvoiceCurrencyCode>
|
|
||||||
<ram:SpecifiedTradeSettlementPaymentMeans>
|
|
||||||
<ram:TypeCode>54</ram:TypeCode>
|
|
||||||
<ram:Information>Credit Card</ram:Information>
|
|
||||||
<ram:PayerPartyDebtorFinancialAccount>
|
|
||||||
<ram:IBANID>DE540815</ram:IBANID>
|
|
||||||
</ram:PayerPartyDebtorFinancialAccount>
|
|
||||||
</ram:SpecifiedTradeSettlementPaymentMeans>
|
|
||||||
<ram:ApplicableTradeTax>
|
|
||||||
<ram:CalculatedAmount>0.00</ram:CalculatedAmount>
|
|
||||||
<ram:TypeCode>VAT</ram:TypeCode>
|
|
||||||
<ram:ExemptionReason>Intra-community supply</ram:ExemptionReason>
|
|
||||||
<ram:BasisAmount>337.60</ram:BasisAmount>
|
|
||||||
<ram:CategoryCode>K</ram:CategoryCode>
|
|
||||||
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
|
|
||||||
</ram:ApplicableTradeTax>
|
|
||||||
<ram:SpecifiedTradePaymentTerms>
|
|
||||||
<ram:Description>14 Tage 2% Skonto, 30 Tage rein netto</ram:Description>
|
|
||||||
<ram:DueDateDateTime>
|
|
||||||
<udt:DateTimeString format="102">20220228</udt:DateTimeString>
|
|
||||||
</ram:DueDateDateTime>
|
|
||||||
<ram:DirectDebitMandateID>DE99XX12345</ram:DirectDebitMandateID>
|
|
||||||
<ram:ApplicableTradePaymentDiscountTerms>
|
|
||||||
<ram:BasisAmount currencyID="USD">337.60</ram:BasisAmount>
|
|
||||||
<ram:CalculationPercent>2</ram:CalculationPercent>
|
|
||||||
</ram:ApplicableTradePaymentDiscountTerms>
|
|
||||||
</ram:SpecifiedTradePaymentTerms>
|
|
||||||
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
|
|
||||||
<ram:LineTotalAmount>337.60</ram:LineTotalAmount>
|
|
||||||
<ram:ChargeTotalAmount>0.00</ram:ChargeTotalAmount>
|
|
||||||
<ram:AllowanceTotalAmount>0.00</ram:AllowanceTotalAmount>
|
|
||||||
<ram:TaxBasisTotalAmount>337.60</ram:TaxBasisTotalAmount>
|
|
||||||
<ram:TaxTotalAmount currencyID="USD">0.00</ram:TaxTotalAmount>
|
|
||||||
<ram:GrandTotalAmount>337.60</ram:GrandTotalAmount>
|
|
||||||
<ram:TotalPrepaidAmount>0.00</ram:TotalPrepaidAmount>
|
|
||||||
<ram:DuePayableAmount>337.60</ram:DuePayableAmount>
|
|
||||||
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
|
|
||||||
</ram:ApplicableHeaderTradeSettlement>
|
|
||||||
</rsm:SupplyChainTradeTransaction>
|
|
||||||
</rsm:CrossIndustryInvoice>
|
|
||||||
46
library/src/main/java/org/mustangproject/DatedReference.java
Normal file
46
library/src/main/java/org/mustangproject/DatedReference.java
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
package org.mustangproject;
|
||||||
|
|
||||||
|
import org.mustangproject.ZUGFeRD.IDatedReference;
|
||||||
|
|
||||||
|
import java.beans.BeanProperty;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class DatedReference implements IDatedReference {
|
||||||
|
|
||||||
|
protected String ID;
|
||||||
|
protected Date opDate;
|
||||||
|
|
||||||
|
public DatedReference setDate(Date opDate) {
|
||||||
|
this.opDate = opDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DatedReference setID(String ID) {
|
||||||
|
this.ID = ID;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DatedReference() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public DatedReference(String ID) {
|
||||||
|
setID(ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public DatedReference(String ID, Date theDate) {
|
||||||
|
setID(ID);
|
||||||
|
setDate(theDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getID() {
|
||||||
|
return ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Date getDate() {
|
||||||
|
return opDate;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -54,6 +54,7 @@ public class Invoice implements IExportableTransaction {
|
|||||||
protected BigDecimal totalPrepaidAmount = null;
|
protected BigDecimal totalPrepaidAmount = null;
|
||||||
protected Date detailedDeliveryDateStart = null;
|
protected Date detailedDeliveryDateStart = null;
|
||||||
protected Date detailedDeliveryPeriodEnd = null;
|
protected Date detailedDeliveryPeriodEnd = null;
|
||||||
|
protected IDatedReference tenderReference = null;
|
||||||
|
|
||||||
protected ArrayList<IZUGFeRDAllowanceCharge> Allowances = new ArrayList<>(),
|
protected ArrayList<IZUGFeRDAllowanceCharge> Allowances = new ArrayList<>(),
|
||||||
Charges = new ArrayList<>(), LogisticsServiceCharges = new ArrayList<>();
|
Charges = new ArrayList<>(), LogisticsServiceCharges = new ArrayList<>();
|
||||||
@@ -144,6 +145,34 @@ public class Invoice implements IExportableTransaction {
|
|||||||
return number;
|
return number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
/***
|
||||||
|
* BT-17
|
||||||
|
*/
|
||||||
|
public IDatedReference getTenderReferencedDocument() {
|
||||||
|
return tenderReference;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***
|
||||||
|
* BT-17
|
||||||
|
* @param dr
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Invoice setTenderReferencedDocument(DatedReference dr) {
|
||||||
|
tenderReference=dr;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Invoice setTenderReferencedDocument(String ID) {
|
||||||
|
DatedReference dr=new DatedReference(ID);
|
||||||
|
setTenderReferencedDocument(dr);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public Invoice setNumber(String number) {
|
public Invoice setNumber(String number) {
|
||||||
this.number = number;
|
this.number = number;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ public interface IExportableTransaction {
|
|||||||
*
|
*
|
||||||
* @return mandatory ID, optional Date
|
* @return mandatory ID, optional Date
|
||||||
*/
|
*/
|
||||||
default IDatedReference getTenderReference() {
|
default IDatedReference getTenderReferencedDocument() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -145,11 +145,11 @@ public class ZF2EdgeTest extends MustangReaderTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IDatedReference getTenderReference() {
|
public IDatedReference getTenderReferencedDocument() {
|
||||||
return new IDatedReference() {
|
return new IDatedReference() {
|
||||||
@Override
|
@Override
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return "983-jk-787 (obsolete)";
|
return "983-jk-787";
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Date getDate() {
|
public Date getDate() {
|
||||||
@@ -159,6 +159,7 @@ public class ZF2EdgeTest extends MustangReaderTestCase {
|
|||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
// wont happen, I promise :-)
|
// wont happen, I promise :-)
|
||||||
}
|
}
|
||||||
|
return null; // wont happen either
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -596,6 +596,7 @@ public class ZF2PushTest extends TestCase {
|
|||||||
try {
|
try {
|
||||||
SchemedID gtin = new SchemedID("0160", "2001015001325");
|
SchemedID gtin = new SchemedID("0160", "2001015001325");
|
||||||
SchemedID gln = new SchemedID("0088", "4304171000002");
|
SchemedID gln = new SchemedID("0088", "4304171000002");
|
||||||
|
DatedReference dr=new DatedReference("90-kl-98798-C", sdf.parse("2025-10-12"));
|
||||||
ze.setTransaction(new Invoice().setCurrency("CHF").addNote("document level 1/2").addNote("document level 2/2").setDueDate(new Date()).setIssueDate(new Date()).setDeliveryDate(new Date()).setPaymentReference("Verwendungszweck").setDocumentName("Rechnung")
|
ze.setTransaction(new Invoice().setCurrency("CHF").addNote("document level 1/2").addNote("document level 2/2").setDueDate(new Date()).setIssueDate(new Date()).setDeliveryDate(new Date()).setPaymentReference("Verwendungszweck").setDocumentName("Rechnung")
|
||||||
.setSellerOrderReferencedDocumentID("9384").setBuyerOrderReferencedDocumentID("28934")
|
.setSellerOrderReferencedDocumentID("9384").setBuyerOrderReferencedDocumentID("28934")
|
||||||
.setDetailedDeliveryPeriod(new SimpleDateFormat("yyyyMMdd").parse(occurrenceFrom), new SimpleDateFormat("yyyyMMdd").parse(occurrenceTo))
|
.setDetailedDeliveryPeriod(new SimpleDateFormat("yyyyMMdd").parse(occurrenceFrom), new SimpleDateFormat("yyyyMMdd").parse(occurrenceTo))
|
||||||
@@ -608,6 +609,7 @@ public class ZF2PushTest extends TestCase {
|
|||||||
.addCharge(new Charge(new BigDecimal(0.5)).setReason("quick delivery charge").setTaxPercent(new BigDecimal(16)))
|
.addCharge(new Charge(new BigDecimal(0.5)).setReason("quick delivery charge").setTaxPercent(new BigDecimal(16)))
|
||||||
.addAllowance(new Allowance(new BigDecimal(0.2)).setReason("discount").setTaxPercent(new BigDecimal(16)))
|
.addAllowance(new Allowance(new BigDecimal(0.2)).setReason("discount").setTaxPercent(new BigDecimal(16)))
|
||||||
.addCashDiscount(new CashDiscount(new BigDecimal(2), 14))
|
.addCashDiscount(new CashDiscount(new BigDecimal(2), 14))
|
||||||
|
.setTenderReferencedDocument(dr)
|
||||||
.setDeliveryDate(sdf.parse("2020-11-02")).setNumber(number).setVATDueDateTypeCode(EventTimeCodeTypeConstants.PAYMENT_DATE)
|
.setDeliveryDate(sdf.parse("2020-11-02")).setNumber(number).setVATDueDateTypeCode(EventTimeCodeTypeConstants.PAYMENT_DATE)
|
||||||
.setInvoiceReferencedDocumentID("abc123").addInvoiceReferencedDocument(new ReferencedDocument("abcd1234"))
|
.setInvoiceReferencedDocumentID("abc123").addInvoiceReferencedDocument(new ReferencedDocument("abcd1234"))
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -178,9 +178,12 @@ public class ZF2ZInvoiceImporterTest extends ResourceCase {
|
|||||||
hasExceptions = true;
|
hasExceptions = true;
|
||||||
}
|
}
|
||||||
assertFalse(hasExceptions);
|
assertFalse(hasExceptions);
|
||||||
|
SimpleDateFormat sdf=new SimpleDateFormat("YYYY-mm-dd");
|
||||||
// Reading ZUGFeRD
|
// Reading ZUGFeRD
|
||||||
assertEquals("4711", invoice.getZFItems()[0].getProduct().getSellerAssignedID());
|
assertEquals("4711", invoice.getZFItems()[0].getProduct().getSellerAssignedID());
|
||||||
assertEquals("9384", invoice.getSellerOrderReferencedDocumentID());
|
assertEquals("9384", invoice.getSellerOrderReferencedDocumentID());
|
||||||
|
assertEquals("90-kl-98798-C", invoice.getTenderReferencedDocument().getID());
|
||||||
|
assertEquals("2025-10-12", sdf.format(invoice.getTenderReferencedDocument().getDate()));
|
||||||
assertEquals("sender@test.org", invoice.getSender().getEmail());
|
assertEquals("sender@test.org", invoice.getSender().getEmail());
|
||||||
assertEquals("recipient@test.org", invoice.getRecipient().getEmail());
|
assertEquals("recipient@test.org", invoice.getRecipient().getEmail());
|
||||||
assertEquals("28934", invoice.getBuyerOrderReferencedDocumentID());
|
assertEquals("28934", invoice.getBuyerOrderReferencedDocumentID());
|
||||||
|
|||||||
Reference in New Issue
Block a user