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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028194
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2014-11-17 17:162014-12-10 13:26
ReporterjonalegriaesarteView Statuspublic 
Assigned Toaaroncalero 
PrioritynormalResolutionfixedFixed in VersionRR15Q1
StatusclosedFix in branchFixed in SCM revision1a1e3288744e
ProjectionnoneETAnoneTarget VersionRR15Q1
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

0028194: When WEBPOS come back from offline to online the pending orders are sent in batches of 300 orders

DescriptionWhen WEBPOS come back from offline to online the pending orders are sent in batches of 300 orders
Steps To ReproduceLet's see an example:

1.- You get offline
2.- You create 1000 orders
3.- You come back online and only 300 orders are sent to the backend
4.- Then each time you save a new order, others 300 orders will be sent until there are no more orders to send.

It seems there is a limit hardcoded that causes this behavior. There should not be a limit in number of orders sent from WebPOS when you get online.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0028257pi closedaaroncalero If a synchronization request to the backend takes too long the WebPOS goes offline 

-  Notes
(0071787)
mtaal (manager)
2014-11-18 17:50
edited on: 2014-11-18 17:51

I guess the limit is there not to overload the backend. So the behavior can be to send batches of orders to the backend.

Maybe even smaller batches (100 orders seems to be fine).

But the logic should send all the batches of orders in one sync step when the user enters a order, so not one batch per order.

(0071931)
hgbot (developer)
2014-11-24 12:33

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1a1e3288744ee222379338da5992a4fc75d55b96
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Mon Nov 24 10:18:08 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1a1e3288744ee222379338da5992a4fc75d55b96 [^]

Fixed issue 28194: When WEBPOS come back from offline to online the pending orders are sent in batches of 300 orders

Added a limit = -1 clause to the sql that recovers the data to be sync'ed. This will override each model's dataLimit.
For each model, split the collection of records in batches of 100 to be sent to the backend.
Added a flag to mark if the model has been fully sync'ed.
Finally, changed the callbacks to call syncModel on the same model if the model hasn't been fully sync'ed

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---

- Issue History
Date Modified Username Field Change
2014-11-17 17:16 jonalegriaesarte New Issue
2014-11-17 17:16 jonalegriaesarte Assigned To => marvintm
2014-11-17 17:16 jonalegriaesarte Resolution time => 1417561200
2014-11-17 17:16 jonalegriaesarte Triggers an Emergency Pack => No
2014-11-17 17:16 jonalegriaesarte Target Version => RR15Q1
2014-11-17 17:16 jonalegriaesarte Steps to Reproduce Updated View Revisions
2014-11-17 17:21 rafademiguel Issue Monitored: rafademiguel
2014-11-18 17:50 mtaal Note Added: 0071787
2014-11-18 17:51 mtaal Note Edited: 0071787 View Revisions
2014-11-18 17:51 mtaal Assigned To marvintm => aaroncalero
2014-11-24 12:33 hgbot Checkin
2014-11-24 12:33 hgbot Note Added: 0071931
2014-11-24 12:33 hgbot Status new => resolved
2014-11-24 12:33 hgbot Resolution open => fixed
2014-11-24 12:33 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1a1e3288744ee222379338da5992a4fc75d55b96 [^]
2014-12-10 13:26 marvintm Review Assigned To => marvintm
2014-12-10 13:26 marvintm Status resolved => closed
2014-12-10 13:26 marvintm Fixed in Version => RR15Q1
2015-04-24 10:41 Orekaria Relationship added blocks 0028257


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker