Openbravo Issue Tracking System - POS2
View Issue Details
0051511POS2POSpublic2023-01-31 00:462023-02-01 15:52
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
23Q2 
No
0051511: RM-4500: [GIFT CARD / CREDIT NOTE] : Scan Credit note bar code at the payment not working
See:
https://openbravo.atlassian.net/browse/RM-4500 [^]
This issue occurs when there is a gift card as well as a credit note button in the payment buttons. The flow:
- the scanner changes the UI state, setting a property who's name is retrieved from the paymentprovider instance.
- All payment providers use the same payment-state-property name (gcnv_scannedGiftCard).
- When the state is changed the paymentbutton will open the giftcarddialogWhat goes wrong
- when there are both a credit note and a gift card button in the payment button bar then both will start the payment flow, one will open the dialog, but for both a processing dialog is opened.When then applying the gift card one process dialog is never removed, blocking the user.

Solution: a payment button should only open a dialog of the scanned card is of the type of the cards supported by the button (a credit note payment button should only open the dialog when a credit note is scanned).
No tags attached.
related to defect 0051285 closed Retail When paying by credit note, iif we scan a barcode of credit note, the credit note is not found 
related to defect 0051391 closed ruben_jimenez FLUN-3481: Regression 23Q1 - impossible to pay with credit note 
Issue History
2023-01-31 00:46mtaalNew Issue
2023-01-31 00:46mtaalAssigned To => mtaal
2023-01-31 00:46mtaalTriggers an Emergency Pack => No
2023-01-31 00:49hgbotNote Added: 0146055
2023-01-31 00:53hgbotNote Added: 0146056
2023-01-31 09:16rafarodaRelationship addedrelated to 0051285
2023-01-31 09:16rafarodaRelationship addedrelated to 0051391
2023-02-01 15:52hgbotResolutionopen => fixed
2023-02-01 15:52hgbotStatusnew => closed
2023-02-01 15:52hgbotNote Added: 0146122
2023-02-01 15:52hgbotFixed in Version => 23Q2
2023-02-01 15:52hgbotNote Added: 0146123
2023-02-01 15:52hgbotNote Added: 0146124
2023-02-01 15:52hgbotNote Added: 0146125
2023-02-01 15:52hgbotNote Added: 0146126
2023-02-01 15:52hgbotNote Added: 0146127
2023-02-01 15:52hgbotNote Added: 0146128
2023-02-01 15:52hgbotNote Added: 0146129
2023-02-01 15:52hgbotNote Added: 0146130

Notes
(0146055)
hgbot   
2023-01-31 00:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1494 [^]
(0146056)
hgbot   
2023-01-31 00:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/187 [^]
(0146122)
hgbot   
2023-02-01 15:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1494 [^]
(0146123)
hgbot   
2023-02-01 15:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f69ce1e21d86b7ff3996cd9492edab395ab0e447
Author: Martin Taal <martin.taal@openbravo.com>
Date: 01-02-2023 14:52:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f69ce1e21d86b7ff3996cd9492edab395ab0e447 [^]

Fixes ISSUE-51511: allow paymentprovider to control what payment state it can handle

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentButton/PaymentButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/PaymentProvider.js
---
(0146124)
hgbot   
2023-02-01 15:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: bde36ff1715a53b5100d6d93477ff8e09ef2be0f
Author: Martin Taal <martin.taal@openbravo.com>
Date: 30-01-2023 23:53:33
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/bde36ff1715a53b5100d6d93477ff8e09ef2be0f [^]

Fixes ISSUE-51511: allow paymentprovider to control what payment state it can handle

---
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/CreditNotePaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GCNVPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GiftCardPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GiftCertificatePaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GroupedPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/services/scan/handlers/GiftCardScanEventHandler.js
---
(0146125)
hgbot   
2023-02-01 15:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 56ef930a66b9c711a501145a04b952f8ab36adad
Author: Martin Taal <martin.taal@openbravo.com>
Date: 30-01-2023 23:53:33
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/56ef930a66b9c711a501145a04b952f8ab36adad [^]

Fixes ISSUE-51511: allow paymentprovider to control what payment state it can handle

---
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/CreditNotePaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GiftCardPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GiftCertificatePaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GroupedPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/services/scan/handlers/GiftCardScanEventHandler.js
---
(0146126)
hgbot   
2023-02-01 15:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 48c6d62121d55f0a588a16bdb434d7d3f1fc3573
Author: Martin Taal <martin.taal@openbravo.com>
Date: 31-01-2023 01:24:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/48c6d62121d55f0a588a16bdb434d7d3f1fc3573 [^]

Related to ISSUE-51511: solve typo

---
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GroupedPaymentProvider.js
---
(0146127)
hgbot   
2023-02-01 15:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 876b094a2ca0e858f9783ccf0895722d26247a23
Author: Martin Taal <martin.taal@openbravo.com>
Date: 31-01-2023 17:33:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/876b094a2ca0e858f9783ccf0895722d26247a23 [^]

Related to ISSUE-51511: implemented grouped payment handling of scanning

---
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GCNVPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GroupedPaymentProvider.js
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/__test__/GroupedPaymentProvider.test.js
---
(0146128)
hgbot   
2023-02-01 15:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 3607f3001080ef41f2351726026dd17c073f59ac
Author: Martin Taal <martin.taal@openbravo.com>
Date: 31-01-2023 17:33:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/3607f3001080ef41f2351726026dd17c073f59ac [^]

Related to ISSUE-51511: implemented grouped payment handling of scanning

---
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/__test__/GroupedPaymentProvider.test.js
---
(0146129)
hgbot   
2023-02-01 15:52   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 627490a9d37cbf1389f59723a20144752b0a34ae
Author: Martin Taal <martin.taal@openbravo.com>
Date: 31-01-2023 23:19:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/627490a9d37cbf1389f59723a20144752b0a34ae [^]

Related to ISSUE-51511: solve grouped payment

---
M web-jspack/org.openbravo.retail.giftcards/src/components/PaymentIntegration/GroupedPaymentProvider.js
---
(0146130)
hgbot   
2023-02-01 15:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/187 [^]