Skip to content

fix(pos): resolve floating point decimal precision in product dialoge and pos sidebar item lists - #254

Draft
swafa-as wants to merge 1 commit into
developfrom
fix/pos-decimal-precision
Draft

fix(pos): resolve floating point decimal precision in product dialoge and pos sidebar item lists#254
swafa-as wants to merge 1 commit into
developfrom
fix/pos-decimal-precision

Conversation

@swafa-as

@swafa-as swafa-as commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Fixes an issue where float multiplication during item quantity calculations produced unrounded floating-point numbers (e.g., 6497.400000000001) in the Product Dialog and POS right sidebar cart list.

Key Changes
packages/core: Updated flt helper with standard float precision normalization to prevent JavaScript floating-point representation artifacts.
pos/OrderPanel: Applied flt(..., 2) to calculateItemTotal and cart grand total calculations.
pos/ProductDialog: Ensured product total display uses normalized float rounding and currency formatting.

@swafa-as
swafa-as marked this pull request as draft July 29, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants