Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040824Retail ModulesGift cards and gift voucherspublic2019-05-09 15:212019-05-09 15:21
migueldejuana 
Retail 
normalminoralways
newopen 
5
 
 
No
0040824: Consuming Gift card request fails and we get javascript error
When we are consuming a Gift Certificate, if the request reaches the timeout we get a js error, the gift card is consumed in backend but it is not reflected in client side.
- Put a breakpoint in ConsumeGiftCardAmount.java
- Open WebPOS
- Add a product
- In menu select "Gift/Credit notes"
- Select one and press apply in the opened popup
- It stops in the breakpoint, wait until timeout is reached
- ERROR!
e2215f1a765f45407d08d292c82c5f1f.js:192 TypeError: callback is not a function
    at consumeFail (e2215f1a765f45407d08d292c82c5f1f.js:111302)
    at e2215f1a765f45407d08d292c82c5f1f.js:109037
    at serviceError (e2215f1a765f45407d08d292c82c5f1f.js:1667)
    at Object.fail [as origFail] (e2215f1a765f45407d08d292c82c5f1f.js:1727)
    at Object.ajaxRequest.fail (e2215f1a765f45407d08d292c82c5f1f.js:2567)
    at Object.timeoutComplete (enyo.js:900); line: Object.OB.UTIL.showError (http://localhost:8080/openbravo/web/js/gen/e2215f1a765f45407d08d292c82c5f1f.js:14177:6 [^]) (*,+)
No tags attached.
Issue History
2019-05-09 15:21migueldejuanaNew Issue
2019-05-09 15:21migueldejuanaAssigned To => Retail
2019-05-09 15:21migueldejuanaTriggers an Emergency Pack => No

There are no notes attached to this issue.