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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034521
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2016-11-15 10:162016-12-07 15:24
Reporterjorge-garciaView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in VersionRR16Q3.4
StatusclosedFix in branchFixed in SCM revision2adbf3b2582b
ProjectionnoneETAnoneTarget VersionRR16Q3.4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression levelProduction - Confirmed Stable
Regression date2015-09-12
Regression introduced in releaseRR15Q4
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ba7e9aa75f69ac696431167c9fbb26cb0e55dbf [^]
Triggers an Emergency PackNo
Summary

0034521: [Performance] Discounts calculation is slower when the user increase the number of lines of the receipt

DescriptionDiscounts calculation is more slower when the user increase the number of lines of the receipt
Steps To Reproduce1) Login in the WebPOS
2) Start adding products in the ticket
3) Check the calculation of the receipt became more slower
4) Notice, after the tenth line in the receipt, the calculation takes several seconds.
5) From the twentieth line, the calculation could take twenty or thirty seconds.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0034517 closedjorge-garcia [Performance] Discounts calculation is slower when the user increase the number of lines of the receipt 

-  Notes
(0092183)
hgbot (developer)
2016-12-07 13:17

Repository: retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal
Changeset: 59b7576ec6f692a4723379c05e9fac65fa826bd3
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Dec 07 13:10:07 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/59b7576ec6f692a4723379c05e9fac65fa826bd3 [^]

Fixed issue 34521. [Performance] Discounts calculation is slower when the
user increase the number of lines of the receipt

The problem with this issue is that the functionality of findUsingCache was
never use, because the parameter to stablish the initial date to take a
promotion was always changing with the value of the actual date witch was
a datetime value.

In the backend, it’s not possible to define a promotion neither the starting
date nor ending date fields with a date including hours, minutes and seconds.

The solution is to parse the date to sue only dates without time for the query
criteria.

---
M web/org.openbravo.retail.posterminal/js/model/executor.js
---
(0092184)
hgbot (developer)
2016-12-07 13:17

Repository: retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal
Changeset: 2adbf3b2582b4998d7f8eda5fea0bcd274a1b23a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Dec 07 13:16:43 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/2adbf3b2582b4998d7f8eda5fea0bcd274a1b23a [^]

Fixed issue 34521. Fix the actual problem if we add several lines at once, like in the case of
RFID.
Only launch the calculation of the receipt when the last line to delete is
changed.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---

- Issue History
Date Modified Username Field Change
2016-11-15 10:26 jorge-garcia Type defect => backport
2016-11-15 10:26 jorge-garcia Target Version => RR16Q3.4
2016-12-07 13:17 hgbot Checkin
2016-12-07 13:17 hgbot Note Added: 0092183
2016-12-07 13:17 hgbot Status scheduled => resolved
2016-12-07 13:17 hgbot Resolution open => fixed
2016-12-07 13:17 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/59b7576ec6f692a4723379c05e9fac65fa826bd3 [^]
2016-12-07 13:17 hgbot Checkin
2016-12-07 13:17 hgbot Note Added: 0092184
2016-12-07 13:17 hgbot Fixed in SCM revision http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/59b7576ec6f692a4723379c05e9fac65fa826bd3 [^] => http://code.openbravo.com/retail/backports/3.0RR16Q3.4/org.openbravo.retail.posterminal/rev/2adbf3b2582b4998d7f8eda5fea0bcd274a1b23a [^]
2016-12-07 14:26 marvintm Assigned To jorge-garcia => marvintm
2016-12-07 15:24 guilleaer Review Assigned To => guilleaer
2016-12-07 15:24 guilleaer Status resolved => closed
2016-12-07 15:24 guilleaer Fixed in Version => RR16Q3.4


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker