Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033227Retail ModulesWeb POSpublic2016-06-13 10:562016-06-23 19:18
aaroncalero 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
marvintm
No
0033227: [SERQA 1275] Exception removing ticket after locking screen
If the Web POS Save Removed Tickets preference is enabled, if the user locks the pos with an open ticket which contains a line of price 0, when the user logs in again and tries to remove the ticket, a javascript exception is raised and the ticket is not removed.
Also as a consequence of that exception the calculateReceipt never finishes.
Login in backend, go to the Preference window and configure the following preference:
Web POS Save Removed Tickets with value Y.

Login in webpos and create an empty ticket.
Add an Avalanche Transceiver.
Change the price of the Avalanche Transceiver to 0.00.
Go to the Menu > Online > Lock Screen
Log in again with the same user.
The previous ticket appears on screen again. Try to remove the ticket.

Result: The ticket is not removed, and the following error appears on the browser console:
bigdecimal-1.0.1.min.js:14 Uncaught BigDecimal(): Not a number: [,o,b,j,e,c,t, ,O,b,j,e,c,t,]
SER-QA
Issue History
2016-06-13 10:56aaroncaleroNew Issue
2016-06-13 10:56aaroncaleroAssigned To => Retail
2016-06-13 10:56aaroncaleroResolution time => 1466978400
2016-06-13 10:56aaroncaleroTriggers an Emergency Pack => No
2016-06-13 11:42aaroncaleroTag Attached: SER-QA
2016-06-13 11:43aaroncaleroSummaryException removing ticket after locking screen => [SERQA 1275] Exception removing ticket after locking screen
2016-06-14 15:52marvintmStatusnew => acknowledged
2016-06-15 04:04ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-06-15 04:04ranjith_qualiantech_comStatusacknowledged => scheduled
2016-06-15 08:01hgbotCheckin
2016-06-15 08:01hgbotNote Added: 0087277
2016-06-15 08:01hgbotCheckin
2016-06-15 08:01hgbotNote Added: 0087278
2016-06-15 08:01hgbotStatusscheduled => resolved
2016-06-15 08:01hgbotResolutionopen => fixed
2016-06-15 08:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/33cef587add49b50e76bb9f67852551275bd1ffa [^]
2016-06-22 09:09marvintmReview Assigned To => mtaal
2016-06-23 19:18marvintmReview Assigned Tomtaal => marvintm
2016-06-23 19:18marvintmStatusresolved => closed

Notes
(0087277)
hgbot   
2016-06-15 08:01   
Repository: tools/automation/pi-mobile
Changeset: 7803067d6892202767039cb744aa396109c6aaac
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jun 15 11:30:22 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/7803067d6892202767039cb744aa396109c6aaac [^]

Verifies issue 33227 : Added automated test 'I33227_VerifyReceiptAfterLockScreen'

---
A src-test/org/openbravo/test/mobile/quarantine/pack/RAN/system/I33227_VerifyReceiptAfterLockScreen.java
---
(0087278)
hgbot   
2016-06-15 08:01   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 33cef587add49b50e76bb9f67852551275bd1ffa
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jun 15 11:30:29 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/33cef587add49b50e76bb9f67852551275bd1ffa [^]

Fixes issue 33227 : Replacing Bigdecimal with OB.Dec

- In Tax Calculation, number(OB.Dec.One) has to be assigned to "linerate" instead of BigDecimal.prototype.ONE
- Value has to be assigned to "linerate" instead of object

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---