Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041529Retail ModulesReturn Receiptpublic2019-08-02 00:202019-08-02 08:11
matias-bernal 
Retail 
normalminoralways
newopen 
5
pi 
 
No
0041529: OBRETUR_ReturnFromOrig hook does not execute the callbackExecutor
In module does not execute a callbackExecutor when the current ticket has the property params.isReturn then this prevent the follow executions of anothers hooks of this type.
* Create a new hook of type "OBRETUR_ReturnFromOrig".
* In POS try do a verified return then the org.openbravo.retail.returns/js/hookReturnPaidOrder.js is executed and your new hook doesnot run.
Run allways the callbackExecutor outside IF statement.

--- a/modules/org.openbravo.retail.returns/web/org.openbravo.retail.returns/js/hookReturnPaidOrder.js 2019-08-01 16:40:25.997720000 +0200
+++ b/modules/org.openbravo.retail.returns/web/org.openbravo.retail.returns/js/hookReturnPaidOrder.js 2019-08-01 17:41:08.412779000 +0200
@@ -29,9 +29,8 @@
           callbacks: callbacks
         }
       });
- } else {
- OB.UTIL.HookManager.callbackExecutor(args, callbacks);
     }
+ OB.UTIL.HookManager.callbackExecutor(args, callbacks);
 
     return;
   });
No tags attached.
Issue History
2019-08-02 00:20matias-bernalNew Issue
2019-08-02 00:20matias-bernalAssigned To => Retail
2019-08-02 00:20matias-bernalTriggers an Emergency Pack => No
2019-08-02 08:11PracticsIssue Monitored: Practics

There are no notes attached to this issue.