Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046711Retail ModulesWeb POSpublic2021-05-18 13:442021-05-31 07:58
santi_lozano 
rqueralta 
highmajoralways
closedfixed 
5
 
RR21Q3 
marvintm
No
0046711: Incremental refresh not updating business partner multiple price list
Set preferences to have multiple price list functionality, set a new value for a product on a price list different of the used one in webpos, assign this price list to a customer, check this customer has a custom price for this product on webpos, set not active this custom price on backoffice, do an incremental refresh on webpos, check on webpos that the price is still custom (when it should have disappeared). This can lead to incorrect prices in webpos.
* Download a tip instance locally and install retail and retail sampledata (I have used a QAA version because I wasn't able to install sampledata on tip and build correctly)

* as System Admin on Windows Tabs and Fields, for window Price List then for tab Product Price allow the field Active to be shown (not shown there by default), compile the application to apply the change (it would be necessary to set core in development in order to do this)

* access as System Admin. Go to window Preference. Set this preferences to be "Web POS Enable Multi Price List" and "Web POS Show Standard Price on Search and Browse" with value = Y, and selected = yes

* access as White Valley Group Admin, go to Price List window, select CTS - Price List, on tab Product Price add a new price of 500 for product Alpine Poles

* go to Business Partner tab, select Arturo Montoro, on its tab change its price list to be CTS - Price List

* go to the webpos

* search for the product Alpine Pole with anonymous customer, it is 36.50

* change customer to be Arturo Montoro, search for the product Alpine Pole its price shows the custom 500

* remove filters there

* go to backoffice, on window Price List, set the Alpine Pole entry that we have just created to be inactive

* on webpos do an incremental refresh, now search for the Alpine Pole product again, it still shows the 500 price, this should have been updated with the refresh
No tags attached.
csv 23614 - test in qaa - terminal log.csv (50,069) 2021-05-18 13:44
https://issues.openbravo.com/file_download.php?file_id=15758&type=bug
png 23614 - multiple price.png (85,025) 2021-05-18 13:45
https://issues.openbravo.com/file_download.php?file_id=15759&type=bug
png
Issue History
2021-05-18 13:44santi_lozanoNew Issue
2021-05-18 13:44santi_lozanoAssigned To => Retail
2021-05-18 13:44santi_lozanoFile Added: 23614 - test in qaa - terminal log.csv
2021-05-18 13:44santi_lozanoResolution time => 1623103200
2021-05-18 13:44santi_lozanoTriggers an Emergency Pack => No
2021-05-18 13:45santi_lozanoFile Added: 23614 - multiple price.png
2021-05-24 06:53marvintmReview Assigned To => marvintm
2021-05-24 06:53marvintmNote Added: 0128528
2021-05-24 06:53marvintmStatusnew => closed
2021-05-24 06:53marvintmResolutionopen => no change required
2021-05-25 10:56santi_lozanoStatusclosed => new
2021-05-25 10:57santi_lozanoResolution time1623103200 => 1623708000
2021-05-25 11:03santi_lozanoDescription Updatedbug_revision_view_page.php?rev_id=22593#r22593
2021-05-25 11:03santi_lozanoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22595#r22595
2021-05-25 11:04santi_lozanoNote Added: 0128609
2021-05-25 22:44rqueraltaAssigned ToRetail => rqueralta
2021-05-25 22:44rqueraltaStatusnew => scheduled
2021-05-27 01:19hgbotNote Added: 0128689
2021-05-31 07:58hgbotNote Added: 0128789
2021-05-31 07:58hgbotResolutionno change required => fixed
2021-05-31 07:58hgbotStatusscheduled => closed
2021-05-31 07:58hgbotFixed in Version => RR21Q3
2021-05-31 07:58hgbotNote Added: 0128790

Notes
(0128528)
marvintm   
2021-05-24 06:53   
Incremental refresh cannot work with masterdata deletions:

http://wiki.openbravo.com/wiki/Retail:MasterdataLoading [^]

"This mode has a specific limitation: it is not able to detect data removals, due to using the updated column to check which records changed. "

The price records should be disabled instead.
(0128609)
santi_lozano   
2021-05-25 11:04   
I have updated the issue, it also happens when you disable a price record
(0128689)
hgbot   
2021-05-27 01:19   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/437 [^]
(0128789)
hgbot   
2021-05-31 07:58   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/437 [^]
(0128790)
hgbot   
2021-05-31 07:58   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 09c8b253b23c8cae8c3030ed073498953650e515
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-05-31T05:58:13+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/09c8b253b23c8cae8c3030ed073498953650e515 [^]

Fixed BUG-46711: Pass the "active" property to update the product price model on incremental refresh

---
M src/org/openbravo/retail/posterminal/master/ProductPriceProperties.java
---