Openbravo Issue Tracking System - POS2
View Issue Details
0048161POS2POSpublic2021-11-25 13:002023-01-09 18:59
caristu 
cberner 
highminorhave not tried
scheduledopen 
5
 
 
No
0048161: Still some UI properties added to the product when it is included into the ticket
When adding a product into the ticket, it is still added with extra (unneeded) properties coming from the UI components. This information should not be included as part of the Ticket (business logic)

Note that this was partially solved with issue 0046594 where keymap specific properties are being removed.
1- Add a product into the ticket
2- In dev tools type "OB.App.State.getState().Ticket.lines[0].product" in order to check the information of the added product. Note it contains some properties which are coming from the ProductButton component itself: "variantClass", "variantStyle", "leftAction" etc.
- Ideally the component should receive a product object with just the specific product information
- Note that some components are affected by this change: the ProductPopoverButtonBar component does: payload.product.leftAction, the product is received from the state (state.UI.productPopOverInformation) where previously it has been stored in the state including the UI specific properties.
No tags attached.
related to defect 0046594 closed Retail UI properties added to the product when it is included into the ticket 
related to defect 0048188 acknowledged Triage Platform Base Replace ProductPopoverButtonBar global state usage with a React context 
png props.png (31,292) 2021-11-25 13:01
https://issues.openbravo.com/file_download.php?file_id=16400&type=bug
png
Issue History
2021-11-25 13:00caristuNew Issue
2021-11-25 13:00caristuAssigned To => Retail
2021-11-25 13:00caristuTriggers an Emergency Pack => No
2021-11-25 13:00caristuIssue generated from0046594
2021-11-25 13:00caristuRelationship addedrelated to 0046594
2021-11-25 13:01caristuFile Added: props.png
2021-12-01 12:20caristuDescription Updatedbug_revision_view_page.php?rev_id=23375#r23375
2021-12-01 12:20caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23377#r23377
2021-12-01 17:51caristuProposed Solution updated
2021-12-01 17:59caristuIssue cloned0048188
2021-12-01 17:59caristuRelationship addedrelated to 0048188
2021-12-01 18:00caristuProposed Solution updated
2021-12-08 22:43elaraAssigned ToRetail => elara
2021-12-08 22:43elaraStatusnew => scheduled
2021-12-09 19:41hgbotNote Added: 0133587
2021-12-14 13:23cbernerAssigned Toelara => cberner
2023-01-09 18:59hgbotNote Added: 0145225

Notes
(0133587)
hgbot   
2021-12-09 19:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/748 [^]
(0145225)
hgbot   
2023-01-09 18:59   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/748 [^]