WhyNotHugo / django-afip

⚖️ AFIP invoice integration for django.
https://django-afip.readthedocs.io/
ISC License
48 stars 24 forks source link

Points of sales are incorrectly saved as blocked #138

Closed Alvezgr closed 2 years ago

Alvezgr commented 2 years ago

I'm recently fetched all point of sales from AFIP for a given taxpayer and all of them appear blocked, although I didn't found where the blocked field for PointOfSales model is being used, I'm wondering if the following line it's causing this confusion https://github.com/WhyNotHugo/django-afip/blob/ce6229c8c9d41f998022b4e5bd7426cbcac71b86/django_afip/models.py#L486 It shouldn't be python "blocked": pos_data.Bloqueado == "S" ?

WhyNotHugo commented 2 years ago

Yes, you're quite right. Do you want to send a PR fixing this?

Nothing has broken so far because we don't use this field; it's merely informative.

Alvezgr commented 2 years ago

Thanks! I'll close this issue and send you a PR.

141