Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow regional model updates #266

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

18alantom
Copy link
Member

Added minor implementation for regional updates.

For any Model whose schema differs on the basis or region:

  1. Set regional: 1 in the Model.js file.
  2. Add a RegionalChange.js in the Model folder.
  3. This fill will have a function that takes in an object having regional parameters such as country and returns the augmented Model.

For an example check Party, if country is "India", Party will have GST based information set on in, else it will have a field called Tax ID.

@18alantom 18alantom merged commit 14ce1e8 into frappe:master Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant