Country drop-down should automatically select the Default Country.
Version
1.12.8
What browsers are you seeing the problem on?
This problem isn't browser related
What happened?
The country drop-downs are currently selecting the first entry in the list instead of the default country.
For instance, my company’s default country is Myanmar (MM), but the country drop-down in the Contact > Company and Person sections doesn’t select Myanmar when the page loads. Consequently, I have to scroll through a lengthy list of countries to find Myanmar every time I add a new contact.
What should have happened?
All the country drop-downs in LedgerSMB should automatically select the default country.
Thanks @aungzwin10 I've been doing some work in this area and plan to address this for 1.13
@nick-prater I've been thinking we need a Pinia store or lsmbConfig value which the drop down can look at if no other value is provided for the drop-down. Would that make sense?
Investigated what it takes to make this happen. There's a discrepancy between the country value the SQL API (which wants an integer) and the web service API (which uses 2-character strings) to identify countries. We need to decide whether to change over the SQL api as a whole at once, whether we want to keep these apis different or that we want to migrate bit-by-bit.