Fix item missing Tax code and category code
This commit is contained in:
@@ -326,6 +326,10 @@ public class ZUGFeRDExporter {
|
|||||||
documentCodeType.setValue(DocumentCodeType.INVOICE);
|
documentCodeType.setValue(DocumentCodeType.INVOICE);
|
||||||
document.setTypeCode(documentCodeType);
|
document.setTypeCode(documentCodeType);
|
||||||
|
|
||||||
|
TextType name = xmlFactory.createTextType();
|
||||||
|
name.setValue("RECHNUNG");
|
||||||
|
document.getName().add(name);
|
||||||
|
|
||||||
if (trans.getOwnOrganisationFullPlaintextInfo() != null) {
|
if (trans.getOwnOrganisationFullPlaintextInfo() != null) {
|
||||||
NoteType regularInfo = xmlFactory.createNoteType();
|
NoteType regularInfo = xmlFactory.createNoteType();
|
||||||
CodeType regularInfoSubjectCode = xmlFactory.createCodeType();
|
CodeType regularInfoSubjectCode = xmlFactory.createCodeType();
|
||||||
@@ -653,6 +657,15 @@ public class ZUGFeRDExporter {
|
|||||||
|
|
||||||
SupplyChainTradeSettlementType tradeSettlement = xmlFactory.createSupplyChainTradeSettlementType();
|
SupplyChainTradeSettlementType tradeSettlement = xmlFactory.createSupplyChainTradeSettlementType();
|
||||||
TradeTaxType tradeTax = xmlFactory.createTradeTaxType();
|
TradeTaxType tradeTax = xmlFactory.createTradeTaxType();
|
||||||
|
|
||||||
|
TaxCategoryCodeType taxCategoryCode = xmlFactory.createTaxCategoryCodeType();
|
||||||
|
taxCategoryCode.setValue(TaxCategoryCodeType.STANDARDRATE);
|
||||||
|
tradeTax.setCategoryCode(taxCategoryCode);
|
||||||
|
|
||||||
|
TaxTypeCodeType taxCode = xmlFactory.createTaxTypeCodeType();
|
||||||
|
taxCode.setValue(TaxTypeCodeType.SALESTAX);
|
||||||
|
tradeTax.setTypeCode(taxCode);
|
||||||
|
|
||||||
PercentType taxPercent = xmlFactory.createPercentType();
|
PercentType taxPercent = xmlFactory.createPercentType();
|
||||||
taxPercent.setValue(vatFormat(currentItem.getProduct().getVATPercent()));
|
taxPercent.setValue(vatFormat(currentItem.getProduct().getVATPercent()));
|
||||||
tradeTax.setApplicablePercent(taxPercent);
|
tradeTax.setApplicablePercent(taxPercent);
|
||||||
|
|||||||
Reference in New Issue
Block a user