Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034016Retail ModulesWeb POSpublic2016-09-19 12:072016-09-19 12:07
guilleaer 
Retail 
normalminoralways
newopen 
5
 
 
No
0034016: OrderLoader should raise an error if cashup pointed by the order does not exists
OrderLoader should raise an error if the cashup id of the jsonorder does not exists in the system
1. Create an order
2. add a product
3. Using dev toosl put a breakpoint just when the cashup_id is set just before send order to backend
4. pay the order
5. when the code stops in the breakpoint, just execute this code in the developer tools:
receipt.set('obposAppCashup', '00AA23');
And then resume the execution.
6. ERROR: Order is processed whithout errors. Cashup field of the order is null
in orderloader class, in method verifyCashupStatus add the following code


- if (cashUp != null && cashUp.isProcessedbo()) {
+ if (cashUp == null) {
+ throw new OBException("The cashup related to this order does not exists");
+ } else if (cashUp != null && cashUp.isProcessedbo()) {
No tags attached.
Issue History
2016-09-19 12:07guilleaerNew Issue
2016-09-19 12:07guilleaerAssigned To => Retail
2016-09-19 12:07guilleaerTriggers an Emergency Pack => No

There are no notes attached to this issue.