Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037730Retail ModulesWeb POSpublic2018-01-25 14:132018-02-05 11:47
umartirena 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR18Q2 
marvintm
No
0037730: Web POS breaks under certain circumstances
Web POS breaks under certain circumstances
In http://livebuilds.openbravo.com/retail_pi_pgsql: [^]
 * Go to Product window and search for 'GPS Mini'
    - Set the product as 'Grouped Product = 'N''
 * Search for 'Warranty (not deferrable)'
    - Set the product as 'Grouped Product = 'N''
    - Set the product as 'Quantity Rule = 'As per product''
    - Set the product as 'Is Price Rule Based = 'Y''
    - In 'Price Rule Version' tab set a '20%' Service Price Rule starting from the beggining of current month.
* Go to POS Terminal window and search by 'VBS-1' Search Key
    - Set as 'Return No Prefix = 'RVBS1''
* Go to Preferences window:
    - Add 'Web POS Save Removed Tickets' = 'Y' preference. Set 'Selected = Y'

Go to https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1#login [^]
 * Search for 'GPS Mini' product and add it to the ticket
 * Click on services icon and search for 'Warranty (not deferrable)' and relate it to 'GPS Mini'
 * Go to menu and click on "Return this Receipt"
 * Delete the ticket
 * The POS breaks and is not any more usable unless you delete fully cache memory and restart it.
 * Check in Google Chrome Developers tool that the following error appears:
        Uncaught dodivide(): Divide by 0
        D @ bigdecimal-1.0.1.min.js:14
        v @ bigdecimal-1.0.1.min.js:14
        OB.DEC.div @ 1e130e7….js:638
        (anonymous) @ 1e130e7….js:1907
        (anonymous) @ 1e130e7….js:1906
        b.each.b.forEach @ underscore-1.3.3.min.js:11
        r.(anonymous function) @ backbone-0.9.2.min.js:25
        (anonymous) @ 1e130e7….js:1906
        trigger @ backbone-0.9.2.min.js:9
        change @ backbone-0.9.2.min.js:15
        set @ backbone-0.9.2.min.js:12
        setDocumentNo @ 1e130e7….js:1273
        (anonymous) @ 1e130e7….js:1879
        trigger @ backbone-0.9.2.min.js:9
        _onModelEvent @ backbone-0.9.2.min.js:24
        trigger @ backbone-0.9.2.min.js:9
        change @ backbone-0.9.2.min.js:15
        set @ backbone-0.9.2.min.js:12
        calculateGross @ 1e130e7….js:1247
        (anonymous) @ 1e130e7….js:1264
        b.each.b.forEach @ underscore-1.3.3.min.js:11
        r.(anonymous function) @ backbone-0.9.2.min.js:25
        calculateGrossAndSave @ 1e130e7….js:1264
        calculateGross @ 1e130e7….js:1263
        (anonymous) @ 1e130e7….js:1273
        trigger @ backbone-0.9.2.min.js:9
        finishPromotions @ 1e130e7….js:2974
        (anonymous) @ 1e130e7….js:2974
        callbackExecutor @ 1e130e7….js:641
        executeHooks @ 1e130e7….js:641
        applyPromotionsLat @ 1e130e7….js:2974
        applyPromotions @ 1e130e7….js:2974
        calculateReceipt @ 1e130e7….js:1273
        (anonymous) @ 1e130e7….js:1482
        prepareToSend @ 1e130e7….js:1256
        finishRemoveOrder @ 1e130e7….js:1482
        (anonymous) @ 1e130e7….js:1485
        removePayments @ 1e130e7….js:1476
        removeOrder @ 1e130e7….js:1485
        (anonymous) @ 1e130e7….js:1487
        callbackExecutor @ 1e130e7….js:641
        executeHooks @ 1e130e7….js:641
        deleteOrder @ 1e130e7….js:1486
        deleteCurrentOrder @ 1e130e7….js:2335
        dispatch @ enyo.js:628
        dispatchEvent @ enyo.js:612
        enyo.kind.inherited @ enyo.js:410
        dispatchEvent @ enyo.js:1338
        dispatchBubble @ enyo.js:616
        bubbleUp @ enyo.js:608
        dispatchBubble @ enyo.js:616
        bubbleUp @ enyo.js:608
        dispatchBubble @ enyo.js:616
        bubbleUp @ enyo.js:608
        dispatchBubble @ enyo.js:616
        bubbleUp @ enyo.js:608
        dispatchBubble @ enyo.js:616
        bubbleUp @ enyo.js:608
        dispatchBubble @ enyo.js:616
        bubbleUp @ enyo.js:608
        dispatchBubble @ enyo.js:616
        bubble @ enyo.js:604
        n.(anonymous function).n.(anonymous function) @ enyo.js:658
        tap @ 1e130e7….js:1807
        dispatch @ enyo.js:628
        dispatchEvent @ enyo.js:612
        enyo.kind.inherited @ enyo.js:410
        dispatchEvent @ enyo.js:1338
        dispatchBubble @ enyo.js:616
        bubble @ enyo.js:604
        dispatchBubble @ enyo.js:1790
        dispatch @ enyo.js:1769
        enyo.dispatch @ enyo.js:1795
        sendTap @ enyo.js:1909
        up @ enyo.js:1897
        mouseup @ enyo.js:1937
No tags attached.
Issue History
2018-01-25 14:13umartirenaNew Issue
2018-01-25 14:13umartirenaAssigned To => Retail
2018-01-25 14:13umartirenaTriggers an Emergency Pack => No
2018-01-25 15:59marvintmResolution time => 1518044400
2018-01-25 18:33rqueraltaAssigned ToRetail => rqueralta
2018-01-25 18:34rqueraltaStatusnew => scheduled
2018-01-25 18:43egoitzIssue Monitored: egoitz
2018-01-30 14:42hgbotCheckin
2018-01-30 14:42hgbotNote Added: 0102058
2018-01-30 14:42hgbotStatusscheduled => resolved
2018-01-30 14:42hgbotResolutionopen => fixed
2018-01-30 14:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a93f9b202ceef08931ea4a9b0212106c8d2a7c83 [^]
2018-01-30 15:16hgbotCheckin
2018-01-30 15:16hgbotNote Added: 0102059
2018-02-01 15:29hgbotCheckin
2018-02-01 15:29hgbotNote Added: 0102121
2018-02-05 11:47marvintmReview Assigned To => marvintm
2018-02-05 11:47marvintmStatusresolved => closed
2018-02-05 11:47marvintmFixed in Version => RR18Q2

Notes
(0102058)
hgbot   
2018-01-30 14:42   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a93f9b202ceef08931ea4a9b0212106c8d2a7c83
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Fri Jan 26 15:04:33 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a93f9b202ceef08931ea4a9b0212106c8d2a7c83 [^]

Fixed issue 37730: Web POS breaks under certain circumstances

---
M web/org.openbravo.retail.posterminal/js/components/order.js
---
(0102059)
hgbot   
2018-01-30 15:16   
Repository: tools/automation/pi-mobile
Changeset: 66615cb4f0c5219966eb5d61c92ac22171ba289f
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Jan 29 18:24:44 2018 -0500
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/66615cb4f0c5219966eb5d61c92ac22171ba289f [^]

Verifies issue 37730: Web POS breaks under certain circumstances

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/returns/I37730_WebPOSBreaksUnderCertainCircumstances.java
---
(0102121)
hgbot   
2018-02-01 15:29   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9d3575da71cab9156a9691b707d02543487bda41
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Tue Jan 30 13:58:59 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9d3575da71cab9156a9691b707d02543487bda41 [^]

Related to issue 37730: Web POS breaks under certain circumstances

---
M web/org.openbravo.retail.posterminal/js/components/order.js
---