Openbravo Issue Tracking System - POS2
View Issue Details
0053502POS2POSpublic2023-09-20 12:512024-02-06 14:11
cberner 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
 
approved
No
No
0053502: org.openbravo.pos2.product.label.printing module fails to load products
The module org.openbravo.pos2.product.label.printing fails to load any product if the module commercialoperations is not present.

- pos2.product.label.printing: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing [^]
- commercialoperations:
https://gitlab.com/openbravo/product/pmods/org.openbravo.product.label.printing.commercialoperations [^]

This is due to the former having an incorrect query:
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/blob/master/src/org/openbravo/pos2/product/label/printing/master/ProductExtension.java#L33 [^]

It expects some ModelExtensions marked with the qualifier: POS2PLP_ProductExtension, but none is present in the main pos2.product.label.printing module, the only ModelExtension with that qualifier is present in the dependant module commercialoperations.

The query should be fixed so when there is no ModelExtension(only this module installed) it should skip those properties in the select.

The error is shown in an attached image.
Have a pos2 environment with the pos2.product.label.printing module installed. It should not have the commercialoperations module installed(pos2-modules contains both modules, so removing the commercialoperations one should be enough).

1. Login WebPOS
2. Go to Print Product Labels window, then click on Next
3. Try to search for any product, on the left filters
No tags attached.
has duplicate defect 0054468pi closed SABARINATH P Print Product Labels: Impossible to add products, product categories in product label option in the POS 
png localhost_3000__terminal=VBS-2(pos2) (11).png (209,050) 2023-09-20 12:51
https://issues.openbravo.com/file_download.php?file_id=18975&type=bug
png
Issue History
2023-09-20 12:51cbernerNew Issue
2023-09-20 12:51cbernerAssigned To => Retail
2023-09-20 12:51cbernerFile Added: localhost_3000__terminal=VBS-2(pos2) (11).png
2023-09-20 12:51cbernerOBNetwork customer => No
2023-09-20 12:51cbernerTriggers an Emergency Pack => No
2023-10-11 08:04ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-10-12 12:06ranjith_qualiantech_comStatusnew => scheduled
2023-10-13 06:47hgbotMerge Request Status => open
2023-10-13 06:47hgbotNote Added: 0155812
2024-02-01 10:10SABARINATH PRelationship addedhas duplicate 0054468
2024-02-06 14:11hgbotMerge Request Statusopen => approved
2024-02-06 14:11hgbotNote Added: 0160301
2024-02-06 14:11hgbotResolutionopen => fixed
2024-02-06 14:11hgbotStatusscheduled => closed
2024-02-06 14:11hgbotNote Added: 0160302

Notes
(0155812)
hgbot   
2023-10-13 06:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/36 [^]
(0160301)
hgbot   
2024-02-06 14:11   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/36 [^]
(0160302)
hgbot   
2024-02-06 14:11   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing [^]
Changeset: 7795b9d3e68e4297f2002f4f71af77de98da5c10
Author: Ranjith S R <ranjith.rangaraju.ext@openbravo.com>
Date: 06-02-2024 15:18:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/commit/7795b9d3e68e4297f2002f4f71af77de98da5c10 [^]

Fixed ISSUE-53502: Updated product query for supporting multiple hqlpropertylist

---
M src/org/openbravo/pos2/product/label/printing/master/ProductExtension.java
---