Openbravo Issue Tracking System - POS2
View Issue Details
0052959POS2POSpublic2023-07-13 13:192023-10-09 08:38
plujan 
Rajesh_18 
normalminorhave not tried
scheduledopen 
5
 
 
No
0052959: [23Q3] Notes data-testid is made with the content of the field
When creating a new note for a line ticket, the element data-testid contains the value of the field which: a) It is a potential performance issue as the note can be very long and a ticket can contain multiple notes and b) In case two lines contain the same note it will make the data-testid not unique
1. Create a ticket and add it a product
2. Insert a note to the line with a very long text
3. Check the data-testid for the line's note and see it has the format:

<div class="obpos2CurrentTicketLineNote" data-testid="obpos2CurrentTicketLineNote-Lorem ipsum dolor sit amet, consectetur adipisci tempor incidunt ut labore et dolore magna aliqua veniam, quis nostrud exercitation ullamcorpor s commodo consequat. Duis autem vel eum irrure esse molestiae consequat, vel illum dolore eu fugi et iusto odio"># Note: Lorem ipsum dolor sit amet, consectetur adipisci tempor incidunt ut labore et dolore magna aliqua veniam, quis nostrud exercitation ullamcorpor s commodo consequat. Duis autem vel eum irrure esse molestiae consequat, vel illum dolore eu fugi et iusto odio</div>
No tags attached.
related to defect 0052958 closed Rajesh_18 [23Q3] Note for a product line is trimmed to 255 chars without a warning to the user 
png TicketWithNote.png (44,725) 2023-07-13 13:19
https://issues.openbravo.com/file_download.php?file_id=18747&type=bug
png
Issue History
2023-07-13 13:19plujanNew Issue
2023-07-13 13:19plujanAssigned To => Retail
2023-07-13 13:19plujanFile Added: TicketWithNote.png
2023-07-13 13:19plujanTriggers an Emergency Pack => No
2023-07-13 13:19plujanRelationship addedrelated to 0052958
2023-10-09 07:40Rajesh_18Assigned ToRetail => Rajesh_18
2023-10-09 07:40Rajesh_18Statusnew => scheduled
2023-10-09 08:38hgbotNote Added: 0155654

Notes
(0155654)
hgbot   
2023-10-09 08:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2159 [^]