Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051828Retail ModulesServices Autopricepublic2023-03-02 13:142023-03-13 16:13
azabaleta 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR23Q1.1RR23Q1.1 
Production - Confirmed Stable
No
0051828: 23Q1: "Max and Min associated price" does not work for services when using "REMOTE FOR PRODUCTS"
"Max and Min associated price" does not work for services when using "REMOTE FOR PRODUCTS"
When using Webpos with the preference “REMOTE FOR PRODUCTS”, the functionality that filters the offering of services for products given price limits, does not work.

Steps to reproduce:

Go to live builds into 23Q1 version. https://livebuilds.openbravo.com/retail_mp_3.0RR23Q1 [^]

Configure the “Repair boots service” as shown in the image attached

Open Webpos Openbravo POS

Add the product “All mountain ski board cham” with 245,50€ to the ticket and click to see the optional services:

If the preference “Remote for products” is set to NO , then the service “Repair for boots” is not visible. OK

If the preference “Remote for products” is set to Y , then the service “Repair for boots” is visible. KO

 
When the fields were moved to Product the query in ServicesHQLCriteria.java was not updated.
The query needs to look for the new fields
No tags attached.
blocks defect 0051760 closed ranjith_qualiantech_com 23Q1: "Max and Min associated price" does not work for services when using "REMOTE FOR PRODUCTS" 
Issue History
2023-03-10 04:25ranjith_qualiantech_comTypedefect => backport
2023-03-10 04:25ranjith_qualiantech_comTarget Version => RR23Q1.1
2023-03-13 06:35hgbotNote Added: 0147452
2023-03-13 16:13hgbotResolutionopen => fixed
2023-03-13 16:13hgbotStatusscheduled => closed
2023-03-13 16:13hgbotNote Added: 0147492
2023-03-13 16:13hgbotFixed in Version => RR23Q1.1
2023-03-13 16:13hgbotNote Added: 0147493

Notes
(0147452)
hgbot   
2023-03-13 06:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1093 [^]
(0147492)
hgbot   
2023-03-13 16:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1093 [^]
(0147493)
hgbot   
2023-03-13 16:13   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 5b6020b27d645bae2b6b897ec7db9b696876640b
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 13-03-2023 15:13:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/5b6020b27d645bae2b6b897ec7db9b696876640b [^]

Fixed ISSUE-51828: Service product should be filtered based on related product price
* When Pref. "Remote Product" is enabled, Service product should be
  filtered based on min & max price of related product price
* Service Tranche calculation will be calculated after adding the service products
  (For both normal & remote mode)

---
M src/org/openbravo/retail/posterminal/ServicesHQLCriteria.java
M src/org/openbravo/retail/posterminal/ServicesMultiselectionHQLCriteria.java
---