Skip to content

Fix Arabic locale currency parsing in accounting reports (OFBIZ-10155)#1240

Merged
dixitdeepak merged 1 commit into
apache:trunkfrom
dixitdeepak:OFBIZ-10155-number-format-exception
May 22, 2026
Merged

Fix Arabic locale currency parsing in accounting reports (OFBIZ-10155)#1240
dixitdeepak merged 1 commit into
apache:trunkfrom
dixitdeepak:OFBIZ-10155-number-format-exception

Conversation

@dixitdeepak

@dixitdeepak dixitdeepak commented May 22, 2026

Copy link
Copy Markdown
Contributor

Avoid pre-formatting invoice and payment amounts with NumberFormat before passing them to currency renderers. Keep values as BigDecimal so the existing currency display logic performs the final locale-aware formatting.

This prevents Arabic digits from being HTML-escaped into values such as ٢٠ and then failing BigDecimal parsing during report rendering.

While reviewing the report forms, I found two field-name mismatches around the same not-applied invoice value: one AP grid computes outstanding but displays amountToApply, and the AR form computes amountToApply but displays outstanding. Corrected those alongside the locale-formatting fix so the computed value is actually the one rendered.

Thanks Aditya Sharma for reporting the issue.

Avoid pre-formatting invoice and payment amounts with NumberFormat before
passing them to currency renderers. Keep values as BigDecimal so the
existing currency display logic performs the final locale-aware formatting.

This prevents Arabic digits from being HTML-escaped into values such as
٢٠ and then failing BigDecimal parsing during report rendering.
@dixitdeepak dixitdeepak merged commit b149bbe into apache:trunk May 22, 2026
5 checks passed
@dixitdeepak dixitdeepak deleted the OFBIZ-10155-number-format-exception branch May 22, 2026 12:02
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.

1 participant