Commit b149bbe
authored
Fix Arabic locale currency parsing in accounting reports (OFBIZ-10155) (#1240)
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.
Thanks Aditya Sharma for reporting the issue.1 parent ea059ea commit b149bbe
4 files changed
Lines changed: 9 additions & 27 deletions
File tree
- applications/accounting/widget
- ap/forms
- ar/forms
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 753 | + | |
| 754 | + | |
759 | 755 | | |
760 | 756 | | |
761 | 757 | | |
| |||
783 | 779 | | |
784 | 780 | | |
785 | 781 | | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
| 782 | + | |
| 783 | + | |
792 | 784 | | |
793 | 785 | | |
794 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | | - | |
| 172 | + | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 36 | + | |
| 37 | + | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
| 38 | + | |
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
| |||
0 commit comments