Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050845
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] POSmajorhave not tried2022-11-10 16:342022-11-14 12:32
ReportercbernerView Statuspublic 
Assigned Tocberner 
PrioritynormalResolutionfixedFixed in Version22Q3.3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version22Q3.3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050845: Possible to pay twice by clicking fast enough on OK button on payment

DescriptionIt is possible to pay twice the current ticket, and if the payment method is configured to also complete the ticket, this will result in two tickets being sent to backend, which results in Error while importing for duplicated ticket.

Check the screenshot to understand where the double click may happen.
Steps To Reproduce1. Login WebPOS with some payment method with payment provider, I've tested it with Credit Card - Mastercard payment provider.
2. Add a product to the ticket and go to Payments
3. Try to add credit card payment, then click 2 times in OK, check that it has been executed twice.
Proposed SolutionDon't allow double clicking on this button.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0050843 closedcberner Possible to pay twice by clicking fast enough on OK button on payment 

-  Notes
(0143527)
hgbot (developer)
2022-11-14 12:29

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1360 [^]
(0143530)
hgbot (developer)
2022-11-14 12:32

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1360 [^]
(0143531)
hgbot (developer)
2022-11-14 12:32

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 6453193fc300153b6a9bf77c752f4c668e1e21b8
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 14-11-2022 12:27:45
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/6453193fc300153b6a9bf77c752f4c668e1e21b8 [^]

Fixes ISSUE-50845: Possible to pay twice by clicking fast enough on OK button on payment

Dialog on payments for confirmation for process provider allowed
clicking on the OK or Cancel button twice, because there was no check
that disabled it. Now it is only allowed to be clicked if the dialog has
not been closed, so it is impossible to click it twice and process twice
the resolve or close dialog functions.

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/ConfirmProcessProvider.jsx
---

- Issue History
Date Modified Username Field Change
2022-11-10 16:44 guilleaer Type defect => backport
2022-11-10 16:44 guilleaer Target Version => 22Q3.3
2022-11-14 12:29 hgbot Note Added: 0143527
2022-11-14 12:32 hgbot Note Added: 0143530
2022-11-14 12:32 hgbot Resolution open => fixed
2022-11-14 12:32 hgbot Status scheduled => closed
2022-11-14 12:32 hgbot Fixed in Version => 22Q3.3
2022-11-14 12:32 hgbot Note Added: 0143531


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker