Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | ||||||||||||
| 0038745 | ||||||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| design defect | [Retail Modules] Web POS | major | always | 2018-06-13 09:12 | 2018-06-13 09:15 | |||||||
| Reporter | guillermogil | View Status | public | |||||||||
| Assigned To | Retail | |||||||||||
| Priority | high | Resolution | open | Fixed in Version | ||||||||
| Status | new | Fix in branch | Fixed in SCM revision | |||||||||
| Projection | none | ETA | none | Target Version | ||||||||
| OS | Any | Database | Any | Java version | ||||||||
| OS Version | Database version | Ant version | ||||||||||
| Product Version | SCM revision | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0038745: In case currencyFormat is set a precision 0 foreign currency precision should override it | |||||||||||
| Description | In case currencyFormat is set a precision 0 foreign currency precision should override it. | |||||||||||
| Steps To Reproduce | - Configure Format.xml with 2 decimals - Configure currency format as 0 decimals - Set EUR currency as precision 0 - Set USD currency as precision 2 Login on WebPOS Add a product Pay with USD We have lost all that information | |||||||||||
| Proposed Solution | In will be needed to add a new parameter in OB.I18N.formatCurrency to send the precision of the currency. e.g.- OB.I18N.formatCurrency = function (number, precision) { var maskNumeric = OB.Format.formats.priceInform, decSeparator = OB.Format.defaultDecimalSymbol, groupSeparator = OB.Format.defaultGroupingSymbol, groupInterval = OB.Format.defaultGroupingSize; if (precision) { var maskNumericSplitted = maskNumeric.split('.'); if (maskNumericSplitted.length = 1 || maskNumericSplitted[1].length !== precision) { if (precision > 0) { maskNumeric = maskNumericSplitted[0] + '.' + ''.padStart(precision, 0); } else { maskNumeric = maskNumericSplitted[0]; } } } maskNumeric = maskNumeric.replace(',', 'dummy').replace('.', decSeparator).replace('dummy', groupSeparator); return OB.Utilities.Number.JSToOBMasked(number, maskNumeric, decSeparator, groupSeparator, groupInterval); }; | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||
|
||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2018-06-13 09:12 | guillermogil | New Issue | |
| 2018-06-13 09:12 | guillermogil | Assigned To | => Retail |
| 2018-06-13 09:12 | guillermogil | OBNetwork customer | => No |
| 2018-06-13 09:12 | guillermogil | Triggers an Emergency Pack | => No |
| 2018-06-13 09:12 | guillermogil | Relationship added | related to 0038743 |
| 2018-06-13 09:15 | guillermogil | Proposed Solution updated | |
| Copyright © 2000 - 2009 MantisBT Group |