Openbravo Issue Tracking System - POS2
View Issue Details
0056665POS2POSpublic2024-10-07 10:542024-10-29 18:19
ranjith_qualiantech_com 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0056665: 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
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.
Issue History
2024-10-07 10:54ranjith_qualiantech_comNew Issue
2024-10-07 10:54ranjith_qualiantech_comAssigned To => ranjith_qualiantech_com
2024-10-07 10:54ranjith_qualiantech_comTriggers an Emergency Pack => No
2024-10-08 05:37hgbotNote Added: 0170069
2024-10-08 07:50ranjith_qualiantech_comStatusnew => scheduled
2024-10-29 18:19hgbotResolutionopen => fixed
2024-10-29 18:19hgbotStatusscheduled => closed
2024-10-29 18:19hgbotNote Added: 0171121
2024-10-29 18:19hgbotNote Added: 0171122

Notes
(0170069)
hgbot   
2024-10-08 05:37   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/86 [^]
(0171121)
hgbot   
2024-10-29 18:19   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing [^]
Changeset: 6fd97ababa3f0621b45f307fb4c501b9fbb49524
Author: Ranjith S R <r.rangaraju@external.orisha.com>
Date: 29-10-2024 17:18:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/commit/6fd97ababa3f0621b45f307fb4c501b9fbb49524 [^]

Fixed ISSUE-56665: Update Regex to generate characteristic object from string
* Update Regex to generate characteristic object
  1) Accept spaces in the name of the characteristic
  2) Accept spaces, comma, empty in the value of the characteristic

---
A web-jspack/org.openbravo.pos2.product.label.printing/src/components/PrintProductLabel/PrintProductLabelSelectProdStep/PrintProductLabelPrintLabelButton/__test__/PrintProductLabelPrintLabelButton.test.jsx
M web-jspack/org.openbravo.pos2.product.label.printing/src/components/PrintProductLabel/PrintProductLabelSelectProdStep/PrintProductLabelPrintLabelButton/PrintProductLabelPrintLabelButton.jsx
---
(0171122)
hgbot   
2024-10-29 18:19   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/86 [^]