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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037057
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-10-11 15:552017-10-27 12:49
ReporteraaroncaleroView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revisionfa427f5256aa
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

0037057: Mandatory Services search should be blocked while the calculateReceipt function is being executed

DescriptionWhen a product is added to a ticket and there are mandatory services related to said product, the mandatory services search is opened and the services are listed right away, while the calculateReceipt function might still be executing.
Some functionalities might require the total of the lines to be calculated (i.e. the Automatic Service Price Rule Calculation: org.openbravo.retail.services.autoprice) before showing the service list
Steps To ReproduceLogin in web pos
Open the browser console and execute this[1] code to add a hook that slows down the calculateReceipt process.
Go to the Search tab, search for the Blue Trousers product and add it to the ticket.
The Mandatory services search will be shown, and after 5 seconds the total of the ticket will be correctly calculated.


[1] OB.UTIL.HookManager.registerHook('OBPOS_PreApplyAutomaticDiscount', function(args, callback){
setTimeout(function(){
  OB.UTIL.HookManager.callbackExecutor(args, callback);
}, 5000)
})
Proposed SolutionAttached diffs with the following changes:
Postermina: When the calculateReceipt has finished, trigger the 'calculatedReceipt' event on the receipt model.
Mobile Core: Instead of launching the service search right away, if the calculateReceipt is still pending wait for the 'calculatedReceipt' event to trigger the search.
TagsNo tags attached.
Attached Filesdiff file icon Issue37057_Posterminal.diff [^] (757 bytes) 2017-10-11 16:07 [Show Content]
diff file icon Issue37057_MobileCore.diff [^] (1,784 bytes) 2017-10-11 16:08 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0099992)
hgbot (developer)
2017-10-23 13:00

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: fa427f5256aa97b295fb15aa846ea97bf4be2c6b
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Oct 23 16:18:06 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fa427f5256aa97b295fb15aa846ea97bf4be2c6b [^]

Fixed issue 37057 : Show Product Services after calculateReceipt completed

---
M web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproductcharacteristic.js
---
(0100018)
hgbot (developer)
2017-10-24 12:05

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ab7e3eb2ff506c5d564376e6e792aa7c5dde6adf
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Oct 24 15:23:59 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ab7e3eb2ff506c5d564376e6e792aa7c5dde6adf [^]

Related to issue 37057 : Removed unused warning while searching services

---
M web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproductcharacteristic.js
---

- Issue History
Date Modified Username Field Change
2017-10-11 15:55 aaroncalero New Issue
2017-10-11 15:55 aaroncalero Assigned To => Retail
2017-10-11 15:55 aaroncalero Resolution time => 1508882400
2017-10-11 15:55 aaroncalero Triggers an Emergency Pack => No
2017-10-11 16:07 aaroncalero File Added: Issue37057_Posterminal.diff
2017-10-11 16:08 aaroncalero File Added: Issue37057_MobileCore.diff
2017-10-19 11:55 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2017-10-19 11:55 ranjith_qualiantech_com Status new => scheduled
2017-10-23 13:00 hgbot Checkin
2017-10-23 13:00 hgbot Note Added: 0099992
2017-10-23 13:00 hgbot Status scheduled => resolved
2017-10-23 13:00 hgbot Resolution open => fixed
2017-10-23 13:00 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fa427f5256aa97b295fb15aa846ea97bf4be2c6b [^]
2017-10-24 12:05 hgbot Checkin
2017-10-24 12:05 hgbot Note Added: 0100018
2017-10-27 12:49 marvintm Review Assigned To => marvintm
2017-10-27 12:49 marvintm Status resolved => closed
2017-10-27 12:49 marvintm Fixed in Version => RR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker