frappe / books

Free Accounting Software
https://frappe.io/books
GNU Affero General Public License v3.0
2.68k stars 614 forks source link

Add regional schema for Switzerland #769

Closed digitalentity closed 7 months ago

digitalentity commented 8 months ago

Fixes #768, allowes to specify Tax ID (VAT number) if country is Switzerland, propagates the taxId attribute to print object to be usable in the print templates.

digitalentity commented 7 months ago

EU is a bit more complicated, but EU countries may benefit from a shared regional schema, but that schema will likely be different than Swiss (VAT numbers are not the same format).

mildred commented 7 months ago

Can you run the linter over the sources files, and perhaps remove the currency quick edit field?

Files needing linting:

[warn] schemas/regional/ch/AccountingSettings.json
[warn] schemas/regional/index.ts

command to run:

npx prettier -w schemas
digitalentity commented 7 months ago

Done, also squashed the commits