Skip to content

Commit

Permalink
Merge pull request #239 from Jhamnerx/master-dev
Browse files Browse the repository at this point in the history
Verificar los montos cuando son 0.00 no se añadia el taxsubtotal
  • Loading branch information
giansalex authored Jul 27, 2024
2 parents 14e3be0 + fa844e4 commit 5655e6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/xml/src/Xml/Templates/invoice2.1.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
</cac:TaxCategory>
</cac:TaxSubtotal>
{% endif %}
{% if doc.mtoOperGravadas %}
{% if doc.mtoOperGravadas is not null %}
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoOperGravadas|n_format }}</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoIGV|n_format }}</cbc:TaxAmount>
Expand All @@ -321,7 +321,7 @@
</cac:TaxCategory>
</cac:TaxSubtotal>
{% endif %}
{% if doc.mtoOperInafectas %}
{% if doc.mtoOperInafectas is not null %}
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoOperInafectas|n_format }}</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="{{ doc.tipoMoneda }}">0</cbc:TaxAmount>
Expand All @@ -334,7 +334,7 @@
</cac:TaxCategory>
</cac:TaxSubtotal>
{% endif %}
{% if doc.mtoOperExoneradas %}
{% if doc.mtoOperExoneradas is not null %}
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoOperExoneradas|n_format }}</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="{{ doc.tipoMoneda }}">0</cbc:TaxAmount>
Expand All @@ -347,7 +347,7 @@
</cac:TaxCategory>
</cac:TaxSubtotal>
{% endif %}
{% if doc.mtoOperGratuitas %}
{% if doc.mtoOperGratuitas is not null %}
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoOperGratuitas|n_format }}</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoIGVGratuitas|n_format }}</cbc:TaxAmount>
Expand All @@ -360,7 +360,7 @@
</cac:TaxCategory>
</cac:TaxSubtotal>
{% endif %}
{% if doc.mtoOperExportacion %}
{% if doc.mtoOperExportacion is not null %}
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="{{ doc.tipoMoneda }}">{{ doc.mtoOperExportacion|n_format }}</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="{{ doc.tipoMoneda }}">0</cbc:TaxAmount>
Expand Down
4 changes: 2 additions & 2 deletions packages/xml/src/Xml/Templates/summary.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
<cbc:ConditionCode>{{ det.estado }}</cbc:ConditionCode>
</cac:Status>
<sac:TotalAmount currencyID="{{ doc.moneda }}">{{ det.total|n_format }}</sac:TotalAmount>
{% if det.mtoOperGravadas %}
{% if det.mtoOperGravadas is not null %}
<sac:BillingPayment>
<cbc:PaidAmount currencyID="{{ doc.moneda }}">{{ det.mtoOperGravadas|n_format }}</cbc:PaidAmount>
<cbc:InstructionID>01</cbc:InstructionID>
</sac:BillingPayment>
{% endif %}
{% if det.mtoOperExoneradas %}
{% if det.mtoOperExoneradas %}
<sac:BillingPayment>
<cbc:PaidAmount currencyID="{{ doc.moneda }}">{{ det.mtoOperExoneradas|n_format }}</cbc:PaidAmount>
<cbc:InstructionID>02</cbc:InstructionID>
Expand Down

0 comments on commit 5655e6f

Please sign in to comment.