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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037098
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-10-18 11:062017-11-09 14:32
ReporteraaroncaleroView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037098: It is possible to click on Void Layaway before the calculateReceipt of the loaded layaway has finished

DescriptionWhen a layaway is loaded in the POS, the calculateReceipt function is executed to generate the totals of the layaway.
When the Void Layaway menu option is used, the gross of the void layaway (total cash to return) is calculated based on the current total of the layaway and the payments added previously.
If the first calculateReceipt finishes after the void layaway has been clicked, then the calculatereceipt resets the gross of the layaway and the POS asks the cashier to return money when it should not.
Steps To ReproduceLogin 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)
})
Proposed SolutionIt should not be possible to click on the menu while the calculateReceipt of the loaded layaway is being executed.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of design defect 0037044 closedjorge-garcia [SER QA 3365] Wrong ticket amount when action made before ticke total amount calculated 

-  Notes
(0100387)
marvintm (manager)
2017-11-09 14:32

Will be fixed as part of issue 37044

- Issue History
Date Modified Username Field Change
2017-10-18 11:06 aaroncalero New Issue
2017-10-18 11:06 aaroncalero Assigned To => Retail
2017-10-18 11:06 aaroncalero Resolution time => 1509490800
2017-10-18 11:06 aaroncalero Triggers an Emergency Pack => No
2017-10-18 11:18 aaroncalero Steps to Reproduce Updated View Revisions
2017-10-23 09:12 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2017-10-23 09:13 ranjith_qualiantech_com Status new => scheduled
2017-11-09 14:32 marvintm Review Assigned To => marvintm
2017-11-09 14:32 marvintm Relationship added duplicate of 0037044
2017-11-09 14:32 marvintm Note Added: 0100387
2017-11-09 14:32 marvintm Status scheduled => closed
2017-11-09 14:32 marvintm Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker