Openbravo Issue Tracking System - Retail Modules | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0027922 | Retail Modules | Web POS | public | 2014-10-20 23:40 | 2014-10-27 13:05 |
| Reporter | jecharri | ||||
| Assigned To | marvintm | ||||
| Priority | immediate | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | migueldejuana | ||||
| OBNetwork customer | OBPS | ||||
| Support ticket | 31875 | ||||
| Regression level | Production - Confirmed Stable | ||||
| Regression date | 2014-05-17 | ||||
| Regression introduced in release | RR14Q2 | ||||
| Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e7c8bb410309 [^] | ||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0027922: You will receive errors in Web POS if you work with created Currency | ||||
| Description | You will receive errors in Web POS if you work with created Currency The problem happens when you insert a new value in currency window and you use it in Web POS | ||||
| Steps To Reproduce | -Create a new currency and configure a terminal with that currency You will receive error: Uncaught TypeError: Cannot read property 'getFinancialAmountOf' of undefined 1ba93fe1eda59989e009edf875db1766_OBMOBCR.js:19193OB.UTIL.currency.toDefaultCurrency 1ba93fe1eda59989e009edf875db1766_OBMOBCR.js:19193OB.UTIL.calculateCurrentCash.OB.Dal.find.OB.Dal.find._.each.OB.Dal.find.me 1ba93fe1eda59989e009edf875db1766_OBMOBCR.js:21376(anonymous function) The problem is function toDefaultCurrency: function (fromCurrencyId, amount) { and line fromCurrencyId = parseInt(fromCurrencyId, 10); The problem is that when you create a new currency, the currency_id is not a number as it happens in the Openbravo sampledata, so when it tries to convert to int something that it is an Id you will receive NaN error. | ||||
| Proposed Solution | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2014-10-20 23:40 | jecharri | New Issue | |||
| 2014-10-20 23:40 | jecharri | Assigned To | => marvintm | ||
| 2014-10-20 23:40 | jecharri | OBNetwork customer | => Yes | ||
| 2014-10-20 23:40 | jecharri | Support ticket | => 31875 | ||
| 2014-10-20 23:40 | jecharri | Resolution time | => 1414015200 | ||
| 2014-10-20 23:40 | jecharri | Regression level | => Production - Confirmed Stable | ||
| 2014-10-20 23:40 | jecharri | Regression date | => 2014-05-17 | ||
| 2014-10-20 23:40 | jecharri | Regression introduced in release | => RR14Q2 | ||
| 2014-10-20 23:40 | jecharri | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e7c8bb410309 [^] | ||
| 2014-10-20 23:40 | jecharri | Triggers an Emergency Pack | => No | ||
| 2014-10-21 10:51 | caristu | Issue Monitored: caristu | |||
| 2014-10-22 09:48 | hgbot | Checkin | |||
| 2014-10-22 09:48 | hgbot | Note Added: 0071111 | |||
| 2014-10-22 09:48 | hgbot | Status | new => resolved | ||
| 2014-10-22 09:48 | hgbot | Resolution | open => fixed | ||
| 2014-10-22 09:48 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9d640fb98a34911d1c7e8ac50422b09bbded8e63 [^] | ||
| 2014-10-27 11:40 | Orekaria | Issue Monitored: guillermogil | |||
| 2014-10-27 13:05 | migueldejuana | Review Assigned To | => migueldejuana | ||
| 2014-10-27 13:05 | migueldejuana | Note Added: 0071193 | |||
| 2014-10-27 13:05 | migueldejuana | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||