Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030843Retail ModulesWeb POSpublic2015-09-16 17:152015-09-16 17:15
guilleaer 
Retail 
normalminoralways
newopen 
5
 
 
No
0030843: When discretionary discounts keyboard is not enabled, discount button raise an error if it is used without select lines
When discretionary discounts keyboard button is not enabled (preference OBPOS_retail.discountkeyboard = 'N') then the discount button raise an error if it is used without select lines
set preference to N
Log in in web POS
Ensure that preference value is false (OB.MobileApp.model.get('permissions')['OBPOS_retail.discountkeyboard'])
press discount button
press "5" button
press discount button or "intro" button

An error is shown

TypeError: Cannot read property 'getQty' of undefined
    at Object.addCommand.action (http://localhost:8080/openbravo//web/js/gen/54c28e7627606fc9e2e440c1a8ed9a6f_WebPOS.js:1673:96 [^])
    at Object.enyo.kind.execCommand (http://localhost:8080/openbravo//web/js/gen/54c28e7627606fc9e2e440c1a8ed9a6f_WebPOS.js:712:111 [^])
    at Object.enyo.kind.commandHandler (http://localhost:8080/openbravo//web/js/gen/54c28e7627606fc9e2e440c1a8ed9a6f_WebPOS.js:713:205 [^])
    at Object.enyo.kind.dispatch (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/build/enyo.js:628:17 [^])
    at Object.enyo.kind.dispatchEvent (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/build/enyo.js:612:30 [^])
    at Object.enyo.kind.inherited (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/build/enyo.js:410:28 [^])
    at Object.enyo.kind.dispatchEvent (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/build/enyo.js:1338:78 [^])
    at Object.enyo.kind.dispatchBubble (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/build/enyo.js:616:13 [^])
    at Object.enyo.kind.bubble (http://localhost:8080/openbravo/web/org.openbravo.mobile.core/build/enyo.js:604:62 [^])
Check that lines are not selected. If this is the case then ignore action without show error.
No tags attached.
png 005-GAL-OpenbravoPOS-GoogleChrome.png (287,649) 2015-09-16 17:15
https://issues.openbravo.com/file_download.php?file_id=8454&type=bug
Issue History
2015-09-16 17:15guilleaerNew Issue
2015-09-16 17:15guilleaerAssigned To => Retail
2015-09-16 17:15guilleaerFile Added: 005-GAL-OpenbravoPOS-GoogleChrome.png
2015-09-16 17:15guilleaerTriggers an Emergency Pack => No

There are no notes attached to this issue.