mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-25 10:21:36 -04:00
* Fix DECIMAL attribute not respecting locale format Issue: DECIMAL attribute values were displayed as raw database values instead of being formatted according to the user's locale settings. Fix: 1. Modified Attribute::get_definitions_by_flags() to optionally return definition types along with names (new $include_types parameter) 2. Updated expand_attribute_values() in tabular_helper.php to detect DECIMAL attributes and apply to_decimals() locale formatting 3. Updated callers (Reports, Items table) to pass include_types=true where attributes are displayed The DECIMAL values in table views (items, sales reports, receiving reports) now respect the configured locale number format, matching DATE attributes which already use locale-based formatting. * Apply PSR-12 camelCase naming to new variables Response to PR review comments: - Rename to - Rename to - Rename to --------- Co-authored-by: Ollama <ollama@steganos.dev>