Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028700Retail ModulesWeb POSpublic2015-01-20 16:372015-02-19 08:56
plujan 
Osmany 
normalminorhave not tried
closedfixed 
5
main 
 
migueldejuana
No
0028700: Opening main screen after logging out with pending receipts is not correct
Before paying some receipts I logged out. When back logging in, the main screen is shown in an intermediate state between a blank receipt and a ready-to-paid one.

This happens in RR15Q1RC2. On RR14Q3.5 and RR14Q4 it is also failing but in a different way, stuck in the Loading... message after logging.
1. Login in as vallblanca user
2. Create an order for a Backpack 27L (do not pay it)
3. Create an order for a base camp duffel (do not pay it)
4. Go to "Pay Open Tickets" menu option
5. Seek for the two created tickets, select them and click Done
6. Back on the main screen, click the total amount to pay it
7. Select Card as form of payment and enter a value that is higher than the amount to pay.
8. Pay it. A pop up message about overpaying is shown.
9. Cancel that message
10. Click the logout option from the top left menu. A message about loosing pending tickets is shown.
11. Back in the login screen, enter again as vallblanca.

Observed behaviour in RR15Q1RC2: Main screen remains partially as it was before logging out (see screenshot)

Observed behaviour in RR14Q4: Logging gets stucked in Loading screen
Web console message shows:
OB.Dal: a success callback threw an exception; Cannot set property 'selectedPayment' of null; "function (){me.updateSession(user);if(callback){callback();}}"; at Object.enyo.kind.dispatch

Observed behaviour in RR14Q3.5: Logging gets stucked in Loading screen. Web console message shows:
 Exception raised in DAL callback. TypeError: Cannot set property 'selectedPayment' of null
No tags attached.
png LoggingInCancellingReceipts.png (75,143) 2015-01-20 16:37
https://issues.openbravo.com/file_download.php?file_id=7719&type=bug
png
Issue History
2015-01-20 16:37plujanNew Issue
2015-01-20 16:37plujanAssigned To => marvintm
2015-01-20 16:37plujanFile Added: LoggingInCancellingReceipts.png
2015-01-20 16:37plujanTriggers an Emergency Pack => No
2015-02-10 15:57OsmanyAssigned Tomarvintm => Osmany
2015-02-12 16:08hgbotCheckin
2015-02-12 16:08hgbotNote Added: 0074434
2015-02-12 16:08hgbotStatusnew => resolved
2015-02-12 16:08hgbotResolutionopen => fixed
2015-02-12 16:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cc993ed9e4c1d0a6763785bba626a6225d718781 [^]
2015-02-19 08:56migueldejuanaReview Assigned To => migueldejuana
2015-02-19 08:56migueldejuanaNote Added: 0074629
2015-02-19 08:56migueldejuanaStatusresolved => closed

Notes
(0074434)
hgbot   
2015-02-12 16:08   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: cc993ed9e4c1d0a6763785bba626a6225d718781
Author: Osmany Garcia Machado <osmany.machado <at> peoplewalking.com>
Date: Thu Feb 12 09:07:29 2015 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cc993ed9e4c1d0a6763785bba626a6225d718781 [^]

Fixed issue 28700: Opening main screen after logging out with pending receipts is not corrects.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0074629)
migueldejuana   
2015-02-19 08:56   
Tested and reviewed in 260e72a513b6