mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-10 08:45:42 -04:00
Root cause: In postCheckNumberLocale(), when number_locale differed from save_number_locale (which happens during form typing/validation), the code ignored user-provided currency values and always used locale defaults. For example: - User sets currency_code to "CRC" (Costa Rica Colon) - checkNumberLocale is called with save_number_locale from hidden field - If locale values don't match, original code overwrites with locale defaults - This caused CRC to revert to the default currency for that locale (EUR, LAK, etc.) Fix: Always respect user-provided currency_symbol and currency_code values when they are non-empty, regardless of whether locale changed or not. Fixes #4494 Co-authored-by: Ollama <ollama@steganos.dev>