Openbravo Issue Tracking System - POS2
View Issue Details
0056058POS2POSpublic2024-07-18 11:292024-07-29 10:11
kchoperena 
Rajesh_18 
highmajoralways
closedsuspended 
5
 
 
No
0056058: Product characteristic values with commas are not correctly managed in the print product labels flow
The print product labels at the end sends a JSON to create the report for the labels. In this JSON, the product characteristics that contains commas are breaking the structure sometimes. In other cases, the characteristic value is only present until the comma

Example:
- Product Characteristic: Dimentions
- Product Characteristic Value: L 22,5cm

  Available in the JSON: Dimentions: "L 22"
PRE-REQUIREMENTS:
1.- Create a Product Characteristic called Dimentions on the back-office
2.- Create "L 22,5cm" as value for the product characteristic
3.- Assign it to a product
4.- A print product label template should be configured also

STEPS:
1.- Log into the POS2
2.- Execute the print product labels flow
3.- Select previously configured product with the characteristic (put a breakpoint on the return of calculateLabelTemplates function in js)
4.- Try to complete the flow

EXPECTED RESULT: The characteristics array inside the JSON object is wrong. The Dimentions characteristic appears with the value 'L 22'
No tags attached.
png Screenshot from 2024-07-18 11-21-37.png (186,451) 2024-07-18 11:29
https://issues.openbravo.com/file_download.php?file_id=20024&type=bug
png

png Screenshot from 2024-07-18 11-29-52.png (76,971) 2024-07-18 11:30
https://issues.openbravo.com/file_download.php?file_id=20025&type=bug
png
Issue History
2024-07-18 11:29kchoperenaNew Issue
2024-07-18 11:29kchoperenaAssigned To => Retail
2024-07-18 11:29kchoperenaFile Added: Screenshot from 2024-07-18 11-21-37.png
2024-07-18 11:29kchoperenaTriggers an Emergency Pack => No
2024-07-18 11:30kchoperenaFile Added: Screenshot from 2024-07-18 11-29-52.png
2024-07-18 12:48guilleaerStatusnew => acknowledged
2024-07-18 13:52Rajesh_18Assigned ToRetail => Rajesh_18
2024-07-18 13:53Rajesh_18Statusacknowledged => scheduled
2024-07-29 10:11gorka_gilNote Added: 0167432
2024-07-29 10:11gorka_gilStatusscheduled => closed
2024-07-29 10:11gorka_gilResolutionopen => suspended

Notes
(0167432)
gorka_gil   
2024-07-29 10:11   
This is not an issue, it is a featured request that will be reported in jira and added to the plan.

Since currently it is not supported by design the commas in the characteristics values.

The way to fix this is stop using the products search cache and make queries to indexed db, and evaluate the performance.