From fa844e4e19784e70a2d089aa3d3f5e8785d7f77d Mon Sep 17 00:00:00 2001 From: Jhamner Sifuentes Vasquez Date: Fri, 26 Jul 2024 22:06:49 -0500 Subject: [PATCH] =?UTF-8?q?Verificar=20los=20montos=20cuando=20son=200.00?= =?UTF-8?q?=20no=20se=20a=C3=B1adia=20el=20taxsubtotal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/xml/src/Xml/Templates/invoice2.1.xml.twig | 10 +++++----- packages/xml/src/Xml/Templates/summary.xml.twig | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/xml/src/Xml/Templates/invoice2.1.xml.twig b/packages/xml/src/Xml/Templates/invoice2.1.xml.twig index 71fbd814..72c66b74 100644 --- a/packages/xml/src/Xml/Templates/invoice2.1.xml.twig +++ b/packages/xml/src/Xml/Templates/invoice2.1.xml.twig @@ -308,7 +308,7 @@ {% endif %} - {% if doc.mtoOperGravadas %} + {% if doc.mtoOperGravadas is not null %} {{ doc.mtoOperGravadas|n_format }} {{ doc.mtoIGV|n_format }} @@ -321,7 +321,7 @@ {% endif %} - {% if doc.mtoOperInafectas %} + {% if doc.mtoOperInafectas is not null %} {{ doc.mtoOperInafectas|n_format }} 0 @@ -334,7 +334,7 @@ {% endif %} - {% if doc.mtoOperExoneradas %} + {% if doc.mtoOperExoneradas is not null %} {{ doc.mtoOperExoneradas|n_format }} 0 @@ -347,7 +347,7 @@ {% endif %} - {% if doc.mtoOperGratuitas %} + {% if doc.mtoOperGratuitas is not null %} {{ doc.mtoOperGratuitas|n_format }} {{ doc.mtoIGVGratuitas|n_format }} @@ -360,7 +360,7 @@ {% endif %} - {% if doc.mtoOperExportacion %} + {% if doc.mtoOperExportacion is not null %} {{ doc.mtoOperExportacion|n_format }} 0 diff --git a/packages/xml/src/Xml/Templates/summary.xml.twig b/packages/xml/src/Xml/Templates/summary.xml.twig index e5bd2718..ca8260f5 100644 --- a/packages/xml/src/Xml/Templates/summary.xml.twig +++ b/packages/xml/src/Xml/Templates/summary.xml.twig @@ -68,13 +68,13 @@ {{ det.estado }} {{ det.total|n_format }} - {% if det.mtoOperGravadas %} + {% if det.mtoOperGravadas is not null %} {{ det.mtoOperGravadas|n_format }} 01 {% endif %} - {% if det.mtoOperExoneradas %} + {% if det.mtoOperExoneradas %} {{ det.mtoOperExoneradas|n_format }} 02