Notes |
|
(0102803)
|
hgbot
|
2018-02-22 19:42
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 715adcce7ca09cb744dc590670af82a5412cee89
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Thu Feb 22 19:41:20 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/715adcce7ca09cb744dc590670af82a5412cee89 [^]
Fixes issue 37025: add to master data load api the option to do pagination by id
The pagination by id, saves the last id of the current page, to send for next page to be greater than this id.
This filter makes each subsequent page query a bit faster since the amount of rows to work with is smaller.
To enable it:
- set paginationById:true in the model
- add $paginationByIdCriteria in the hql query
You can see an example in ProductPrice.java and productprice.js
---
M src/org/openbravo/mobile/core/process/ProcessHQLQuery.java
M src/org/openbravo/mobile/core/process/SimpleQueryBuilder.java
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
---
|
|
|
(0102804)
|
hgbot
|
2018-02-22 19:42
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 983ec113cf9ebf83af257d4a8f0165a64a987fe3
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Thu Feb 22 19:31:37 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/983ec113cf9ebf83af257d4a8f0165a64a987fe3 [^]
Fixes issue 37025: added pagination by Id to product price
- Change the product price model to use the pagination by Id instead the old one by offset
- Change a bit the product price master data load query:
Put all possible inside the subquery
This toguther with the cange of paginate by id instead , gives half times loading many pages, in some scenarios.
Note: if separeted in two queries, it improves a lot, but in future versions of pg could give worse performance,
Also the number of parameters to the second query could be a problem.
- Fix ServiceProduct master data load query, since the ordering was not correct.
---
M src/org/openbravo/retail/posterminal/master/ProductPrice.java
M src/org/openbravo/retail/posterminal/master/ServiceProduct.java
M web/org.openbravo.retail.posterminal/js/model/productprice.js
---
|
|
|
(0103038)
|
hgbot
|
2018-03-06 17:31
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: b2c78a68579b37f0a9047c45cc3c3f0f9475b130
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Mon Mar 05 11:58:50 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b2c78a68579b37f0a9047c45cc3c3f0f9475b130 [^]
Related to issue 37025: apply review: makes no sense to put this code inside a try/catch
If this code fails with an exception is becasue the json is malformed,
and in this case better to stop executing this code and
control the exception outside
---
M src/org/openbravo/mobile/core/process/ProcessHQLQuery.java
---
|
|
|
(0103039)
|
hgbot
|
2018-03-06 17:33
|
|
|
|
(0103159)
|
hgbot
|
2018-03-12 13:36
|
|
|
|
(0103355)
|
hgbot
|
2018-03-19 18:39
|
|
|
|
(0103356)
|
hgbot
|
2018-03-19 18:39
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 370c7d2734008883ce1a889624a78170bc25d877
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Mon Mar 19 18:37:13 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/370c7d2734008883ce1a889624a78170bc25d877 [^]
Related to issue 37025: fix order by of DicountFilter* models
---
M src/org/openbravo/retail/posterminal/master/DiscountFilterProduct.java
M src/org/openbravo/retail/posterminal/master/DiscountFilterProductCategory.java
M src/org/openbravo/retail/posterminal/master/DiscountFilterRole.java
---
|
|
|
(0103429)
|
hgbot
|
2018-03-22 14:09
|
|
|