Closed luciatugui closed 4 months ago
Run & review this pull request in StackBlitz Codeflow.
Question: should we enforce some sort of CUI validation on organisation creation?
Some sort of enforcement would be available if we used ANAF's endpoints. I left more details in this issue: https://github.com/code4romania/onghub/issues/574
Regarding the ANAF endpoint subject of this issue, it seems that the actual problem is not the endpoint, but the fact the the CUI for the request does not exist.
ANAF does not return an error in this case, but we check further even if the req was successful to see if the data is synced. In case it is not synced, we show the error toast.
Question: should we enforce some sort of CUI validation on organisation creation?