From 91da39849e679bdb4f9517f062972b866365e0e9 Mon Sep 17 00:00:00 2001 From: Yahyr Paredes Arteaga Date: Wed, 15 Sep 2021 01:22:09 -0500 Subject: [PATCH] validate sumDsctoGlobal diff 0.00 and mtoOtrosTributos diff 0.00 --- packages/xml/src/Xml/Templates/invoice2.0.xml.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/xml/src/Xml/Templates/invoice2.0.xml.twig b/packages/xml/src/Xml/Templates/invoice2.0.xml.twig index 28eaa6dd..fff78b92 100644 --- a/packages/xml/src/Xml/Templates/invoice2.0.xml.twig +++ b/packages/xml/src/Xml/Templates/invoice2.0.xml.twig @@ -282,8 +282,12 @@ {% endif %} + {% if doc.sumDsctoGlobal != 0.00 %} {{ doc.sumDsctoGlobal|default(0)|n_format }} + {% endif %} + {% if doc.mtoOtrosTributos != 0.00 %} {{ doc.mtoOtrosTributos|default(0)|n_format }} + {% endif %} {% if doc.totalAnticipos is not null %}{{ doc.totalAnticipos|n_format }}{% endif %} {{ doc.mtoImpVenta|n_format }}