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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033176
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2016-06-07 18:072018-03-19 09:27
ReportershuehnerView Statuspublic 
Assigned ToSandrahuguet 
PrioritynormalResolutionfixedFixed in VersionRR18Q2
StatusclosedFix in branchFixed in SCM revision0050c49b4a1f
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

0033176: OrderLoader countPayments functions is called to often (once per payment)

DescriptionThe countPayments functions which counts all payment related to the order being processed is called in a loop per payment present in the Order.

That seems to not be required as the code can easily know how many payments it created (via the loop) so should only need to query some initial payment-count once before the loop (to find any possible payments created before this orderloader invocation). Then it could use this startcount + simple add a counter to get unique DocumentNo.
Steps To ReproduceConfigure POS to use useOrderDocumentNoForRelatedDocs preference to use that code-path.

Add item to webpos cart.
Use 2 different payments methods to pay this ticket
i.e. 5€ cash + rest 'credit'.

TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0033123 closedshuehner OrderLoader countPayments function uses very complex and potentially very slow query for simple check 

-  Notes
(0103263)
hgbot (developer)
2018-03-15 08:23

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0050c49b4a1f375b764ecfb881d2120606e9a8e6
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Mar 14 09:07:31 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0050c49b4a1f375b764ecfb881d2120606e9a8e6 [^]

fixed issue 33176 call to countPayments only once time during orderloader

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---

- Issue History
Date Modified Username Field Change
2016-06-07 18:07 shuehner New Issue
2016-06-07 18:07 shuehner Assigned To => Retail
2016-06-07 18:07 shuehner Triggers an Emergency Pack => No
2016-06-07 18:07 shuehner Relationship added related to 0033123
2016-06-07 18:07 shuehner Tag Attached: Performance
2018-03-14 13:14 Sandrahuguet Assigned To Retail => Sandrahuguet
2018-03-14 15:19 Sandrahuguet Review Assigned To => marvintm
2018-03-15 08:23 hgbot Checkin
2018-03-15 08:23 hgbot Note Added: 0103263
2018-03-15 08:23 hgbot Status new => resolved
2018-03-15 08:23 hgbot Resolution open => fixed
2018-03-15 08:23 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0050c49b4a1f375b764ecfb881d2120606e9a8e6 [^]
2018-03-19 09:27 marvintm Status resolved => closed
2018-03-19 09:27 marvintm Fixed in Version => RR18Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker