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

<cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> siempre esta en 0 #51

Closed
abelnexus opened this issue Jan 11, 2019 · 5 comments
Closed
Labels

Comments

@abelnexus
Copy link

hola amigo, en todas mis facturas me bota este error:
captura

y al revisar el xml veo que en <cbc:TaxAmount currencyID="PEN">0.00</cbc:TaxAmount> siempre me da 0.00

captura3

@abelnexus
Copy link
Author

y estos son los valores
77

@giansalex
Copy link
Member

Que valor envias en el campo $invoice->setTotalImpuestos()

@abelnexus
Copy link
Author

envio el $importeIGV del total
$importe = trim($_POST['total']);
$importeIGV = Validar::calcular_igv($importe);
$gravadas = $importe - $importeIGV;

@giansalex
Copy link
Member

giansalex commented Jan 11, 2019

revisando la plantilla del xml, ese valor que esta en cero, proviene de $invoice->setTotalImpuestos(), revisa el valor que le estas asignando.

@abelnexus
Copy link
Author

efectivamente lo pase directamente y ya me aparece el valor, muchas gracias amigo

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

No branches or pull requests

2 participants