Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0027922 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2014-10-20 23:40 | 2014-10-27 13:05 | |||
Reporter | jecharri | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 9d640fb98a34 | ||||
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 | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0071111) hgbot (developer) 2014-10-22 09:48 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 9d640fb98a34911d1c7e8ac50422b09bbded8e63 Author: Rafa Alonso <rafael.alonso <at> openbravo.com> Date: Wed Oct 22 09:48:01 2014 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9d640fb98a34911d1c7e8ac50422b09bbded8e63 [^] Fixes issue 27922: The 'currencyId' in OB.UTIL.currency is not enforced to be an 'int' The problem was that the new ids are uuids and the webpos sampledata used 'int's, so the code was develop assuming there would be 'int's - the ids are normalized to 'String's - the argument checks use the OB.UTIL.Debug.isDefined method - removed 'DEVELOPER' --- M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js --- |
(0071193) migueldejuana (viewer) 2014-10-27 13:05 |
Tested and reviewed in d308fc27eca9 |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |