Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035623Retail ModulesWeb POSpublic2017-03-27 14:392017-05-16 10:28
adrianromero 
mario_castello 
urgentmajoralways
closedfixed 
5
 
RR17Q3 
marvintm
No
0035623: [SER-QA 2673] In a paid ticket, when trying to add a new payment, providers are executed before rejecting the payment
In a paid ticket, if the user tries to add a new payment, payment providers code are executed before rejecting the payment. This is very important because if for example the payment provider is an electronic payment then the electronic payment is executed BEFORE rejecting the payment. So the payment has been charged to the user but rejected and never added to the receipt.
* In ERP in the payment methods tab for Terminal Types a payment set Payment provider to "Confirm payment dialog" a dummy payment provider that just shows a dialog before adding de payment.
* In Web POS load a paid ticket
* Go to the payments dialog and try to add a new payment:
* Observe the confirm payment dialog of the provider configured appears.
Add the check to reject the payments before invoking payment providers. See changeset attached
No tags attached.
diff issue35623.diff (1,340) 2017-03-27 14:47
https://issues.openbravo.com/file_download.php?file_id=10608&type=bug
Issue History
2017-03-27 14:39adrianromeroNew Issue
2017-03-27 14:39adrianromeroAssigned To => Retail
2017-03-27 14:39adrianromeroResolution time => 1491775200
2017-03-27 14:39adrianromeroTriggers an Emergency Pack => No
2017-03-27 14:47adrianromeroFile Added: issue35623.diff
2017-03-27 22:53mario_castelloAssigned ToRetail => mario_castello
2017-03-27 23:21mario_castelloStatusnew => acknowledged
2017-04-04 17:57mario_castelloStatusacknowledged => scheduled
2017-04-04 21:02hgbotCheckin
2017-04-04 21:02hgbotNote Added: 0095837
2017-04-04 21:02hgbotStatusscheduled => resolved
2017-04-04 21:02hgbotResolutionopen => fixed
2017-04-04 21:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f7be27b20beaf11a149f2125d98c65a5fb3efdef [^]
2017-04-06 16:38hgbotCheckin
2017-04-06 16:38hgbotNote Added: 0095869
2017-04-07 12:03marvintmReview Assigned To => marvintm
2017-04-07 12:03marvintmStatusresolved => closed
2017-04-07 12:03marvintmFixed in Version => RR17Q3
2017-05-16 10:28hgbotCheckin
2017-05-16 10:28hgbotNote Added: 0096615

Notes
(0095837)
hgbot   
2017-04-04 21:02   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f7be27b20beaf11a149f2125d98c65a5fb3efdef
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Tue Apr 04 10:03:01 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f7be27b20beaf11a149f2125d98c65a5fb3efdef [^]

Fixed issue 0035623: [SER-QA 2673] In a paid ticket, when trying to add a new payment, providers are executed before rejecting the payment

- Added validation before executed the payment provider

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0095869)
hgbot   
2017-04-06 16:38   
Repository: tools/automation/pi-mobile
Changeset: 1b88368faca8f53468eff7697ce4eba2df1d54ee
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Wed Apr 05 15:42:34 2017 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1b88368faca8f53468eff7697ce4eba2df1d54ee [^]

Verifies issue 35623: Added automated test 'I35623_OpenReceiptAndPaymentProvider'

- Added new tesIds in the TestIdPack class

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I35623_OpenReceiptAndPaymentProvider.java
---
(0096615)
hgbot   
2017-05-16 10:28   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: cd13ce1880cacd17a67146e9961babdbc91309e7
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon May 15 17:59:08 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cd13ce1880cacd17a67146e9961babdbc91309e7 [^]

Related issue 35830, related issue 35623

It is breaking I35623_OpenReceiptAndPaymentProvider

Backed out changeset abe131fd8ece

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---