Sanmill icon indicating copy to clipboard operation
Sanmill copied to clipboard

Store different default rules for special country and region

Open calcitem opened this issue 2 years ago • 2 comments

Getting special country and region values ​​is essentially to configure different default settings for different countries, mainly rule settings.

My idea is to establish a mapping relationship between special countries and regions and default values ​​and store them in the map. I don’t know if it’s better to save to local data storage?

calcitem avatar Oct 19 '21 13:10 calcitem

You could extend the normal Settings object with SpecialSettings and then use the new calss as a default.

I think inheritance is the way to go with that.

Leptopoda avatar Oct 27 '21 15:10 Leptopoda

After your refactoring, it is more convenient to realize this function!

calcitem avatar Oct 27 '21 15:10 calcitem