Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051829Retail ModulesServices Autopricepublic2023-03-02 13:142023-03-13 16:15
azabaleta 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR22Q4.3RR22Q4.3 
approved
OBPS
Production - Confirmed Stable
No
0051829: 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 => PR22Q4.3
2023-03-13 06:35hgbotNote Added: 0147453
2023-03-13 16:15hgbotNote Added: 0147494
2023-03-13 16:15hgbotResolutionopen => fixed
2023-03-13 16:15hgbotStatusscheduled => closed
2023-03-13 16:15hgbotFixed in Version => RR22Q4.3
2023-03-13 16:15hgbotNote Added: 0147495

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

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

Fixed ISSUE-51829: 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
---