Skip to content

Commit 16ccb73

Browse files
Make VoidedDocuments use reusable supplier.xml (#151)
1 parent 1040a4d commit 16ccb73

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

core/src/main/resources/templates/Renderer/voidedDocuments.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@
1313
<cbc:ReferenceDate>{fechaEmisionComprobantes}</cbc:ReferenceDate>
1414
<cbc:IssueDate>{fechaEmision}</cbc:IssueDate>
1515
{#include ubl/common/signature.xml firmante=this.firmante /}
16-
<cac:AccountingSupplierParty>
17-
<cbc:CustomerAssignedAccountID>{proveedor.ruc}</cbc:CustomerAssignedAccountID>
18-
<cbc:AdditionalAccountID>6</cbc:AdditionalAccountID>
19-
<cac:Party>
20-
<cac:PartyLegalEntity>
21-
<cbc:RegistrationName><![CDATA[{proveedor.razonSocial}]]></cbc:RegistrationName>
22-
</cac:PartyLegalEntity>
23-
</cac:Party>
24-
</cac:AccountingSupplierParty>
16+
{#include ubl/sunat/include/supplier.xml proveedor=this.proveedor /}
2517
{#each comprobantes.orEmpty}
2618
<sac:VoidedDocumentsLine>
2719
<cbc:LineID>{it_index.add(1)}</cbc:LineID>

core/src/main/resources/templates/ubl/sunat/include/supplier.ftl renamed to core/src/main/resources/templates/ubl/sunat/include/supplier.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
<cbc:CustomerAssignedAccountID>{proveedor.ruc}</cbc:CustomerAssignedAccountID>
33
<cbc:AdditionalAccountID>6</cbc:AdditionalAccountID>
44
<cac:Party>
5-
<#if proveedor.nombreComercial??>
6-
<cac:PartyName>
7-
<cbc:Name><![CDATA[{proveedor.nombreComercial}]]></cbc:Name>
8-
</cac:PartyName>
9-
</#if>
10-
<#if proveedor.codigoPostal??>
11-
<cac:PostalAddress>
12-
<cbc:ID>{proveedor.codigoPostal}</cbc:ID>
13-
</cac:PostalAddress>
14-
</#if>
155
<cac:PartyLegalEntity>
166
<cbc:RegistrationName><![CDATA[{proveedor.razonSocial}]]></cbc:RegistrationName>
177
</cac:PartyLegalEntity>

0 commit comments

Comments
 (0)