Openbravo Issue Tracking System - POS2
View Issue Details
0051248POS2POSpublic2022-12-27 09:572023-07-14 15:00
philippe_mui 
ranjith_qualiantech_com 
immediatecriticalalways
closedfixed 
5
 
23Q4 
Production - Confirmed Stable
2022-11-02
23Q1
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c1080c23ce8ebaf46a1b5e0aedd7d5c46082ea80 [^]
No
0051248: Bug checkbox when adding a service or alteration
Hi,

Access to WEBPOS
select a product and add service
click on service icon and try select (or not) checkboxs (see video)

Current result : Unable to select checkboxs, except the “all” box. If no checkbox is checked, the service interface is opened with the store page

Expected result : Can select a checkbox . If no checkbox is checked, the service interface must be closed

Best regards,
Access to WEBPOS
select a product and add service
click on service icon and try select (or not) checkboxs (see video)
Expected result : Can select a checkbox . If no checkbox is checked, the service interface must be closed.

FASH
caused by defect 0050284 closed Aaron_Alvarez [SALES] - Gift card - #Missing configuration when assigning a customer to the ticket during gift card creation 
? Untitled 116.mp4 (3,305,353) 2022-12-27 09:57
https://issues.openbravo.com/file_download.php?file_id=17985&type=bug
Issue History
2022-12-27 09:57philippe_muiNew Issue
2022-12-27 09:57philippe_muiAssigned To => Retail
2022-12-27 09:57philippe_muiFile Added: Untitled 116.mp4
2022-12-27 09:57philippe_muiTriggers an Emergency Pack => No
2022-12-27 09:58philippe_muiTag Attached: FASH
2023-06-26 15:48AugustoMauchProposed Solution updated
2023-06-26 15:49AugustoMauchAssigned ToRetail => meriem_azaf
2023-06-28 10:25AugustoMauchSeverityminor => major
2023-06-28 10:55AugustoMauchProposed Solution updated
2023-06-28 12:22meriem_azafStatusnew => acknowledged
2023-06-28 12:22meriem_azafStatusacknowledged => scheduled
2023-06-30 10:44AugustoMauchRegression level => Production - Confirmed Stable
2023-06-30 10:44AugustoMauchRegression date => 2022-11-02
2023-06-30 10:44AugustoMauchRegression introduced in release => 23Q1
2023-06-30 10:44AugustoMauchRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/780292a0fdb56ae3ffdc1e7dc3321954cf3cf8ce [^]
2023-06-30 10:44AugustoMauchPrioritynormal => immediate
2023-06-30 10:44AugustoMauchSeveritymajor => critical
2023-06-30 10:45AugustoMauchRegression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/780292a0fdb56ae3ffdc1e7dc3321954cf3cf8ce [^] => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c1080c23ce8ebaf46a1b5e0aedd7d5c46082ea80 [^]
2023-06-30 10:46AugustoMauchAssigned Tomeriem_azaf => gorka_gil
2023-06-30 10:48AugustoMauchRelationship addedcaused by 0050284
2023-07-04 11:40gorka_gilNote Added: 0152098
2023-07-04 11:40gorka_gilAssigned Togorka_gil => ranjith_qualiantech_com
2023-07-07 07:02hgbotNote Added: 0152180
2023-07-07 07:02hgbotNote Added: 0152181
2023-07-07 10:27gorka_gilIssue Monitored: gorka_gil
2023-07-14 15:00hgbotNote Added: 0152505
2023-07-14 15:00hgbotNote Added: 0152506
2023-07-14 15:00hgbotNote Added: 0152507
2023-07-14 15:00hgbotResolutionopen => fixed
2023-07-14 15:00hgbotStatusscheduled => closed
2023-07-14 15:00hgbotFixed in Version => 23Q4
2023-07-14 15:00hgbotNote Added: 0152508

Notes
(0152098)
gorka_gil   
2023-07-04 11:40   
Disscused with Cristian about an approach to make extensible the disable of ticket actions for specific flows.

The idea was to include in teh state.UI.currentWindow.context a property disableTicketActions.

If this property it is set it should disable TicketBPButton.jsx and TicketLines.jsx.

So in this MR https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1304/diffs [^] search for isProductConfiguration and change to areTicketActionsDisabled

And define:
   const areTicketActionsDisabled = useSelector(
    state => state.UI.currentWindow?.context?.disableTicketActions
  );

Then in giftcards needs to set this property, maybe can be set as property in the payload of the navigation, since it is already setting the product and the ticketLines, it should be just add one more property.

This change maybe breaks some tests, that would be needed to addapt.
(0152180)
hgbot   
2023-07-07 07:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/251 [^]
(0152181)
hgbot   
2023-07-07 07:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1941 [^]
(0152505)
hgbot   
2023-07-14 15:00   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: fe1f7b24bdde70105a5483ab038b7a9542907443
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 14-07-2023 16:57:07
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/fe1f7b24bdde70105a5483ab038b7a9542907443 [^]

Related to ISSUE-51248: Update currentWindow context when adding giftcard product
* TicketActions should be disabled when adding giftcard product.
  So, currentWindow context is updated with status of disableTicketActions and
  TicketActions are updated using the currentWindow context

---
A web-jspack/org.openbravo.retail.giftcards/src/model/ticket/actions/AddProductPostHook.js
M web-jspack/org.openbravo.retail.giftcards/src/ob-init.js
---
(0152506)
hgbot   
2023-07-14 15:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/251 [^]
(0152507)
hgbot   
2023-07-14 15:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1941 [^]
(0152508)
hgbot   
2023-07-14 15:00   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 7553cecfac5a1144b075c9bbd9e0c5df040d55e7
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 14-07-2023 17:01:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7553cecfac5a1144b075c9bbd9e0c5df040d55e7 [^]

Fixed ISSUE-51248: Ticket action should be disabled based on window context
* If State currentWindow context have disableTicketAction status,
  then ticketBP and ticketLines should be updated with disable status

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketBPButton/TicketBPButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/TicketLines.jsx
---