Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0028451 | Retail Modules | Web POS | public | 2014-12-18 16:47 | 2014-12-29 16:47 |
Reporter | aaroncalero | ||||
Assigned To | aaroncalero | ||||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR15Q1 | |||
Merge Request Status | |||||
Review Assigned To | mtaal | ||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0028451: If the apply button on the Receipt Discounts tab is tapped before the discounts combo is loaded, a javascript error is shown | ||||
Description | If the apply button on the Receipt Discounts tab is tapped before the discounts combo is loaded, a javascript error is shown | ||||
Steps To Reproduce | These steps can be reproduced during automated tests Create a ticket in Web POS Open the menu, Receipt Discounts menu entry. Click on the apply to all lines check. Click on Apply. If the discounts combo is not loaded yet, the following error is shown: Uncaught TypeError: Cannot read property 'model' of undefined Alternative steps to reproduce using the TestRegistry: Create a new ticket. Execute the following commands on the browser console in a single line: TestRegistry.registry('menuHolder_mainMenuButton').enyoObject.waterfall('ontap'); TestRegistry.registry('menuScroller_menuDiscounts').enyoObject.waterfall('ontap'); TestRegistry.registry('discountsEdit_checkSelectAll').enyoObject.waterfall('ontap'); TestRegistry.registry('discountsEdit_btnApply').enyoObject.waterfall('ontap'); These commands will open the Receipt Discounts tab and apply the first discount to all lines. | ||||
Proposed Solution | When the Receipt discounts tab is shown, the discounts combo is reset. The Apply button should only be enabled after the discounts combo has finished reloading. In order to ensure this: The Apply button will be disabled right before resetting the discounts combo. After the discounts combo is reloaded we will call ticketLineChecked with the current checked lines to enable the button if needed. The ticketLineChecked function will have a check to enable the Apply button only if the discounts combo is enabled. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-12-18 16:47 | aaroncalero | New Issue | |||
2014-12-18 16:47 | aaroncalero | Assigned To | => aaroncalero | ||
2014-12-18 16:47 | aaroncalero | Triggers an Emergency Pack | => No | ||
2014-12-18 17:15 | hgbot | Checkin | |||
2014-12-18 17:15 | hgbot | Note Added: 0072706 | |||
2014-12-18 17:16 | hgbot | Status | new => resolved | ||
2014-12-18 17:16 | hgbot | Resolution | open => fixed | ||
2014-12-18 17:16 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/96fde12e1b53c1ed1103a988ce45dc5a1589d3cc [^] | ||
2014-12-29 14:09 | mtaal | Note Added: 0072851 | |||
2014-12-29 14:09 | mtaal | Status | resolved => new | ||
2014-12-29 14:09 | mtaal | Resolution | fixed => open | ||
2014-12-29 16:38 | mtaal | Status | new => scheduled | ||
2014-12-29 16:38 | mtaal | Note Added: 0072855 | |||
2014-12-29 16:38 | mtaal | fix_in_branch | => pi | ||
2014-12-29 16:45 | mtaal | Note Added: 0072856 | |||
2014-12-29 16:45 | mtaal | Status | scheduled => resolved | ||
2014-12-29 16:45 | mtaal | Fixed in Version | => RR15Q1 | ||
2014-12-29 16:45 | mtaal | Resolution | open => fixed | ||
2014-12-29 16:47 | mtaal | Note Edited: 0072856 | bug_revision_view_page.php?bugnote_id=0072856#r7358 | ||
2014-12-29 16:47 | mtaal | Review Assigned To | => mtaal | ||
2014-12-29 16:47 | mtaal | Note Added: 0072857 | |||
2014-12-29 16:47 | mtaal | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|