Openbravo Issue Tracking System - Retail Modules
View Issue Details
0050839Retail ModulesWeb POSpublic2022-11-10 13:402022-11-10 13:43
aferraz 
Retail 
normalmajorhave not tried
newopen 
5
 
 
No
0050839: Inconsistent state when canceling the action using an action preparation
Action preparations allow to cancel the action throwing a OB.App.Class.ActionCanceled.

If the action is canceled, then following action preparations and the state action are not executed.

In case any business logic is executed before the action preparation cancels the action (using a user action in ReactPOS or backbone code in EnyoPOS), it can create an inconsistent state.

This can happen in addPayment or deletePayment state actions when using a payment provider. See 0050260.
But could happen with any state action where we have an integration run before the state action (payment integration, fiscal integration, etc.).
- Create a ticket
- Set stopAddingPayments property to true in ticket state.
- Add a payment using any payment provider like Adyen.
- Check the payment provider has been run but the add payment action has been canceled by AddPaymentUtils.checkStopAddingPayments() function.
No tags attached.
related to defect 0050260 closed jlopez POS2 Limit payment method when refund with Adyen 
Issue History
2022-11-10 13:40aferrazNew Issue
2022-11-10 13:40aferrazAssigned To => Retail
2022-11-10 13:40aferrazTriggers an Emergency Pack => No
2022-11-10 13:40aferrazRelationship addedrelated to 0050260
2022-11-10 13:43aferrazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25095#r25095

There are no notes attached to this issue.