Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032655Retail ModulesWeb POSpublic2016-04-12 16:552016-04-26 13:18
aaroncalero 
mario_castello 
highmajorsometimes
closedfixed 
5
 
 
migueldejuana
No
0032655: [SER QA 892] Use Credit doesn't work after locking screen or reloading the application
If the application is refreshed or the user locks the screen and logs in again, it is not possible to pay a ticket with credit unless the business partner is reassigned to the ticket.
Login in a terminal which allows to pay using credit[1]
Create an empty ticket, add any product, and assign a customer who can use credit[2]
Click on the total amount button and verify that the Use Credit button is visible.
Go to the Menu > Online > Lock Screen
Login again with the same user and verify that the previous receipt is loaded.
Click on the total amount button to pay again
Click on the Use Credit button
On the 'Credit will be used' popup, click on 'Yes, use credit'
Verify that the receipt is not synchronized.
Verify on the browser console that the following error is logged:
2394a1a…_WebPOS.js:2605 ; line: Object.OB.UTIL.showError (https://livebuilds.openbravo.com/retail_pi_pgsql/web/js/gen/2394a1abb2535563cf2cf2d539f89724_WebPOS.js:10434:6 [^]) (*,+)processConsoleLevel @ 2394a1a…_WebPOS.js:2605
2394a1a…_WebPOS.js:3689 Uncaught OB.Dal.getTableName: the model has not been initialized

[1] It can be configured on the POS Terminal Type window, checking the "Allow Pay on Credit" checkbox.
[2] Credit usage can be allowed in the Business Partner window, setting the Credit Line Limit value to something greater that 0

The customer Carl Studson on the following terminal:
https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=CMS-1#retail.pointofsale [^]
is preconfigured to use credit.
SER-QA
Issue History
2016-04-12 16:55aaroncaleroNew Issue
2016-04-12 16:55aaroncaleroAssigned To => Retail
2016-04-12 16:55aaroncaleroTriggers an Emergency Pack => No
2016-04-12 18:33OrekariaStatusnew => acknowledged
2016-04-12 18:33OrekariaStatusacknowledged => scheduled
2016-04-12 18:34OrekariaStatusscheduled => resolved
2016-04-12 18:34OrekariaResolutionopen => fixed
2016-04-12 18:34OrekariaStatusresolved => new
2016-04-12 18:34OrekariaResolutionfixed => open
2016-04-15 11:09VictorVillarResolution time => 1461621600
2016-04-15 11:33OrekariaStatusnew => acknowledged
2016-04-15 14:48VictorVillarTag Attached: SER-QA
2016-04-15 14:51VictorVillarSummaryUse Credit doesn't work after locking screen or reloading the application => [SER QA 892] Use Credit doesn't work after locking screen or reloading the application
2016-04-18 18:11mario_castelloAssigned ToRetail => mario_castello
2016-04-18 18:11mario_castelloStatusacknowledged => scheduled
2016-04-21 16:24hgbotCheckin
2016-04-21 16:24hgbotNote Added: 0085839
2016-04-21 16:24hgbotStatusscheduled => resolved
2016-04-21 16:24hgbotResolutionopen => fixed
2016-04-21 16:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/87c579f53d5d1921c951d6e4d96822cd25917662 [^]
2016-04-21 16:41mario_castelloNote Added: 0085840
2016-04-23 17:18hgbotCheckin
2016-04-23 17:18hgbotNote Added: 0085937
2016-04-26 13:18migueldejuanaReview Assigned To => migueldejuana
2016-04-26 13:18migueldejuanaNote Added: 0085985
2016-04-26 13:18migueldejuanaStatusresolved => closed

Notes
(0085839)
hgbot   
2016-04-21 16:24   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 87c579f53d5d1921c951d6e4d96822cd25917662
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Mon Apr 18 11:16:39 2016 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/87c579f53d5d1921c951d6e4d96822cd25917662 [^]

Fixed issue 32655: Replaced Backbone.Model by OB.Model.BusinessPartner in order.js

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0085840)
mario_castello   
2016-04-21 16:41   
When the order set the attributes use Backbone.Model to create the Business Partner object.
Sometimes this object loses the reference to the modelName and can not save the information in Web Pos.
(0085937)
hgbot   
2016-04-23 17:18   
Repository: tools/automation/pi-mobile
Changeset: e04303c03e8bce002221e14977225dcf424194d7
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Sat Apr 23 09:18:27 2016 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/e04303c03e8bce002221e14977225dcf424194d7 [^]

Related to issue 32655: Added automated test

---
A src-test/org/openbravo/test/mobile/quarantine/pack/MCA/receipts/I32655_ReceiptChangeBPPayWithCredit.java
---
(0085985)
migueldejuana   
2016-04-26 13:18   
Tested and reviewed in a003f89753a6