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 eb51f654..325db9f9 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 4b759185..79f35958 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 7475de4a..76abfb27 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 522feb60..628a71d8 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 8e7ad1a0..f3f96102 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 971e829f..55540589 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 69a3915f..9d79e8ea 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 a3d2e4b3..30e8b4d9 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 43916c05..dd72c7fa 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 538c8dac..59cd9765 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 4eb063a7..51ba151f 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 90d6e96b..8eb5ad86 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 090e6539..4d3cafc9 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 e19aa523..4e184488 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 a8bb7713..860320f2 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 3da893f0..3d9416ae 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 abf6a9ca..05ee5378 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 17fcb416..e5fb9421 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 83473b2d..fe8fd39f 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 0ad23489..d3c2fa1b 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 504fb6f4..52ae446e 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 22b4238b..af929c40 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 b29347a2..af528525 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 535f48e8..be11b769 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 e36e06b0..5d5757d2 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 6c8147f0..8e0f70d5 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 4491a923..ea016f36 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 1ff22777..2e2d19af 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 542a397c..703fd0d6 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 451b863a..aa448a74 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 e46ccd82..9be39be6 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 59ddd690..3b2233cc 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 48277e7e..09deb140 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 2632d051..e5bca31e 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 820bad27..5b49b739 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 00000000..27f732d5 --- /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 530e6175..b408a2c5 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 bea3a63c..579d093a 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 d6d1c265..fa7ec45d 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 5b599b4f..b5ecdfe3 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 2d9bb60d..5d92f9f4 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 f7677b1b..f407a27e 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 00000000..c044360a --- /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 3a833f18..ba668b35 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 f9bda873..a129d074 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 52da7811..8170b618 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 0f679301..5a97e8ec 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 d29ec6ea..d96d43c2 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 c9aff21f..20d28dba 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 e087af12..b2f4db6e 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 9b671953..000d6404 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 aa59df3b..05bdb205 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 d45b7c78..8e14fc7a 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 e4e3d712..560fb6cc 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 ad4a022e..58528292 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 c2dfa015..23ada5a4 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 73ee758e..cb3da7b6 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 096db2b8..7708188b 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 d4349cd7..7a66bbf7 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 c5ec1c0b..e612c03d 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 5bcfecfa..1fbcd832 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 e38f895c..f30f7c00 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 05f44c43..ea61db94 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 68481625..8ba17103 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 eb4a185e..d532170a 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 10084da0..ebb884e4 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 d3623ed0..a0aec33f 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 3c9fa63c..ecf6b141 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 ed548c68..cb8e0a90 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 ea1a0a06..2fded832 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 6bc24b4e..302a4cba 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 3edc5f87..7098be09 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 8cc1002a..17b52ea5 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 d3741284..fb6bb3b5 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 12399c83..1dbbb6cd 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 574ced7c..99f85398 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 646fe623..9b2bf2d4 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 420540e7..a4befcbc 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 00000000..efb56322 --- /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 56deaea4..2bb4d7b2 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 321d37b3..cacaccb6 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 d0b8dc54..3e7c9365 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 cf968a02..823120f2 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 301271b1..2dc5b399 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 4454ac12..aaa59284 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 00000000..da8e7908 --- /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 867680d1..32dbd198 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 32ca55f7..4635eb3a 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" } diff --git a/xbuilder/core/src/main/java/io/github/project/openubl/xbuilder/models/CreditNote.java b/xbuilder/core/src/main/java/io/github/project/openubl/xbuilder/models/CreditNote.java index 72b1ccb5..6fe54de6 100644 --- a/xbuilder/core/src/main/java/io/github/project/openubl/xbuilder/models/CreditNote.java +++ b/xbuilder/core/src/main/java/io/github/project/openubl/xbuilder/models/CreditNote.java @@ -91,6 +91,15 @@ public class CreditNote implements Document { @JsonProperty("orden_compra") private String ordenCompra; + /** + * 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. + */ + @JsonProperty("forma_pago") + private FormaPago formaPago; + @Override public String kind() { return "CreditNote"; diff --git a/xhandler-core/src/main/resources/io/github/project/openubl/xhandler/core/VERSION b/xhandler-core/src/main/resources/io/github/project/openubl/xhandler/core/VERSION index b76e2788..ef68c3db 100644 --- a/xhandler-core/src/main/resources/io/github/project/openubl/xhandler/core/VERSION +++ b/xhandler-core/src/main/resources/io/github/project/openubl/xhandler/core/VERSION @@ -1 +1 @@ -6.0.0-alpha.1 +6.0.0-alpha.2 diff --git a/xhandler-core/src/main/wasm/xhandler.wasm b/xhandler-core/src/main/wasm/xhandler.wasm index 88203400..fbf77819 100755 Binary files a/xhandler-core/src/main/wasm/xhandler.wasm and b/xhandler-core/src/main/wasm/xhandler.wasm differ