Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate sumDsctoGlobal diff 0.00 and mtoOtrosTributos diff 0.00 #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yahyrparedes
Copy link

Error (2968): Debe contener un importe mayor a 0.00 si envía el tag cac:AllowanceCharge/cbc:Amount cbc:Amount: 0.00
<cbc:AllowanceTotalAmount currencyID="PEN">0.00</cbc:AllowanceTotalAmount>
<cbc:ChargeTotalAmount currencyID="PEN">0.00</cbc:ChargeTotalAmount>

@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -282,8 +282,12 @@
</cac:TaxTotal>
{% endif %}
<cac:LegalMonetaryTotal>
{% if doc.sumDsctoGlobal != 0.00 %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tal vez debería utilizarse como la validación de abajo, de modo que si no se settea el campo, no estará en el XML

{% if doc.sumDsctoGlobal is not null %}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola Gian podrias añadir esa validacion tambien para los montos de operacion_gravadas

@LeenhCraft
Copy link

a la fecha de 12 de octubre del 2023 al realizar una factura con descuento, sunat esta requeriendo esta etiqueta:
cbc:FreeOfChargeIndicatorfalse</cbc:FreeOfChargeIndicator>

pero grenter en su ejemplo no lo esta incluyendo, alguna sugerencia?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants