Here are the tables of the conceptual DES-IF version 2.3 from ABRASF
It contains the following models:
- Service Item - List of services from Complementary law 116/2003
- Tax Codes - List of tax codes from DES-IF
- Cities - List of Cities from IBGE
- City Tax Codes - Tax codes from City (without seed)
Run the bundle command to install it.
After you install add it to your Gemfile, you need to run the migration:
After the migration, you need to run the following task to load the seeds:
There is a task to seed an default Tax Code for the city, to call it is necessary to inform the IBGE city code.
You can also use this feature calling the following code:
validate uniqueness (tax_code) in city tax code scoped by city and date interval (since-expiry = date interval)
validate period valid in city tax code expiry date should be greater than since date