Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033275Retail ModulesWeb POSpublic2016-06-15 14:242016-06-16 08:46
guilleaer 
Osmany 
normalminorhave not tried
closedfixed 
5
 
RR16Q3 
guilleaer
No
0033275: Incremental refresh is nt working fine for product services model
Incremental refresh is not working fine for product services model when a product service is done unactive.

master queries never should directly filter by isActive. $incrementalUpdateCriteria instead should be used.

Login into web POS
Perform the following query in the local DB
select * from m_product_service where m_product_service_id = '06B2CFF248AF4C4483EA5AC3A8F892FC'

You will see that product service is there.

Then make inactive the product_service
UPDATE m_product_service set isactive = 'N', updated = now() where m_product_service_id = '06B2CFF248AF4C4483EA5AC3A8F892FC';

Refresh the web POS.

Perform the query again in the local DB
select * from m_product_service where m_product_service_id = '06B2CFF248AF4C4483EA5AC3A8F892FC'

and you will see that the product is still there


Error: Product_service should disappear thanks to the incremental refresh
remove isActive condition from the query.
$incrementalUpdateCriteria will add it if it's needed
No tags attached.
diff issue33275.diff (1,645) 2016-06-15 14:27
https://issues.openbravo.com/file_download.php?file_id=9528&type=bug
Issue History
2016-06-15 14:24guilleaerNew Issue
2016-06-15 14:24guilleaerAssigned To => Retail
2016-06-15 14:24guilleaerTriggers an Emergency Pack => No
2016-06-15 14:27guilleaerFile Added: issue33275.diff
2016-06-15 15:59OsmanyAssigned ToRetail => Osmany
2016-06-15 21:09hgbotCheckin
2016-06-15 21:09hgbotNote Added: 0087320
2016-06-15 21:09hgbotStatusnew => resolved
2016-06-15 21:09hgbotResolutionopen => fixed
2016-06-15 21:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/13bc8e2ea3881a8d3f39e748dbefb3ca80c35b3d [^]
2016-06-16 08:46guilleaerReview Assigned To => guilleaer
2016-06-16 08:46guilleaerStatusresolved => closed
2016-06-16 08:46guilleaerFixed in Version => RR16Q3

Notes
(0087320)
hgbot   
2016-06-15 21:09   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 13bc8e2ea3881a8d3f39e748dbefb3ca80c35b3d
Author: Osmany Garcia Machado <osmany.machado <at> peoplewalking.com>
Date: Wed Jun 15 13:09:05 2016 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/13bc8e2ea3881a8d3f39e748dbefb3ca80c35b3d [^]

Fixes issue 33275: Incremental refresh is working fine for product services model

---
M src/org/openbravo/retail/posterminal/master/ServiceProduct.java
M src/org/openbravo/retail/posterminal/master/ServiceProductProperties.java
---