From 815fbfb659c50eb64a68b9904509f2fe2bc730c1 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Thu, 2 Feb 2023 22:42:37 +0100 Subject: [PATCH] Homologacion add tests --- .../java/e2e/homologacion/Group5Test.java | 181 ++++++++++ .../java/e2e/homologacion/Group7Test.java | 182 ++++++++++ .../Group5Test/factura1Con5Items.xml | 336 +++++++++++++++++ .../Group5Test/notaDeCreditoDeFactura1.xml | 340 ++++++++++++++++++ .../Group5Test/notaDeDebitoDeFactura2.xml | 340 ++++++++++++++++++ .../Group7Test/factura1Con5Items.xml | 336 +++++++++++++++++ .../Group7Test/notaDeCreditoDeFactura1.xml | 340 ++++++++++++++++++ .../Group7Test/notaDeDebitoDeFactura2.xml | 340 ++++++++++++++++++ 8 files changed, 2395 insertions(+) create mode 100644 core/src/test/java/e2e/homologacion/Group5Test.java create mode 100644 core/src/test/java/e2e/homologacion/Group7Test.java create mode 100644 core/src/test/resources/e2e/homologacion/Group5Test/factura1Con5Items.xml create mode 100644 core/src/test/resources/e2e/homologacion/Group5Test/notaDeCreditoDeFactura1.xml create mode 100644 core/src/test/resources/e2e/homologacion/Group5Test/notaDeDebitoDeFactura2.xml create mode 100644 core/src/test/resources/e2e/homologacion/Group7Test/factura1Con5Items.xml create mode 100644 core/src/test/resources/e2e/homologacion/Group7Test/notaDeCreditoDeFactura1.xml create mode 100644 core/src/test/resources/e2e/homologacion/Group7Test/notaDeDebitoDeFactura2.xml diff --git a/core/src/test/java/e2e/homologacion/Group5Test.java b/core/src/test/java/e2e/homologacion/Group5Test.java new file mode 100644 index 00000000..a9cf1734 --- /dev/null +++ b/core/src/test/java/e2e/homologacion/Group5Test.java @@ -0,0 +1,181 @@ +/* + * Copyright 2019 Project OpenUBL, Inc. and/or its affiliates + * and other contributors as indicated by the @author tags. + * + * Licensed under the Apache License - 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package e2e.homologacion; + +import e2e.AbstractTest; +import io.github.project.openubl.xbuilder.content.models.standard.general.CreditNote; +import io.github.project.openubl.xbuilder.content.models.standard.general.DebitNote; +import io.github.project.openubl.xbuilder.content.models.standard.general.DocumentoVentaDetalle; +import io.github.project.openubl.xbuilder.content.models.standard.general.Invoice; +import org.junit.jupiter.api.Order; +import org.junit.jupiter.api.Test; + +import java.math.BigDecimal; + +public class Group5Test extends AbstractTest { + + @Order(1) + @Test + public void factura1Con5Items() throws Exception { + Invoice input = Invoice.builder() + .serie("FF30") + .numero(1) + .proveedor(HomologacionConstants.proveedor) + .cliente(HomologacionConstants.cliente) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item1") + .cantidad(new BigDecimal("1")) + .precio(new BigDecimal("100")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item2") + .cantidad(new BigDecimal("2")) + .precio(new BigDecimal("200")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item3") + .cantidad(new BigDecimal("3")) + .precio(new BigDecimal("300")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item4") + .cantidad(new BigDecimal("4")) + .precio(new BigDecimal("400")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item5") + .cantidad(new BigDecimal("5")) + .precio(new BigDecimal("500")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .build(); + + assertInput(input, "factura1Con5Items.xml"); + } + + // + + @Order(2) + @Test + public void notaDeCreditoDeFactura1() throws Exception { + CreditNote input = CreditNote.builder() + .serie("FF30") + .numero(1) + .comprobanteAfectadoSerieNumero("FF30-1") + .sustentoDescripcion("Homologacion") + .proveedor(HomologacionConstants.proveedor) + .cliente(HomologacionConstants.cliente) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item1") + .cantidad(new BigDecimal("1")) + .precio(new BigDecimal("100")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item2") + .cantidad(new BigDecimal("2")) + .precio(new BigDecimal("200")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item3") + .cantidad(new BigDecimal("3")) + .precio(new BigDecimal("300")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item4") + .cantidad(new BigDecimal("4")) + .precio(new BigDecimal("400")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item5") + .cantidad(new BigDecimal("5")) + .precio(new BigDecimal("500")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .build(); + + assertInput(input, "notaDeCreditoDeFactura1.xml"); + } + + @Order(3) + @Test + public void notaDeDebitoDeFactura1() throws Exception { + DebitNote input = DebitNote.builder() + .serie("FF30") + .numero(1) + .comprobanteAfectadoSerieNumero("FF30-1") + .sustentoDescripcion("Homologacion") + .proveedor(HomologacionConstants.proveedor) + .cliente(HomologacionConstants.cliente) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item1") + .cantidad(new BigDecimal("1")) + .precio(new BigDecimal("100")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item2") + .cantidad(new BigDecimal("2")) + .precio(new BigDecimal("200")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item3") + .cantidad(new BigDecimal("3")) + .precio(new BigDecimal("300")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item4") + .cantidad(new BigDecimal("4")) + .precio(new BigDecimal("400")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item5") + .cantidad(new BigDecimal("5")) + .precio(new BigDecimal("500")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .build(); + + assertInput(input, "notaDeDebitoDeFactura2.xml"); + } + +} diff --git a/core/src/test/java/e2e/homologacion/Group7Test.java b/core/src/test/java/e2e/homologacion/Group7Test.java new file mode 100644 index 00000000..285e4a7e --- /dev/null +++ b/core/src/test/java/e2e/homologacion/Group7Test.java @@ -0,0 +1,182 @@ +/* + * Copyright 2019 Project OpenUBL, Inc. and/or its affiliates + * and other contributors as indicated by the @author tags. + * + * Licensed under the Apache License - 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package e2e.homologacion; + +import e2e.AbstractTest; +import io.github.project.openubl.xbuilder.content.models.standard.general.CreditNote; +import io.github.project.openubl.xbuilder.content.models.standard.general.DebitNote; +import io.github.project.openubl.xbuilder.content.models.standard.general.DocumentoVentaDetalle; +import io.github.project.openubl.xbuilder.content.models.standard.general.Invoice; +import org.junit.jupiter.api.Order; +import org.junit.jupiter.api.Test; + +import java.math.BigDecimal; + +public class Group7Test extends AbstractTest { + + @Order(1) + @Test + public void factura1Con5Items() throws Exception { + Invoice input = Invoice.builder() + .serie("FF50") + .numero(1) + .moneda("USD") + .proveedor(HomologacionConstants.proveedor) + .cliente(HomologacionConstants.cliente) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item1") + .cantidad(new BigDecimal("1")) + .precio(new BigDecimal("100")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item2") + .cantidad(new BigDecimal("2")) + .precio(new BigDecimal("200")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item3") + .cantidad(new BigDecimal("3")) + .precio(new BigDecimal("300")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item4") + .cantidad(new BigDecimal("4")) + .precio(new BigDecimal("400")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item5") + .cantidad(new BigDecimal("5")) + .precio(new BigDecimal("500")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .build(); + + assertInput(input, "factura1Con5Items.xml"); + } + + @Order(2) + @Test + public void notaDeCreditoDeFactura1() throws Exception { + CreditNote input = CreditNote.builder() + .serie("FF50") + .numero(1) + .moneda("USD") + .comprobanteAfectadoSerieNumero("FF50-1") + .sustentoDescripcion("Homologacion") + .proveedor(HomologacionConstants.proveedor) + .cliente(HomologacionConstants.cliente) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item1") + .cantidad(new BigDecimal("1")) + .precio(new BigDecimal("100")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item2") + .cantidad(new BigDecimal("2")) + .precio(new BigDecimal("200")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item3") + .cantidad(new BigDecimal("3")) + .precio(new BigDecimal("300")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item4") + .cantidad(new BigDecimal("4")) + .precio(new BigDecimal("400")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item5") + .cantidad(new BigDecimal("5")) + .precio(new BigDecimal("500")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .build(); + + assertInput(input, "notaDeCreditoDeFactura1.xml"); + } + + @Order(3) + @Test + public void notaDeDebitoDeFactura1() throws Exception { + DebitNote input = DebitNote.builder() + .serie("FF50") + .numero(1) + .moneda("USD") + .comprobanteAfectadoSerieNumero("FF50-1") + .sustentoDescripcion("Homologacion") + .proveedor(HomologacionConstants.proveedor) + .cliente(HomologacionConstants.cliente) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item1") + .cantidad(new BigDecimal("1")) + .precio(new BigDecimal("100")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item2") + .cantidad(new BigDecimal("2")) + .precio(new BigDecimal("200")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item3") + .cantidad(new BigDecimal("3")) + .precio(new BigDecimal("300")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item4") + .cantidad(new BigDecimal("4")) + .precio(new BigDecimal("400")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .detalle(DocumentoVentaDetalle.builder() + .descripcion("Item5") + .cantidad(new BigDecimal("5")) + .precio(new BigDecimal("500")) + .tasaIsc(new BigDecimal("0.1")) + .build() + ) + .build(); + + assertInput(input, "notaDeDebitoDeFactura2.xml"); + } + +} diff --git a/core/src/test/resources/e2e/homologacion/Group5Test/factura1Con5Items.xml b/core/src/test/resources/e2e/homologacion/Group5Test/factura1Con5Items.xml new file mode 100644 index 00000000..29e5d833 --- /dev/null +++ b/core/src/test/resources/e2e/homologacion/Group5Test/factura1Con5Items.xml @@ -0,0 +1,336 @@ + + + + + + + + 2.1 + 2.0 + FF30-1 + 2019-12-24 + 01 + PEN + + 12345678912 + + + 12345678912 + + + + + + + + #PROJECT-OPENUBL-SIGN + + + + + + + 12345678912 + + + + + 0000 + + + + + + + + 12121212121 + + + + + + + + FormaPago + Contado + + + 1639.00 + + 5500.00 + 550.00 + + + 2000 + ISC + EXC + + + + + 5500.00 + 1089.00 + + S + + 1000 + IGV + VAT + + + + + + 5500.00 + 7139.00 + 0 + 0 + 7139.00 + + + 1 + 1 + 100.00 + + + 129.80 + 01 + + + + 29.80 + + 100.00 + 10.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 110.00 + 19.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 100.00 + + + + 2 + 2 + 400.00 + + + 259.60 + 01 + + + + 119.20 + + 400.00 + 40.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 440.00 + 79.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 200.00 + + + + 3 + 3 + 900.00 + + + 389.40 + 01 + + + + 268.20 + + 900.00 + 90.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 990.00 + 178.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 300.00 + + + + 4 + 4 + 1600.00 + + + 519.20 + 01 + + + + 476.80 + + 1600.00 + 160.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 1760.00 + 316.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 400.00 + + + + 5 + 5 + 2500.00 + + + 649.00 + 01 + + + + 745.00 + + 2500.00 + 250.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 2750.00 + 495.00 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 500.00 + + + diff --git a/core/src/test/resources/e2e/homologacion/Group5Test/notaDeCreditoDeFactura1.xml b/core/src/test/resources/e2e/homologacion/Group5Test/notaDeCreditoDeFactura1.xml new file mode 100644 index 00000000..e62b80f6 --- /dev/null +++ b/core/src/test/resources/e2e/homologacion/Group5Test/notaDeCreditoDeFactura1.xml @@ -0,0 +1,340 @@ + + + + + + + + 2.1 + 2.0 + FF30-1 + 2019-12-24 + PEN + + FF30-1 + 01 + + + + + FF30-1 + 01 + + + + 12345678912 + + + 12345678912 + + + + + + + + #PROJECT-OPENUBL-SIGN + + + + + + + 12345678912 + + + + + 0000 + + + + + + + + 12121212121 + + + + + + + + 1639.00 + + 5500.00 + 550.00 + + + 2000 + ISC + EXC + + + + + 5500.00 + 1089.00 + + S + + 1000 + IGV + VAT + + + + + + 5500.00 + 7139.00 + 7139.00 + + + 1 + 1 + 100.00 + + + 129.80 + 01 + + + + 29.80 + + 100.00 + 10.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 110.00 + 19.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 100.00 + + + + 2 + 2 + 400.00 + + + 259.60 + 01 + + + + 119.20 + + 400.00 + 40.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 440.00 + 79.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 200.00 + + + + 3 + 3 + 900.00 + + + 389.40 + 01 + + + + 268.20 + + 900.00 + 90.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 990.00 + 178.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 300.00 + + + + 4 + 4 + 1600.00 + + + 519.20 + 01 + + + + 476.80 + + 1600.00 + 160.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 1760.00 + 316.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 400.00 + + + + 5 + 5 + 2500.00 + + + 649.00 + 01 + + + + 745.00 + + 2500.00 + 250.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 2750.00 + 495.00 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 500.00 + + + diff --git a/core/src/test/resources/e2e/homologacion/Group5Test/notaDeDebitoDeFactura2.xml b/core/src/test/resources/e2e/homologacion/Group5Test/notaDeDebitoDeFactura2.xml new file mode 100644 index 00000000..413fca96 --- /dev/null +++ b/core/src/test/resources/e2e/homologacion/Group5Test/notaDeDebitoDeFactura2.xml @@ -0,0 +1,340 @@ + + + + + + + + 2.1 + 2.0 + FF30-1 + 2019-12-24 + PEN + + FF30-1 + 01 + + + + + FF30-1 + 01 + + + + 12345678912 + + + 12345678912 + + + + + + + + #PROJECT-OPENUBL-SIGN + + + + + + + 12345678912 + + + + + 0000 + + + + + + + + 12121212121 + + + + + + + + 1639.00 + + 5500.00 + 550.00 + + + 2000 + ISC + EXC + + + + + 5500.00 + 1089.00 + + S + + 1000 + IGV + VAT + + + + + + 5500.00 + 7139.00 + 7139.00 + + + 1 + 1 + 100.00 + + + 129.80 + 01 + + + + 29.80 + + 100.00 + 10.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 110.00 + 19.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 100.00 + + + + 2 + 2 + 400.00 + + + 259.60 + 01 + + + + 119.20 + + 400.00 + 40.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 440.00 + 79.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 200.00 + + + + 3 + 3 + 900.00 + + + 389.40 + 01 + + + + 268.20 + + 900.00 + 90.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 990.00 + 178.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 300.00 + + + + 4 + 4 + 1600.00 + + + 519.20 + 01 + + + + 476.80 + + 1600.00 + 160.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 1760.00 + 316.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 400.00 + + + + 5 + 5 + 2500.00 + + + 649.00 + 01 + + + + 745.00 + + 2500.00 + 250.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 2750.00 + 495.00 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 500.00 + + + diff --git a/core/src/test/resources/e2e/homologacion/Group7Test/factura1Con5Items.xml b/core/src/test/resources/e2e/homologacion/Group7Test/factura1Con5Items.xml new file mode 100644 index 00000000..c0fe02be --- /dev/null +++ b/core/src/test/resources/e2e/homologacion/Group7Test/factura1Con5Items.xml @@ -0,0 +1,336 @@ + + + + + + + + 2.1 + 2.0 + FF50-1 + 2019-12-24 + 01 + USD + + 12345678912 + + + 12345678912 + + + + + + + + #PROJECT-OPENUBL-SIGN + + + + + + + 12345678912 + + + + + 0000 + + + + + + + + 12121212121 + + + + + + + + FormaPago + Contado + + + 1639.00 + + 5500.00 + 550.00 + + + 2000 + ISC + EXC + + + + + 5500.00 + 1089.00 + + S + + 1000 + IGV + VAT + + + + + + 5500.00 + 7139.00 + 0 + 0 + 7139.00 + + + 1 + 1 + 100.00 + + + 129.80 + 01 + + + + 29.80 + + 100.00 + 10.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 110.00 + 19.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 100.00 + + + + 2 + 2 + 400.00 + + + 259.60 + 01 + + + + 119.20 + + 400.00 + 40.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 440.00 + 79.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 200.00 + + + + 3 + 3 + 900.00 + + + 389.40 + 01 + + + + 268.20 + + 900.00 + 90.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 990.00 + 178.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 300.00 + + + + 4 + 4 + 1600.00 + + + 519.20 + 01 + + + + 476.80 + + 1600.00 + 160.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 1760.00 + 316.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 400.00 + + + + 5 + 5 + 2500.00 + + + 649.00 + 01 + + + + 745.00 + + 2500.00 + 250.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 2750.00 + 495.00 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 500.00 + + + diff --git a/core/src/test/resources/e2e/homologacion/Group7Test/notaDeCreditoDeFactura1.xml b/core/src/test/resources/e2e/homologacion/Group7Test/notaDeCreditoDeFactura1.xml new file mode 100644 index 00000000..a56ae4db --- /dev/null +++ b/core/src/test/resources/e2e/homologacion/Group7Test/notaDeCreditoDeFactura1.xml @@ -0,0 +1,340 @@ + + + + + + + + 2.1 + 2.0 + FF50-1 + 2019-12-24 + USD + + FF50-1 + 01 + + + + + FF50-1 + 01 + + + + 12345678912 + + + 12345678912 + + + + + + + + #PROJECT-OPENUBL-SIGN + + + + + + + 12345678912 + + + + + 0000 + + + + + + + + 12121212121 + + + + + + + + 1639.00 + + 5500.00 + 550.00 + + + 2000 + ISC + EXC + + + + + 5500.00 + 1089.00 + + S + + 1000 + IGV + VAT + + + + + + 5500.00 + 7139.00 + 7139.00 + + + 1 + 1 + 100.00 + + + 129.80 + 01 + + + + 29.80 + + 100.00 + 10.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 110.00 + 19.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 100.00 + + + + 2 + 2 + 400.00 + + + 259.60 + 01 + + + + 119.20 + + 400.00 + 40.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 440.00 + 79.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 200.00 + + + + 3 + 3 + 900.00 + + + 389.40 + 01 + + + + 268.20 + + 900.00 + 90.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 990.00 + 178.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 300.00 + + + + 4 + 4 + 1600.00 + + + 519.20 + 01 + + + + 476.80 + + 1600.00 + 160.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 1760.00 + 316.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 400.00 + + + + 5 + 5 + 2500.00 + + + 649.00 + 01 + + + + 745.00 + + 2500.00 + 250.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 2750.00 + 495.00 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 500.00 + + + diff --git a/core/src/test/resources/e2e/homologacion/Group7Test/notaDeDebitoDeFactura2.xml b/core/src/test/resources/e2e/homologacion/Group7Test/notaDeDebitoDeFactura2.xml new file mode 100644 index 00000000..c911fa95 --- /dev/null +++ b/core/src/test/resources/e2e/homologacion/Group7Test/notaDeDebitoDeFactura2.xml @@ -0,0 +1,340 @@ + + + + + + + + 2.1 + 2.0 + FF50-1 + 2019-12-24 + USD + + FF50-1 + 01 + + + + + FF50-1 + 01 + + + + 12345678912 + + + 12345678912 + + + + + + + + #PROJECT-OPENUBL-SIGN + + + + + + + 12345678912 + + + + + 0000 + + + + + + + + 12121212121 + + + + + + + + 1639.00 + + 5500.00 + 550.00 + + + 2000 + ISC + EXC + + + + + 5500.00 + 1089.00 + + S + + 1000 + IGV + VAT + + + + + + 5500.00 + 7139.00 + 7139.00 + + + 1 + 1 + 100.00 + + + 129.80 + 01 + + + + 29.80 + + 100.00 + 10.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 110.00 + 19.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 100.00 + + + + 2 + 2 + 400.00 + + + 259.60 + 01 + + + + 119.20 + + 400.00 + 40.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 440.00 + 79.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 200.00 + + + + 3 + 3 + 900.00 + + + 389.40 + 01 + + + + 268.20 + + 900.00 + 90.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 990.00 + 178.20 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 300.00 + + + + 4 + 4 + 1600.00 + + + 519.20 + 01 + + + + 476.80 + + 1600.00 + 160.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 1760.00 + 316.80 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 400.00 + + + + 5 + 5 + 2500.00 + + + 649.00 + 01 + + + + 745.00 + + 2500.00 + 250.00 + + 10.00 + 01 + + 2000 + ISC + EXC + + + + + 2750.00 + 495.00 + + S + 18.00 + 10 + + 1000 + IGV + VAT + + + + + + + + + 500.00 + + +