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

GENERAR NOTA DE CREDITOS A UNA BOLETA YA EMITIDA #140

Closed
guillermosg28 opened this issue Aug 27, 2020 · 2 comments
Closed

GENERAR NOTA DE CREDITOS A UNA BOLETA YA EMITIDA #140

guillermosg28 opened this issue Aug 27, 2020 · 2 comments
Labels

Comments

@guillermosg28
Copy link

Hola como puedo generar una nota de credito a una boleta ya emitida ? Gracias de antemano.

@thefantas
Copy link
Member

thefantas commented Aug 29, 2020

https://github.com/thegreenter/demo/blob/master/examples/nota-credito.php

Tienes que editar la parte del envío (como es para resumen, NO se envía directamente a la sunat.
Genera el PDF, XML y luego envía resumen como de costumbre :D.

$pdf = $util->getPdf($note);
$util->writeFile($tmp_note.'.pdf', $pdf);
$xml = $see->getXmlSigned($note);
$util->writeXml($note, $xml, true);

Solo pon los parámetros para generar tu "BC01-00000001", recuerda que tanto boletas como sus notas de crédito o débito se envían como resumen.

Saludos.

@giansalex
Copy link
Member

Se incluyó un ejemplo de NCR en nota-credito-boleta.php, acerca del envío a SUNAT, según esta resolución art. 12, no es necesariamente obligatorio enviarlo por resumen diario, podría enviarse individualmente como se hace con facturas, pero tener en cuenta que no debe superar los 5 días después de la emisión.

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

3 participants