invopop / gobl

Go Business Language
Apache License 2.0
80 stars 5 forks source link

Update Tax ID validations in CO #236

Closed cavalle closed 7 months ago

cavalle commented 8 months ago
cavalle commented 7 months ago

I'm not sure about this one... doesn't this imply that GOBL user's must know that the code for end-customers should be 2222...? Also, what happens in the case of simplified invoices when the customer object is missing?

@samlown For the final customer case, the Plemsi provider supports both providing an explicit customer with the 222… code (and without a zone) or excluding the customer and using the simplified tax tag. This last option was added later and we have one client that built its integration before it that is still using the 222… code explicitly. We can totally remove support for the explicit case: we'd just need to coordinate with the client to migrate (or implementing some internal normalisation).

I don't have a strong opinion, I think it's fine to keep supporting both, although I also see the appeal of keeping things simple and consistent supporting just the simplified case. Let me know what you think.

samlown commented 7 months ago

Okay, not a concern then if we have support for both 👍