Openbravo Issue Tracking System - POS2
View Issue Details
0051765POS2POSpublic2023-03-03 08:452023-03-03 10:21
caristu 
caristu 
highmajorhave not tried
closedfixed 
5
 
23Q2 
No
0051765: Reasons and approvals of deleted ticket lines are not removed from the state
The reasons and approvals of deleted ticket lines are not removed from the state
0) In backoffice, add a new user action reason for the set line price user action
1) Go to the pos, add a new line to the ticket
2) Change the line price, enter the reason when requested
3) Delete the line
4) Add a new line
5) Pay the ticket
6) In backoffice again, note that the order is not correctly processed. We have a new error while importing: java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: OrderLine
No tags attached.
caused by feature request 0050868 closed caristu Persist user actions reasons and approvals 
related to defect 0051932 closed caristu Cannot persist reasons information when the selected reason is the empty option 
Issue History
2023-03-03 08:45caristuNew Issue
2023-03-03 08:45caristuAssigned To => caristu
2023-03-03 08:45caristuTriggers an Emergency Pack => No
2023-03-03 08:55hgbotNote Added: 0147251
2023-03-03 09:01caristuRelationship addedcaused by 0050868
2023-03-03 10:21hgbotNote Added: 0147254
2023-03-03 10:21hgbotResolutionopen => fixed
2023-03-03 10:21hgbotStatusnew => closed
2023-03-03 10:21hgbotFixed in Version => 23Q2
2023-03-03 10:21hgbotNote Added: 0147255
2023-03-03 10:21alostaleSeverityminor => major
2023-04-26 16:02rafarodaRelationship addedrelated to 0051932

Notes
(0147251)
hgbot   
2023-03-03 08:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1569 [^]
(0147254)
hgbot   
2023-03-03 10:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1569 [^]
(0147255)
hgbot   
2023-03-03 10:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 633ff4d9311d94730487fe2dd30dc2c1a6f0e65e
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 03-03-2023 09:19:38
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/633ff4d9311d94730487fe2dd30dc2c1a6f0e65e [^]

fixes BUG-51765: reasons/approvals of deleted lines are not cleaned from the state

---
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/CleanLineReasonsAndApprovals.js
A web-jspack/org.openbravo.pos2/src/model/ticket/actions/__test__/CleanLineReasonsAndApprovals.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketExtension.js
---