Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #37098 Back to Issue ]
Summary 0037098: It is possible to click on Void Layaway before the calculateReceipt of the loaded layaway has finished
Revision 2017-10-18 11:18 by aaroncalero
Steps To Reproduce Login in webpos
Create a new layaway, add some products, and synchronize the Layaway without payments by clicking on Layaway.
Open the browser console and execute this[1] code to implement a hook and make the calculateReceipt slow.
Go to the menu and load the previously created layaway.
Quickly, go to the menu and click on Void Layaway.
The POS will change to the payments tab, and after a few seconds the payment tab will show "<amount_of_the_layaway>€ remaining to return." instead of "Total is zero. No payment needed".

[1] OB.UTIL.HookManager.registerHook('OBPOS_PreCheckDiscount', function(args, callback){
setTimeout(function(){
  OB.UTIL.HookManager.callbackExecutor(args, callback);
}, 5000)
})
Revision 2017-10-18 11:06 by aaroncalero
Steps To Reproduce Login in webpos
Create a new layaway, add some products, and synchronize the Layaway without payments by clicking on Layaway.
Open the browser console and execute this[1] code to implement a hook and make the calculateReceipt slow.
Go to the menu and load the previously created layaway.
Quickly, go to the menu and click on Void Layaway.
The POS will change to the payments tab, and after a few seconds the payment tab will show "<amount_of_the_layaway>€ remaining to return." instead of "Total is zero. No payment needed".


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker