WhyNotHugo/django-afip

Points of sales are incorrectly saved as blocked

Alvezgr opened this issue · 2 comments

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

"blocked": pos_data.Bloqueado == "N",

It shouldn't be python "blocked": pos_data.Bloqueado == "S" ?

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.

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