Openbravo Issue Tracking System - POS2
View Issue Details
0052723POS2POSpublic2023-06-12 15:412023-06-14 12:56
pniam 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
23Q3 
approved
Gold
No
0052723: Buttons disable in Send and print on POS2 is not working
When the popup from send and print is showed on POS2 there's a rule on the buttons to set the "disabled" attribute to true in case of the hardwareURL is empty
But it seems this "disabled" seems to be ignored, changing the code and seting it to true directly also fails, the button is always able to be pressed.
Go to the backoffice and set the "channel Touchpoint Type"'s check named "Deliver Receipt Options" to true

Go to the file named "getReceiptDeliveryOptionsDefaultButtons.js" from POS2 module and change the line
"disabled: !TerminalProperty.get('terminal').hardwareurl,"
to "disabled: true," to be sure is set as true

Then log in into React pos and do a transaction, when the popup is shown the buttons aren't bloqued and can be pressed
No tags attached.
Issue History
2023-06-12 15:41pniamNew Issue
2023-06-12 15:41pniamAssigned To => Retail
2023-06-12 15:41pniamTriggers an Emergency Pack => No
2023-06-12 16:03guillermogilOBNetwork customer => No
2023-06-12 16:03guillermogilSummarySend and print on POS2 is not working => Buttons disable in Send and print on POS2 is not working
2023-06-12 16:03guillermogilDescription Updatedbug_revision_view_page.php?rev_id=26249#r26249
2023-06-12 16:04guillermogilOBNetwork customerNo => Gold
2023-06-13 09:41ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-06-13 15:10hgbotMerge Request Status => open
2023-06-13 15:10hgbotNote Added: 0151112
2023-06-14 12:56hgbotMerge Request Statusopen => approved
2023-06-14 12:56hgbotNote Added: 0151147
2023-06-14 12:56hgbotResolutionopen => fixed
2023-06-14 12:56hgbotStatusnew => closed
2023-06-14 12:56hgbotFixed in Version => 23Q3
2023-06-14 12:56hgbotNote Added: 0151148

Notes
(0151112)
hgbot   
2023-06-13 15:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1892 [^]
(0151147)
hgbot   
2023-06-14 12:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1892 [^]
(0151148)
hgbot   
2023-06-14 12:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 54dceed164b704860b7eba00cd06b39add40e5c9
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 14-06-2023 10:55:44
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/54dceed164b704860b7eba00cd06b39add40e5c9 [^]

Fixed ISSUE-52723: Updated disable property in ReceiptDeliveryOption buttons
* ExtraButtons disable property "isDisabled" should be used in ReceiptDeliveryOption buttons

---
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/BookedReceiptDeliveryOptions/BookedReceiptDeliveryOptions.jsx
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/BookedReceiptDeliveryOptions/__test__/BookedReceiptDeliveryOptions.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/DraftReceiptDeliveryOptions/__test__/getDraftReceiptDeliveryOptionsButtons.test.js
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/DraftReceiptDeliveryOptions/getDraftReceiptDeliveryOptionsButtons.js
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/SharedReceiptDeliveryOptions/__test__/getReceiptDeliveryOptionsDefaultButtons.jsx
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/SharedReceiptDeliveryOptions/getReceiptDeliveryOptionsDefaultButtons.js
M web-jspack/org.openbravo.pos2/src/components/ReceiptDeliveryOptions/stories/ReceiptDeliveryOptionsStoriesUtils.jsx
---