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

CAEA support #164

Draft
wants to merge 61 commits into
base: main
Choose a base branch
from
Draft

CAEA support #164

wants to merge 61 commits into from

Conversation

erebodino
Copy link
Contributor

Added CAEA support trying to do the minor changes possibles:

  1. 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).

  2. Modify some field over Receipt and ReceiptValidation perhaps is not the best approach but keeps everything very simple to understand.

  3. Added a new signal pre_saveattached to Receipt.save() to assign CAEA and receipt_number when necessary.

  4. Modified TaxPayer to incorporate new methods to consult/inform CAEA.

  5. Modified ReceiptQrCode to work with CAEA.

  6. Modified PDF generation to allow creation of PDF with CAEA (This receipts will be unvalidated at that moment).

  7. Added some tests to ensure that everything works as expected.

erebodino and others added 22 commits September 6, 2022 10:28
…an exepcion, added caea(boolen) field to ReceiptValidation
…ons numbers and modify arguments in serializers _caea to connect to afip
…dified _validate to process creation of ReceiptValidation
…dified _validate to process creation of ReceiptValidation.
django_afip/factories.py Outdated Show resolved Hide resolved
django_afip/factories.py Show resolved Hide resolved
django_afip/signals.py Outdated Show resolved Hide resolved
django_afip/signals.py Outdated Show resolved Hide resolved
django_afip/signals.py Outdated Show resolved Hide resolved
django_afip/signals.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
django_afip/models.py Show resolved Hide resolved
django_afip/pdf.py Outdated Show resolved Hide resolved
django_afip/serializers.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
)

def __str__(self):
return "POS:{}, with CAEA:{}, informed as without movement in {}".format(
Copy link
Owner

Choose a reason for hiding this comment

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

How do we confirm if a Caea with movements has been informed to AFIP?

django_afip/factories.py Outdated Show resolved Hide resolved
django_afip/factories.py Outdated Show resolved Hide resolved
django_afip/factories.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
django_afip/models.py Outdated Show resolved Hide resolved
@WhyNotHugo
Copy link
Owner

Thanks for your patience on this one!

@erebodino erebodino marked this pull request as draft February 12, 2023 14:24
@WhyNotHugo WhyNotHugo mentioned this pull request Jul 25, 2023
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.

None yet

2 participants