django-afip
django-afip copied to clipboard
CAEA support
Added CAEA support trying to do the minor changes possibles:
-
Created 3 models to keep track over CAEA: - Caea itself. - InformedCaea ( to keep track over the CAEAs without operations informed to AFIP). - CaeaCounter (to keep track over the number of the receipt created, since this number will be used when AFIP is offline so we must set it before send it).
-
Modify some field over
ReceiptandReceiptValidationperhaps is not the best approach but keeps everything very simple to understand. -
Added a new signal
pre_saveattached toReceipt.save()to assign CAEA andreceipt_numberwhen necessary. -
Modified
TaxPayerto incorporate new methods to consult/inform CAEA. -
Modified
ReceiptQrCodeto work with CAEA. -
Modified PDF generation to allow creation of PDF with CAEA (This receipts will be unvalidated at that moment).
-
Added some tests to ensure that everything works as expected.
Thanks for your patience on this one!