Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0034016 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Web POS | minor | always | 2016-09-19 12:07 | 2016-09-19 12:07 | |||||||
Reporter | guilleaer | View Status | public | |||||||||
Assigned To | Retail | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0034016: OrderLoader should raise an error if cashup pointed by the order does not exists | |||||||||||
Description | OrderLoader should raise an error if the cashup id of the jsonorder does not exists in the system | |||||||||||
Steps To Reproduce | 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 | |||||||||||
Proposed Solution | 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()) { | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Issue History | |||
Date Modified | Username | Field | Change |
2016-09-19 12:07 | guilleaer | New Issue | |
2016-09-19 12:07 | guilleaer | Assigned To | => Retail |
2016-09-19 12:07 | guilleaer | Triggers an Emergency Pack | => No |
Copyright © 2000 - 2009 MantisBT Group |