LedgerSMB icon indicating copy to clipboard operation
LedgerSMB copied to clipboard

Country drop-down should automatically select the Default Country.

Open aungzwin10 opened this issue 8 months ago • 3 comments

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.

Image

Image

What should have happened?

All the country drop-downs in LedgerSMB should automatically select the default country.

aungzwin10 avatar May 02 '25 03:05 aungzwin10

Thanks @aungzwin10 I've been doing some work in this area and plan to address this for 1.13

nick-prater avatar May 02 '25 06:05 nick-prater

@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?

ehuelsmann avatar May 29 '25 14:05 ehuelsmann

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.

ehuelsmann avatar Sep 05 '25 19:09 ehuelsmann