Openbravo Issue Tracking System - POS2
View Issue Details
0047797POS2POSpublic2021-10-01 17:002021-10-18 16:25
timothee_catteeuw 
prakashmurugesan88 
normalmajoralways
closedfixed 
5
 
TAP 
No
0047797: JIRA 2364 - Right & Role - Delete current ticket VS Close old ticket
The same user action is used for 2 actions :
- close ticket
- delete ticket
User action is DeleteTicket
1) Go to BO --> https://livebuilds.openbravo.com/retail_pos2_tap_pgsql/ [^]
2) Open role Menu
3) select Role "Vall Blanca user"
4) Go to User Action access Tab
5) Open DeleteTicket User action
6) change the field Approval to approval required
7) GO to https://livebuilds.openbravo.com/retail_pos2_tap_pgsql/web/pos/?terminal=VBS-2 [^]
8) refresh data
9) Start a new ticket and add several items
10) Try to delete ticket by pressing "delete Order" button
--> approval is required --> OK
11) Open a old ticket in orders menu (ex : VBS1/0000073)
12) Try to close ticket by pressing "Close Order" button
--> approval is also required --> KO it is not the same action
No tags attached.
depends on backport 0047807TAP closed prakashmurugesan88 JIRA 2364 - Right & Role - Delete current ticket VS Close old ticket 
related to defect 0055649 new Retail Close Order button is not displayed in portrait mode 
Issue History
2021-10-01 17:00timothee_catteeuwNew Issue
2021-10-01 17:00timothee_catteeuwAssigned To => Retail
2021-10-01 17:00timothee_catteeuwTriggers an Emergency Pack => No
2021-10-04 12:52prakashmurugesan88Assigned ToRetail => prakashmurugesan88
2021-10-04 12:52prakashmurugesan88Statusnew => scheduled
2021-10-04 17:00guilleaerStatusscheduled => acknowledged
2021-10-04 17:00guilleaerStatusacknowledged => scheduled
2021-10-05 14:47hgbotNote Added: 0132170
2021-10-05 14:48hgbotNote Added: 0132171
2021-10-13 15:08hgbotNote Added: 0132318
2021-10-13 15:08hgbotNote Added: 0132319
2021-10-13 15:08hgbotNote Added: 0132320
2021-10-13 15:08hgbotResolutionopen => fixed
2021-10-13 15:08hgbotStatusscheduled => closed
2021-10-13 15:08hgbotNote Added: 0132321
2021-10-18 16:25hgbotNote Added: 0132421
2024-06-03 10:52caristuRelationship addedrelated to 0055649

Notes
(0132170)
hgbot   
2021-10-05 14:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/588 [^]
(0132171)
hgbot   
2021-10-05 14:48   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/694 [^]
(0132318)
hgbot   
2021-10-13 15:08   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: ccb2546df45f29c6f1b1d032a9f6ff5fe14dd18e
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-10-13T13:06:04+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/ccb2546df45f29c6f1b1d032a9f6ff5fe14dd18e [^]

Related to BUG-47797: Created new user action for Close Ticket

---
A web-test/model/business-object/ticket/actions/CloseTicket.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteTicket.js
---
(0132319)
hgbot   
2021-10-13 15:08   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/588 [^]
(0132320)
hgbot   
2021-10-13 15:08   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/694 [^]
(0132321)
hgbot   
2021-10-13 15:08   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c8848a1d5fdcb58b9a6488fa69f3b1d322b68723
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-10-13T16:04:34+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c8848a1d5fdcb58b9a6488fa69f3b1d322b68723 [^]

Fixed BUG-47797: Created new user action for Close Ticket
* Currently both delete and close ticket are handled by Delete Ticket User Action
* Therefore all access validation given for delete ticket applies for close ticket
* Close ticket doesn't require any secured action
* So created separate user action for Close Ticket

---
A web-jspack/org.openbravo.pos2/src/model/ticket/__test__/CloseTicket.test.js
A web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/CloseTicket.js
M web-jspack/org.openbravo.pos2/src/components/ButtonBar2/ButtonBar2-BookedDisabledAll.config.json
M web-jspack/org.openbravo.pos2/src/components/ButtonBar2/ButtonBar2-BookedQuotation.config.json
M web-jspack/org.openbravo.pos2/src/components/ButtonBar2/ButtonBar2-BookedReturn.config.json
M web-jspack/org.openbravo.pos2/src/components/ButtonBar2/ButtonBar2-BookedTicket.config.json
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/finishCashupUi.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---
(0132421)
hgbot   
2021-10-18 16:25   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 4256ab4572ad6a18e804b28f631cdd3c61d85a86
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-10-18T19:53:53+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/4256ab4572ad6a18e804b28f631cdd3c61d85a86 [^]

Related to BUG-47797: Included Close Ticket user action to AD

---
M src-db/database/sourcedata/OBC2_USER_ACTION.xml
---