diff --git a/src/xhandler/_core/VERSION b/src/xhandler/_core/VERSION
index b76e278..ef68c3d 100644
--- a/src/xhandler/_core/VERSION
+++ b/src/xhandler/_core/VERSION
@@ -1 +1 @@
-6.0.0-alpha.1
+6.0.0-alpha.2
diff --git a/src/xhandler/_core/xhandler.wasm b/src/xhandler/_core/xhandler.wasm
index 8820340..fbf7781 100755
Binary files a/src/xhandler/_core/xhandler.wasm and b/src/xhandler/_core/xhandler.wasm differ
diff --git a/src/xhandler/xbuilder/models.py b/src/xhandler/xbuilder/models.py
index 519b2c8..728c4f1 100644
--- a/src/xhandler/xbuilder/models.py
+++ b/src/xhandler/xbuilder/models.py
@@ -190,6 +190,29 @@ class DocumentoRelacionado(_Model):
serie_numero: str
+class TipoFormaPago(str, Enum):
+ """Tipo de forma de pago"""
+ CREDITO = 'Credito'
+ CONTADO = 'Contado'
+
+ def __str__(self) -> str:
+ return self.value
+
+
+class CuotaPago(_Model):
+ """Cuota de pago"""
+ importe: PlainDecimal
+ fecha_pago: date
+
+
+class FormaPago(_Model):
+ """Forma de pago. A missing `tipo` is filled in by the enricher, and
+ payment in full ("contado") has no `cuotas`."""
+ tipo: TipoFormaPago | None = None
+ cuotas: list[CuotaPago] = Field(default_factory=list)
+ total: PlainDecimal | None = None
+
+
class CreditNote(_Model):
"""Nota de credito"""
kind: ClassVar[str] = 'CreditNote'
@@ -216,12 +239,11 @@ class CreditNote(_Model):
guias: list[Guia] = Field(default_factory=list)
documentos_relacionados: list[DocumentoRelacionado] = Field(default_factory=list)
orden_compra: str | None = None
-
-
-class CuotaPago(_Model):
- """Cuota de pago"""
- importe: PlainDecimal
- fecha_pago: date
+ forma_pago: FormaPago | None = None
+ """The corrected amount owed and installments of the factura it
+ modifies: required for `tipo_nota` "13" (Catalog9, ajustes de montos
+ y/o fechas de pago) and refused for the others. Unlike an invoice's,
+ it isn't filled in when missing."""
class DebitNote(_Model):
@@ -429,20 +451,6 @@ class Detraccion(_Model):
monto: PlainDecimal | None = None
-class TipoFormaPago(str, Enum):
- """Tipo de forma de pago"""
- CREDITO = 'Credito'
- CONTADO = 'Contado'
-
-
-class FormaPago(_Model):
- """Forma de pago. A missing `tipo` is filled in by the enricher, and
- payment in full ("contado") has no `cuotas`."""
- tipo: TipoFormaPago | None = None
- cuotas: list[CuotaPago] = Field(default_factory=list)
- total: PlainDecimal | None = None
-
-
class GuiaEmbebida(_Model):
"""Datos del traslado de una factura guia"""
partida: Direccion
diff --git a/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_2.json b/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_2.json
index eb51f65..325db9f 100644
--- a/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_2.json
+++ b/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_3.json b/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_3.json
index 4b75918..79f3595 100644
--- a/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_3.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_4.json b/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_4.json
index 7475de4..76abfb2 100644
--- a/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_4.json
+++ b/testdata/conformance/build/homologacion/group01/nota_de_credito_de_factura_4.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json b/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json
index 522feb6..628a71d 100644
--- a/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json b/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json
index 8e7ad1a..f3f9610 100644
--- a/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json b/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json
index 971e829..5554058 100644
--- a/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json
+++ b/testdata/conformance/build/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json b/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json
index 69a3915..9d79e8e 100644
--- a/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json b/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json
index a3d2e4b..30e8b4d 100644
--- a/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json b/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json
index 43916c0..dd72c7f 100644
--- a/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json
+++ b/testdata/conformance/build/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_2.json b/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_2.json
index 538c8da..59cd976 100644
--- a/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_2.json
+++ b/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_3.json b/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_3.json
index 4eb063a..51ba151 100644
--- a/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/build/homologacion/group03/nota_de_credito_de_factura_3.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_2.json b/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_2.json
index 90d6e96..8eb5ad8 100644
--- a/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_2.json
+++ b/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_3.json b/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_3.json
index 090e653..4d3cafc 100644
--- a/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_3.json
@@ -99,6 +99,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_5.json b/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_5.json
index e19aa52..4e18448 100644
--- a/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_5.json
+++ b/testdata/conformance/build/homologacion/group04/nota_de_credito_de_factura_5.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group05/nota_de_credito_de_factura_1.json b/testdata/conformance/build/homologacion/group05/nota_de_credito_de_factura_1.json
index a8bb771..860320f 100644
--- a/testdata/conformance/build/homologacion/group05/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/build/homologacion/group05/nota_de_credito_de_factura_1.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group06/nota_de_credito_de_factura_1.json b/testdata/conformance/build/homologacion/group06/nota_de_credito_de_factura_1.json
index 3da893f..3d9416a 100644
--- a/testdata/conformance/build/homologacion/group06/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/build/homologacion/group06/nota_de_credito_de_factura_1.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group07/nota_de_credito_de_factura_1.json b/testdata/conformance/build/homologacion/group07/nota_de_credito_de_factura_1.json
index abf6a9c..05ee537 100644
--- a/testdata/conformance/build/homologacion/group07/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/build/homologacion/group07/nota_de_credito_de_factura_1.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_2.json b/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_2.json
index 17fcb41..e5fb942 100644
--- a/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_2.json
+++ b/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_2.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_3.json b/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_3.json
index 83473b2..fe8fd39 100644
--- a/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_3.json
+++ b/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_3.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_4.json b/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_4.json
index 0ad2348..d3c2fa1 100644
--- a/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/build/homologacion/group08/nota_de_credito_de_boleta_4.json
@@ -99,6 +99,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json b/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json
index 504fb6f..52ae446 100644
--- a/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json b/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json
index 22b4238..af929c4 100644
--- a/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json b/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json
index b29347a..af52852 100644
--- a/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json
+++ b/testdata/conformance/build/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json b/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json
index 535f48e..be11b76 100644
--- a/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json b/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json
index e36e06b..5d5757d 100644
--- a/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json b/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json
index 6c8147f..8e0f70d 100644
--- a/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json
+++ b/testdata/conformance/build/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_1.json b/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_1.json
index 4491a92..ea016f3 100644
--- a/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_1.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_2.json b/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_2.json
index 1ff2277..2e2d19a 100644
--- a/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_2.json
+++ b/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_4.json b/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_4.json
index 542a397..703fd0d 100644
--- a/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/build/homologacion/group10/nota_de_credito_de_boleta_4.json
@@ -124,6 +124,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_1.json b/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_1.json
index 451b863..aa448a7 100644
--- a/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_1.json
@@ -274,6 +274,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_2.json b/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_2.json
index e46ccd8..9be39be 100644
--- a/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_2.json
+++ b/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_2.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_4.json b/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_4.json
index 59ddd69..3b2233c 100644
--- a/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/build/homologacion/group11/nota_de_credito_de_boleta_4.json
@@ -249,6 +249,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/homologacion/group12/nota_de_credito_de_boleta_1.json b/testdata/conformance/build/homologacion/group12/nota_de_credito_de_boleta_1.json
index 48277e7..09deb14 100644
--- a/testdata/conformance/build/homologacion/group12/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/build/homologacion/group12/nota_de_credito_de_boleta_1.json
@@ -99,6 +99,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note/min_data_ruc.json b/testdata/conformance/build/renderer/credit_note/min_data_ruc.json
index 2632d05..e5bca31 100644
--- a/testdata/conformance/build/renderer/credit_note/min_data_ruc.json
+++ b/testdata/conformance/build/renderer/credit_note/min_data_ruc.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_atributos/atributos_simple.json b/testdata/conformance/build/renderer/credit_note_atributos/atributos_simple.json
index 820bad2..5b49b73 100644
--- a/testdata/conformance/build/renderer/credit_note_atributos/atributos_simple.json
+++ b/testdata/conformance/build/renderer/credit_note_atributos/atributos_simple.json
@@ -66,6 +66,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_forma_pago/tipo_13.json b/testdata/conformance/build/renderer/credit_note_forma_pago/tipo_13.json
new file mode 100644
index 0000000..27f732d
--- /dev/null
+++ b/testdata/conformance/build/renderer/credit_note_forma_pago/tipo_13.json
@@ -0,0 +1,91 @@
+{
+ "input": {
+ "defaults": {
+ "fecha_emision": "2019-12-24",
+ "icb_tasa": "0.2",
+ "igv_tasa": "0.18",
+ "ivap_tasa": "0.04"
+ },
+ "document": {
+ "kind": "CreditNote",
+ "spec": {
+ "cliente": {
+ "contacto": null,
+ "direccion": null,
+ "nombre": "Carlos Feria",
+ "numero_documento_identidad": "12121212121",
+ "tipo_documento_identidad": "6"
+ },
+ "comprobante_afectado_serie_numero": "F001-1",
+ "comprobante_afectado_tipo": null,
+ "descripcion_sustento": "Ajuste de cuotas",
+ "detalles": [
+ {
+ "atributos": [],
+ "cantidad": "1",
+ "codigo": null,
+ "codigo_gs1": null,
+ "codigo_sunat": null,
+ "descripcion": "Item1",
+ "icb": null,
+ "icb_aplica": false,
+ "icb_tasa": null,
+ "igv": null,
+ "igv_base_imponible": null,
+ "igv_tasa": null,
+ "igv_tipo": null,
+ "isc": null,
+ "isc_base_imponible": null,
+ "isc_tasa": null,
+ "isc_tipo": null,
+ "precio": "0",
+ "precio_con_impuestos": null,
+ "precio_referencia": null,
+ "precio_referencia_tipo": null,
+ "total_impuestos": null,
+ "unidad_medida": null
+ }
+ ],
+ "documentos_relacionados": [],
+ "fecha_emision": null,
+ "firmante": null,
+ "forma_pago": {
+ "cuotas": [
+ {
+ "fecha_pago": "2099-01-20",
+ "importe": "500"
+ },
+ {
+ "fecha_pago": "2099-02-20",
+ "importe": "680"
+ }
+ ],
+ "tipo": null,
+ "total": null
+ },
+ "guias": [],
+ "hora_emision": null,
+ "icb_tasa": null,
+ "igv_tasa": null,
+ "ivap_tasa": null,
+ "leyendas": {},
+ "moneda": null,
+ "orden_compra": null,
+ "proveedor": {
+ "contacto": null,
+ "direccion": null,
+ "nombre_comercial": null,
+ "razon_social": "Softgreen S.A.C.",
+ "ruc": "12345678912"
+ },
+ "serie_numero": "FC01-1",
+ "tipo_nota": "13",
+ "total_importe": null,
+ "total_impuestos": null
+ }
+ }
+ },
+ "expected": {
+ "ok": "\n\n \n \n \n \n \n 2.1\n 2.0\n FC01-1\n 2019-12-24\n PEN\n \n F001-1\n 13\n \n \n \n \n F001-1\n 01\n \n \n \n 12345678912\n \n \n 12345678912\n \n \n \n \n \n \n \n #PROJECT-OPENUBL-SIGN\n \n \n \n \n \n \n 12345678912\n \n \n \n \n 0000\n \n \n \n \n \n \n \n 12121212121\n \n \n \n \n \n \n \n FormaPago\n Credito\n 1180.00\n \n \n FormaPago\n Cuota001\n 500.00\n 2099-01-20\n \n \n FormaPago\n Cuota002\n 680.00\n 2099-02-20\n \n \n 0.00\n \n \n 0.00\n 0.00\n 0.00\n \n \n 1\n 1\n 0.00\n \n \n 0.00\n 01\n \n \n \n 0.00\n \n 0.00\n 0.00\n \n S\n 18.00\n 10\n \n 1000\n IGV\n VAT\n \n \n \n \n \n \n \n \n 0.00\n \n \n\n"
+ }
+}
\ No newline at end of file
diff --git a/testdata/conformance/build/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json b/testdata/conformance/build/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json
index 530e617..b408a2c 100644
--- a/testdata/conformance/build/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json
+++ b/testdata/conformance/build/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_al_valor.json b/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_al_valor.json
index bea3a63..579d093 100644
--- a/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_al_valor.json
+++ b/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_al_valor.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json b/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json
index d6d1c26..fa7ec45 100644
--- a/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json
+++ b/testdata/conformance/build/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_orden_compra/orden_de_compra.json b/testdata/conformance/build/renderer/credit_note_orden_compra/orden_de_compra.json
index 5b599b4..b5ecdfe 100644
--- a/testdata/conformance/build/renderer/credit_note_orden_compra/orden_de_compra.json
+++ b/testdata/conformance/build/renderer/credit_note_orden_compra/orden_de_compra.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_product_codes/all_product_codes.json b/testdata/conformance/build/renderer/credit_note_product_codes/all_product_codes.json
index 2d9bb60..5d92f9f 100644
--- a/testdata/conformance/build/renderer/credit_note_product_codes/all_product_codes.json
+++ b/testdata/conformance/build/renderer/credit_note_product_codes/all_product_codes.json
@@ -52,6 +52,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/credit_note_product_codes/product_codes.json b/testdata/conformance/build/renderer/credit_note_product_codes/product_codes.json
index f7677b1..f407a27 100644
--- a/testdata/conformance/build/renderer/credit_note_product_codes/product_codes.json
+++ b/testdata/conformance/build/renderer/credit_note_product_codes/product_codes.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
diff --git a/testdata/conformance/build/renderer/invoice/icb_precio_con_igv.json b/testdata/conformance/build/renderer/invoice/icb_precio_con_igv.json
new file mode 100644
index 0000000..c044360
--- /dev/null
+++ b/testdata/conformance/build/renderer/invoice/icb_precio_con_igv.json
@@ -0,0 +1,110 @@
+{
+ "input": {
+ "defaults": {
+ "fecha_emision": "2019-12-24",
+ "icb_tasa": "0.2",
+ "igv_tasa": "0.18",
+ "ivap_tasa": "0.04"
+ },
+ "document": {
+ "kind": "Invoice",
+ "spec": {
+ "anticipos": [],
+ "cargos": [],
+ "cliente": {
+ "contacto": null,
+ "direccion": null,
+ "nombre": "Carlos Feria",
+ "numero_documento_identidad": "12121212121",
+ "tipo_documento_identidad": "6"
+ },
+ "descuentos": [],
+ "detalles": [
+ {
+ "atributos": [],
+ "cantidad": "10",
+ "codigo": null,
+ "codigo_gs1": null,
+ "codigo_sunat": null,
+ "descripcion": "Item1",
+ "icb": null,
+ "icb_aplica": true,
+ "icb_tasa": null,
+ "igv": null,
+ "igv_base_imponible": null,
+ "igv_tasa": null,
+ "igv_tipo": null,
+ "isc": null,
+ "isc_base_imponible": null,
+ "isc_tasa": null,
+ "isc_tipo": null,
+ "precio": null,
+ "precio_con_impuestos": "118",
+ "precio_referencia": null,
+ "precio_referencia_tipo": null,
+ "total_impuestos": null,
+ "unidad_medida": null
+ },
+ {
+ "atributos": [],
+ "cantidad": "10",
+ "codigo": null,
+ "codigo_gs1": null,
+ "codigo_sunat": null,
+ "descripcion": "Item2",
+ "icb": null,
+ "icb_aplica": true,
+ "icb_tasa": null,
+ "igv": null,
+ "igv_base_imponible": null,
+ "igv_tasa": null,
+ "igv_tipo": null,
+ "isc": null,
+ "isc_base_imponible": null,
+ "isc_tasa": null,
+ "isc_tipo": null,
+ "precio": null,
+ "precio_con_impuestos": "118",
+ "precio_referencia": null,
+ "precio_referencia_tipo": null,
+ "total_impuestos": null,
+ "unidad_medida": null
+ }
+ ],
+ "detraccion": null,
+ "direccion_entrega": null,
+ "documentos_relacionados": [],
+ "fecha_emision": null,
+ "fecha_vencimiento": null,
+ "firmante": null,
+ "forma_pago": null,
+ "guia_embebida": null,
+ "guias": [],
+ "hora_emision": null,
+ "icb_tasa": null,
+ "igv_tasa": null,
+ "ivap_tasa": null,
+ "leyendas": {},
+ "moneda": null,
+ "observaciones": null,
+ "orden_compra": null,
+ "percepcion": null,
+ "proveedor": {
+ "contacto": null,
+ "direccion": null,
+ "nombre_comercial": null,
+ "razon_social": "Softgreen S.A.C.",
+ "ruc": "12345678912"
+ },
+ "serie_numero": "F001-1",
+ "tipo_comprobante": null,
+ "tipo_operacion": null,
+ "total_importe": null,
+ "total_impuestos": null
+ }
+ }
+ },
+ "expected": {
+ "ok": "\n\n \n \n \n \n \n 2.1\n 2.0\n F001-1\n 2019-12-24\n 01\n PEN\n \n 12345678912\n \n \n 12345678912\n \n \n \n \n \n \n \n #PROJECT-OPENUBL-SIGN\n \n \n \n \n \n \n 12345678912\n \n \n \n \n 0000\n \n \n \n \n \n \n \n 12121212121\n \n \n \n \n \n \n \n FormaPago\n Contado\n \n \n 364.00\n \n 2000.00\n 360.00\n \n S\n \n 1000\n IGV\n VAT\n \n \n \n \n 4.00\n \n S\n \n 7152\n ICBPER\n OTH\n \n \n \n \n \n 2000.00\n 2364.00\n 0\n 0\n 2364.00\n \n \n 1\n 10\n 1000.00\n \n \n 118.00\n 01\n \n \n \n 182.00\n \n 1000.00\n 180.00\n \n S\n 18.00\n 10\n \n 1000\n IGV\n VAT\n \n \n \n \n 2.00\n 10\n \n 0.20\n \n 7152\n ICBPER\n OTH\n \n \n \n \n \n \n \n \n 100.00\n \n \n \n 2\n 10\n 1000.00\n \n \n 118.00\n 01\n \n \n \n 182.00\n \n 1000.00\n 180.00\n \n S\n 18.00\n 10\n \n 1000\n IGV\n VAT\n \n \n \n \n 2.00\n 10\n \n 0.20\n \n 7152\n ICBPER\n OTH\n \n \n \n \n \n \n \n \n 100.00\n \n \n\n"
+ }
+}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_2.json b/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_2.json
index 3a833f1..ba668b3 100644
--- a/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_2.json
+++ b/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_3.json b/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_3.json
index f9bda87..a129d07 100644
--- a/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_3.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -163,7 +164,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_4.json b/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_4.json
index 52da781..8170b61 100644
--- a/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_4.json
+++ b/testdata/conformance/enrich/homologacion/group01/nota_de_credito_de_factura_4.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json b/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json
index 0f67930..5a97e8e 100644
--- a/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_1.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -163,7 +164,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json b/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json
index d29ec6e..d96d43c 100644
--- a/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_3.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -463,7 +464,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json b/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json
index c9aff21..20d28db 100644
--- a/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json
+++ b/testdata/conformance/enrich/homologacion/group02/exonerado/nota_de_credito_de_factura_5.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json b/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json
index e087af1..b2f4db6 100644
--- a/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_1.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -163,7 +164,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json b/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json
index 9b67195..000d640 100644
--- a/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_3.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -463,7 +464,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json b/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json
index aa59df3..05bdb20 100644
--- a/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json
+++ b/testdata/conformance/enrich/homologacion/group02/inafecto/nota_de_credito_de_factura_5.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_2.json b/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_2.json
index d45b7c7..8e14fc7 100644
--- a/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_2.json
+++ b/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_3.json b/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_3.json
index e4e3d71..560fb6c 100644
--- a/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/enrich/homologacion/group03/nota_de_credito_de_factura_3.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_2.json b/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_2.json
index ad4a022..5852829 100644
--- a/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_2.json
+++ b/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_3.json b/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_3.json
index c2dfa01..23ada5a 100644
--- a/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_3.json
+++ b/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_3.json
@@ -99,6 +99,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -263,7 +264,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_5.json b/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_5.json
index 73ee758..cb3da7b 100644
--- a/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_5.json
+++ b/testdata/conformance/enrich/homologacion/group04/nota_de_credito_de_factura_5.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group05/nota_de_credito_de_factura_1.json b/testdata/conformance/enrich/homologacion/group05/nota_de_credito_de_factura_1.json
index 096db2b..7708188 100644
--- a/testdata/conformance/enrich/homologacion/group05/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/enrich/homologacion/group05/nota_de_credito_de_factura_1.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group06/nota_de_credito_de_factura_1.json b/testdata/conformance/enrich/homologacion/group06/nota_de_credito_de_factura_1.json
index d4349cd..7a66bbf 100644
--- a/testdata/conformance/enrich/homologacion/group06/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/enrich/homologacion/group06/nota_de_credito_de_factura_1.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group07/nota_de_credito_de_factura_1.json b/testdata/conformance/enrich/homologacion/group07/nota_de_credito_de_factura_1.json
index c5ec1c0..e612c03 100644
--- a/testdata/conformance/enrich/homologacion/group07/nota_de_credito_de_factura_1.json
+++ b/testdata/conformance/enrich/homologacion/group07/nota_de_credito_de_factura_1.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_2.json b/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_2.json
index 5bcfecf..1fbcd83 100644
--- a/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_2.json
+++ b/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_2.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -463,7 +464,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_3.json b/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_3.json
index e38f895..f30f7c0 100644
--- a/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_3.json
+++ b/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_3.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_4.json b/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_4.json
index 05f44c4..ea61db9 100644
--- a/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/enrich/homologacion/group08/nota_de_credito_de_boleta_4.json
@@ -99,6 +99,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -263,7 +264,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json b/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json
index 6848162..8ba1710 100644
--- a/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_1.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json b/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json
index eb4a185..d532170 100644
--- a/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_4.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json b/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json
index 10084da..ebb884e 100644
--- a/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json
+++ b/testdata/conformance/enrich/homologacion/group09/exonerado/nota_de_credito_de_boleta_5.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -163,7 +164,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json b/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json
index d3623ed..a0aec33 100644
--- a/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_1.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json b/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json
index 3c9fa63..ecf6b14 100644
--- a/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_4.json
@@ -149,6 +149,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -363,7 +364,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json b/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json
index ed548c6..cb8e0a9 100644
--- a/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json
+++ b/testdata/conformance/enrich/homologacion/group09/inafecto/nota_de_credito_de_boleta_5.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -163,7 +164,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_1.json b/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_1.json
index ea1a0a0..2fded83 100644
--- a/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_1.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -463,7 +464,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_2.json b/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_2.json
index 6bc24b4..302a4cb 100644
--- a/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_2.json
+++ b/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_2.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_4.json b/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_4.json
index 3edc5f8..7098be0 100644
--- a/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/enrich/homologacion/group10/nota_de_credito_de_boleta_4.json
@@ -124,6 +124,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -313,7 +314,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_1.json b/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_1.json
index 8cc1002..17b52ea 100644
--- a/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_1.json
@@ -274,6 +274,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -613,7 +614,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_2.json b/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_2.json
index d374128..fb6bb3b 100644
--- a/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_2.json
+++ b/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_2.json
@@ -199,6 +199,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -463,7 +464,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_4.json b/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_4.json
index 12399c8..1dbbb6c 100644
--- a/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_4.json
+++ b/testdata/conformance/enrich/homologacion/group11/nota_de_credito_de_boleta_4.json
@@ -249,6 +249,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -563,7 +564,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/homologacion/group12/nota_de_credito_de_boleta_1.json b/testdata/conformance/enrich/homologacion/group12/nota_de_credito_de_boleta_1.json
index 574ced7..99f8539 100644
--- a/testdata/conformance/enrich/homologacion/group12/nota_de_credito_de_boleta_1.json
+++ b/testdata/conformance/enrich/homologacion/group12/nota_de_credito_de_boleta_1.json
@@ -99,6 +99,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -263,7 +264,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note/min_data_ruc.json b/testdata/conformance/enrich/renderer/credit_note/min_data_ruc.json
index 646fe62..9b2bf2d 100644
--- a/testdata/conformance/enrich/renderer/credit_note/min_data_ruc.json
+++ b/testdata/conformance/enrich/renderer/credit_note/min_data_ruc.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_atributos/atributos_simple.json b/testdata/conformance/enrich/renderer/credit_note_atributos/atributos_simple.json
index 420540e..a4befcb 100644
--- a/testdata/conformance/enrich/renderer/credit_note_atributos/atributos_simple.json
+++ b/testdata/conformance/enrich/renderer/credit_note_atributos/atributos_simple.json
@@ -66,6 +66,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -197,7 +198,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_forma_pago/tipo_13.json b/testdata/conformance/enrich/renderer/credit_note_forma_pago/tipo_13.json
new file mode 100644
index 0000000..efb5632
--- /dev/null
+++ b/testdata/conformance/enrich/renderer/credit_note_forma_pago/tipo_13.json
@@ -0,0 +1,197 @@
+{
+ "input": {
+ "defaults": {
+ "fecha_emision": "2019-12-24",
+ "icb_tasa": "0.2",
+ "igv_tasa": "0.18",
+ "ivap_tasa": "0.04"
+ },
+ "document": {
+ "kind": "CreditNote",
+ "spec": {
+ "cliente": {
+ "contacto": null,
+ "direccion": null,
+ "nombre": "Carlos Feria",
+ "numero_documento_identidad": "12121212121",
+ "tipo_documento_identidad": "6"
+ },
+ "comprobante_afectado_serie_numero": "F001-1",
+ "comprobante_afectado_tipo": null,
+ "descripcion_sustento": "Ajuste de cuotas",
+ "detalles": [
+ {
+ "atributos": [],
+ "cantidad": "1",
+ "codigo": null,
+ "codigo_gs1": null,
+ "codigo_sunat": null,
+ "descripcion": "Item1",
+ "icb": null,
+ "icb_aplica": false,
+ "icb_tasa": null,
+ "igv": null,
+ "igv_base_imponible": null,
+ "igv_tasa": null,
+ "igv_tipo": null,
+ "isc": null,
+ "isc_base_imponible": null,
+ "isc_tasa": null,
+ "isc_tipo": null,
+ "precio": "0",
+ "precio_con_impuestos": null,
+ "precio_referencia": null,
+ "precio_referencia_tipo": null,
+ "total_impuestos": null,
+ "unidad_medida": null
+ }
+ ],
+ "documentos_relacionados": [],
+ "fecha_emision": null,
+ "firmante": null,
+ "forma_pago": {
+ "cuotas": [
+ {
+ "fecha_pago": "2099-01-20",
+ "importe": "500"
+ },
+ {
+ "fecha_pago": "2099-02-20",
+ "importe": "680"
+ }
+ ],
+ "tipo": null,
+ "total": null
+ },
+ "guias": [],
+ "hora_emision": null,
+ "icb_tasa": null,
+ "igv_tasa": null,
+ "ivap_tasa": null,
+ "leyendas": {},
+ "moneda": null,
+ "orden_compra": null,
+ "proveedor": {
+ "contacto": null,
+ "direccion": null,
+ "nombre_comercial": null,
+ "razon_social": "Softgreen S.A.C.",
+ "ruc": "12345678912"
+ },
+ "serie_numero": "FC01-1",
+ "tipo_nota": "13",
+ "total_importe": null,
+ "total_impuestos": null
+ }
+ }
+ },
+ "expected": {
+ "ok": {
+ "leyendas": {},
+ "serie_numero": "FC01-1",
+ "moneda": "PEN",
+ "fecha_emision": "2019-12-24",
+ "hora_emision": null,
+ "proveedor": {
+ "ruc": "12345678912",
+ "razon_social": "Softgreen S.A.C.",
+ "nombre_comercial": null,
+ "direccion": {
+ "ubigeo": null,
+ "codigo_local": "0000",
+ "urbanizacion": null,
+ "departamento": null,
+ "provincia": null,
+ "distrito": null,
+ "direccion": null,
+ "codigo_pais": null
+ },
+ "contacto": null
+ },
+ "cliente": {
+ "tipo_documento_identidad": "6",
+ "numero_documento_identidad": "12121212121",
+ "nombre": "Carlos Feria",
+ "direccion": null,
+ "contacto": null
+ },
+ "firmante": {
+ "ruc": "12345678912",
+ "razon_social": "Softgreen S.A.C."
+ },
+ "icb_tasa": "0.2",
+ "igv_tasa": "0.18",
+ "ivap_tasa": "0.04",
+ "tipo_nota": "13",
+ "comprobante_afectado_serie_numero": "F001-1",
+ "comprobante_afectado_tipo": "01",
+ "descripcion_sustento": "Ajuste de cuotas",
+ "detalles": [
+ {
+ "descripcion": "Item1",
+ "cantidad": "1",
+ "unidad_medida": "NIU",
+ "codigo": null,
+ "codigo_sunat": null,
+ "codigo_gs1": null,
+ "precio": "0",
+ "precio_con_impuestos": "0",
+ "precio_referencia": "0",
+ "precio_referencia_tipo": "01",
+ "igv_tasa": "0.18",
+ "icb_tasa": "0.2",
+ "isc_tasa": "0",
+ "igv_tipo": "10",
+ "isc_tipo": "01",
+ "icb_aplica": false,
+ "icb": "0",
+ "igv": "0",
+ "igv_base_imponible": "0",
+ "isc": "0",
+ "isc_base_imponible": "0",
+ "total_impuestos": "0",
+ "atributos": []
+ }
+ ],
+ "total_importe": {
+ "importe": "0",
+ "importe_sin_impuestos": "0"
+ },
+ "total_impuestos": {
+ "total": "0",
+ "ivap_importe": "0",
+ "ivap_base_imponible": "0",
+ "exportacion_importe": "0",
+ "exportacion_base_imponible": "0",
+ "gravado_importe": "0",
+ "gravado_base_imponible": "0",
+ "inafecto_importe": "0",
+ "inafecto_base_imponible": "0",
+ "exonerado_importe": "0",
+ "exonerado_base_imponible": "0",
+ "gratuito_importe": "0",
+ "gratuito_base_imponible": "0",
+ "icb_importe": "0",
+ "isc_importe": "0",
+ "isc_base_imponible": "0"
+ },
+ "guias": [],
+ "documentos_relacionados": [],
+ "orden_compra": null,
+ "forma_pago": {
+ "tipo": "Credito",
+ "cuotas": [
+ {
+ "importe": "500",
+ "fecha_pago": "2099-01-20"
+ },
+ {
+ "importe": "680",
+ "fecha_pago": "2099-02-20"
+ }
+ ],
+ "total": "1180"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json b/testdata/conformance/enrich/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json
index 56deaea..2bb4d7b 100644
--- a/testdata/conformance/enrich/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json
+++ b/testdata/conformance/enrich/renderer/credit_note_isc/isc_aplicacion_al_monto_fijo.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_al_valor.json b/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_al_valor.json
index 321d37b..cacaccb 100644
--- a/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_al_valor.json
+++ b/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_al_valor.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json b/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json
index d0b8dc5..3e7c936 100644
--- a/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json
+++ b/testdata/conformance/enrich/renderer/credit_note_isc/isc_sistema_de_precios_de_venta_al_publico.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_orden_compra/orden_de_compra.json b/testdata/conformance/enrich/renderer/credit_note_orden_compra/orden_de_compra.json
index cf968a0..823120f 100644
--- a/testdata/conformance/enrich/renderer/credit_note_orden_compra/orden_de_compra.json
+++ b/testdata/conformance/enrich/renderer/credit_note_orden_compra/orden_de_compra.json
@@ -74,6 +74,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -213,7 +214,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": "123456"
+ "orden_compra": "123456",
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_product_codes/all_product_codes.json b/testdata/conformance/enrich/renderer/credit_note_product_codes/all_product_codes.json
index 301271b..2dc5b39 100644
--- a/testdata/conformance/enrich/renderer/credit_note_product_codes/all_product_codes.json
+++ b/testdata/conformance/enrich/renderer/credit_note_product_codes/all_product_codes.json
@@ -52,6 +52,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -169,7 +170,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/credit_note_product_codes/product_codes.json b/testdata/conformance/enrich/renderer/credit_note_product_codes/product_codes.json
index 4454ac1..aaa5928 100644
--- a/testdata/conformance/enrich/renderer/credit_note_product_codes/product_codes.json
+++ b/testdata/conformance/enrich/renderer/credit_note_product_codes/product_codes.json
@@ -49,6 +49,7 @@
"documentos_relacionados": [],
"fecha_emision": null,
"firmante": null,
+ "forma_pago": null,
"guias": [],
"hora_emision": null,
"icb_tasa": null,
@@ -163,7 +164,8 @@
},
"guias": [],
"documentos_relacionados": [],
- "orden_compra": null
+ "orden_compra": null,
+ "forma_pago": null
}
}
}
\ No newline at end of file
diff --git a/testdata/conformance/enrich/renderer/invoice/icb_precio_con_igv.json b/testdata/conformance/enrich/renderer/invoice/icb_precio_con_igv.json
new file mode 100644
index 0000000..da8e790
--- /dev/null
+++ b/testdata/conformance/enrich/renderer/invoice/icb_precio_con_igv.json
@@ -0,0 +1,243 @@
+{
+ "input": {
+ "defaults": {
+ "fecha_emision": "2019-12-24",
+ "icb_tasa": "0.2",
+ "igv_tasa": "0.18",
+ "ivap_tasa": "0.04"
+ },
+ "document": {
+ "kind": "Invoice",
+ "spec": {
+ "anticipos": [],
+ "cargos": [],
+ "cliente": {
+ "contacto": null,
+ "direccion": null,
+ "nombre": "Carlos Feria",
+ "numero_documento_identidad": "12121212121",
+ "tipo_documento_identidad": "6"
+ },
+ "descuentos": [],
+ "detalles": [
+ {
+ "atributos": [],
+ "cantidad": "10",
+ "codigo": null,
+ "codigo_gs1": null,
+ "codigo_sunat": null,
+ "descripcion": "Item1",
+ "icb": null,
+ "icb_aplica": true,
+ "icb_tasa": null,
+ "igv": null,
+ "igv_base_imponible": null,
+ "igv_tasa": null,
+ "igv_tipo": null,
+ "isc": null,
+ "isc_base_imponible": null,
+ "isc_tasa": null,
+ "isc_tipo": null,
+ "precio": null,
+ "precio_con_impuestos": "118",
+ "precio_referencia": null,
+ "precio_referencia_tipo": null,
+ "total_impuestos": null,
+ "unidad_medida": null
+ },
+ {
+ "atributos": [],
+ "cantidad": "10",
+ "codigo": null,
+ "codigo_gs1": null,
+ "codigo_sunat": null,
+ "descripcion": "Item2",
+ "icb": null,
+ "icb_aplica": true,
+ "icb_tasa": null,
+ "igv": null,
+ "igv_base_imponible": null,
+ "igv_tasa": null,
+ "igv_tipo": null,
+ "isc": null,
+ "isc_base_imponible": null,
+ "isc_tasa": null,
+ "isc_tipo": null,
+ "precio": null,
+ "precio_con_impuestos": "118",
+ "precio_referencia": null,
+ "precio_referencia_tipo": null,
+ "total_impuestos": null,
+ "unidad_medida": null
+ }
+ ],
+ "detraccion": null,
+ "direccion_entrega": null,
+ "documentos_relacionados": [],
+ "fecha_emision": null,
+ "fecha_vencimiento": null,
+ "firmante": null,
+ "forma_pago": null,
+ "guia_embebida": null,
+ "guias": [],
+ "hora_emision": null,
+ "icb_tasa": null,
+ "igv_tasa": null,
+ "ivap_tasa": null,
+ "leyendas": {},
+ "moneda": null,
+ "observaciones": null,
+ "orden_compra": null,
+ "percepcion": null,
+ "proveedor": {
+ "contacto": null,
+ "direccion": null,
+ "nombre_comercial": null,
+ "razon_social": "Softgreen S.A.C.",
+ "ruc": "12345678912"
+ },
+ "serie_numero": "F001-1",
+ "tipo_comprobante": null,
+ "tipo_operacion": null,
+ "total_importe": null,
+ "total_impuestos": null
+ }
+ }
+ },
+ "expected": {
+ "ok": {
+ "leyendas": {},
+ "serie_numero": "F001-1",
+ "moneda": "PEN",
+ "fecha_emision": "2019-12-24",
+ "hora_emision": null,
+ "fecha_vencimiento": null,
+ "proveedor": {
+ "ruc": "12345678912",
+ "razon_social": "Softgreen S.A.C.",
+ "nombre_comercial": null,
+ "direccion": {
+ "ubigeo": null,
+ "codigo_local": "0000",
+ "urbanizacion": null,
+ "departamento": null,
+ "provincia": null,
+ "distrito": null,
+ "direccion": null,
+ "codigo_pais": null
+ },
+ "contacto": null
+ },
+ "cliente": {
+ "tipo_documento_identidad": "6",
+ "numero_documento_identidad": "12121212121",
+ "nombre": "Carlos Feria",
+ "direccion": null,
+ "contacto": null
+ },
+ "firmante": {
+ "ruc": "12345678912",
+ "razon_social": "Softgreen S.A.C."
+ },
+ "icb_tasa": "0.2",
+ "igv_tasa": "0.18",
+ "ivap_tasa": "0.04",
+ "tipo_comprobante": "01",
+ "tipo_operacion": "0101",
+ "detraccion": null,
+ "percepcion": null,
+ "direccion_entrega": null,
+ "guia_embebida": null,
+ "forma_pago": {
+ "tipo": "Contado",
+ "cuotas": [],
+ "total": "0"
+ },
+ "anticipos": [],
+ "descuentos": [],
+ "cargos": [],
+ "detalles": [
+ {
+ "descripcion": "Item1",
+ "cantidad": "10",
+ "unidad_medida": "NIU",
+ "codigo": null,
+ "codigo_sunat": null,
+ "codigo_gs1": null,
+ "precio": "100",
+ "precio_con_impuestos": "118",
+ "precio_referencia": "118",
+ "precio_referencia_tipo": "01",
+ "igv_tasa": "0.18",
+ "icb_tasa": "0.2",
+ "isc_tasa": "0",
+ "igv_tipo": "10",
+ "isc_tipo": "01",
+ "icb_aplica": true,
+ "icb": "2.0",
+ "igv": "180.00",
+ "igv_base_imponible": "1000",
+ "isc": "0",
+ "isc_base_imponible": "1000",
+ "total_impuestos": "182.00",
+ "atributos": []
+ },
+ {
+ "descripcion": "Item2",
+ "cantidad": "10",
+ "unidad_medida": "NIU",
+ "codigo": null,
+ "codigo_sunat": null,
+ "codigo_gs1": null,
+ "precio": "100",
+ "precio_con_impuestos": "118",
+ "precio_referencia": "118",
+ "precio_referencia_tipo": "01",
+ "igv_tasa": "0.18",
+ "icb_tasa": "0.2",
+ "isc_tasa": "0",
+ "igv_tipo": "10",
+ "isc_tipo": "01",
+ "icb_aplica": true,
+ "icb": "2.0",
+ "igv": "180.00",
+ "igv_base_imponible": "1000",
+ "isc": "0",
+ "isc_base_imponible": "1000",
+ "total_impuestos": "182.00",
+ "atributos": []
+ }
+ ],
+ "total_importe": {
+ "anticipos": "0",
+ "descuentos": "0",
+ "cargos": "0",
+ "importe": "2364.00",
+ "importe_sin_impuestos": "2000",
+ "importe_con_impuestos": "2364.00"
+ },
+ "total_impuestos": {
+ "total": "364.00",
+ "ivap_importe": "0",
+ "ivap_base_imponible": "0",
+ "exportacion_importe": "0",
+ "exportacion_base_imponible": "0",
+ "gravado_importe": "360.00",
+ "gravado_base_imponible": "2000",
+ "inafecto_importe": "0",
+ "inafecto_base_imponible": "0",
+ "exonerado_importe": "0",
+ "exonerado_base_imponible": "0",
+ "gratuito_importe": "0",
+ "gratuito_base_imponible": "0",
+ "icb_importe": "4.0",
+ "isc_importe": "0",
+ "isc_base_imponible": "0"
+ },
+ "guias": [],
+ "documentos_relacionados": [],
+ "observaciones": null,
+ "orden_compra": null
+ }
+ }
+}
\ No newline at end of file
diff --git a/testdata/conformance/parse/send_file_cdr.json b/testdata/conformance/parse/send_file_cdr.json
index 867680d..32dbd19 100644
--- a/testdata/conformance/parse/send_file_cdr.json
+++ b/testdata/conformance/parse/send_file_cdr.json
@@ -23,6 +23,7 @@
"response_code": "0",
"description": "La Factura numero F001-1, ha sido aceptada",
"notes": [],
+ "document_description": null,
"status": "ACEPTADO"
}
}
diff --git a/testdata/conformance/parse/verify_ticket_cdr.json b/testdata/conformance/parse/verify_ticket_cdr.json
index 32ca55f..4635eb3 100644
--- a/testdata/conformance/parse/verify_ticket_cdr.json
+++ b/testdata/conformance/parse/verify_ticket_cdr.json
@@ -19,6 +19,7 @@
"response_code": "0",
"description": "La Comunicacion de baja RA-20200328-1, ha sido aceptada",
"notes": [],
+ "document_description": null,
"status": "ACEPTADO",
"status_code": "0"
}