|View Issue Details|
|Type||Category||Severity||Reproducibility||Date Submitted||Last Update|
|defect||[Retail Modules] Cash up||major||always||2020-05-21 17:06||2020-06-01 19:46|
|Priority||urgent||Resolution||no change required||Fixed in Version|
|Status||closed||Fix in branch||Fixed in SCM revision|
|OS Version||Database version||Ant version|
|Product Version||SCM revision|
|Review Assigned To||marvintm|
|Regression introduced in release|
|Regression introduced by commit|
|Triggers an Emergency Pack||No|
0044143: Adding a product, deleting the line and doing a cash up is generating an open ticket of 0 price
|Description||If I add a product to ticket, delete the line and do a cash up, there is an open ticket of 0 price to process.|
|Steps To Reproduce||1. Open webpos|
2. Add product to ticket
3. Delete Line
4. Do cash up-->See open ticket at 0 price
We have tested it with different users and it does not seem to happen always.
|Tags||No tags attached.|
As far as I can see, it can be reproduced always (at least in pi), and it is actually the expected behaviour.
When you login in the WebPOS, the application initially creates a ticket, but doesn't save it in the database, as it is unclear if the user will actually do anything with it. If at that point, you try to do cashup, you will see that there are no tickets pending to be processed.
However, if after that, you add a line to the ticket (or in fact execute any other action, like changing the customer), then the ticket is added to the ticket list, and saved in the database.
We have no automatic way to detect if the ticket is meaningful from this point on, and if it would therefore be safe to delete it automatically. It would not be enough to check if the ticket has lines, as it could have payments, or it could have some valuable property set by some request to some integration. Deleting a line, even if it's the only one, is not the same as deleting the ticket.
Therefore, from that moment in which the ticket was first saved in the database, we need to delegate on the user to delete it (if he wants to), either from the main POS UI, or later on from the Cashup window.
|2020-05-21 17:06||lmonreal||New Issue|
|2020-05-21 17:06||lmonreal||Assigned To||=> Retail|
|2020-05-21 17:06||lmonreal||Triggers an Emergency Pack||=> No|
|2020-05-21 17:07||lmonreal||Summary||Adding a product, deleting the line and doing a cash up is generated an open ticket of 0 price => Adding a product, deleting the line and doing a cash up is generating an open ticket of 0 price|
|2020-05-21 17:10||lmonreal||Relationship added||blocks 0044141|
|2020-05-21 17:11||lmonreal||Relationship deleted||blocks 0044141|
|2020-05-22 10:00||lmonreal||Priority||high => urgent|
|2020-06-01 19:46||marvintm||Review Assigned To||=> marvintm|
|2020-06-01 19:46||marvintm||Note Added: 0120509|
|2020-06-01 19:46||marvintm||Status||new => closed|
|2020-06-01 19:46||marvintm||Resolution||open => no change required|
|Copyright © 2000 - 2009 MantisBT Group|