Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040488Retail ModulesWeb POSpublic2019-03-29 08:252019-05-02 16:30
jorge-garcia 
javierRodriguez 
highmajoralways
closedfixed 
5
 
RR19Q3 
marvintm
No
0040488: It is possible to synchronize a ticket without lines and with payments
It is possible to synchronize a ticket without lines and with payments
1) Log in WebPOS
2) Create a new empty ticket
3) Go to menu and click on option "Layaway this receipt"
4) Go to Browse and add an Avalanche Transceiver. Check the total is 150.50
5) Click on total button and add a Payment with Card of 100€. Layaway button is showing and is enabled.
6) Click on "Avalanche Transceiver" line of the ticket and click "Delete" from Edit tab. Verify total button is 0.00 and it is enabled (this is OK).
7) Click on total button and verify Layaway button is showing and enabled (this is wrong).
8) Click on Layaway button and verify an overpayment popup is shown. Click on "OK" button from the popup and verify the ticket is synchronized. (this is wrong too)
9) Login in ERP and go to Sales Order. Verify the ticket is created without lines and with a payment associated.
The solution could be separate in two parts:

  - The first step is to hide Layaway button in case there is no lines on the ticket.

  - The second step is to avoid any action from Layaway button in case the receipt has no lines (security check).
No tags attached.
diff indexOutOfBound_partialFix.diff (2,214) 2019-03-29 08:29
https://issues.openbravo.com/file_download.php?file_id=12807&type=bug
Issue History
2019-03-29 08:25jorge-garciaNew Issue
2019-03-29 08:25jorge-garciaAssigned To => Retail
2019-03-29 08:25jorge-garciaResolution time => 1555624800
2019-03-29 08:25jorge-garciaTriggers an Emergency Pack => No
2019-03-29 08:29jorge-garciaFile Added: indexOutOfBound_partialFix.diff
2019-03-29 08:30jorge-garciaNote Added: 0110911
2019-03-29 08:40ngarciaIssue Monitored: ngarcia
2019-03-29 11:45javierRodriguezAssigned ToRetail => javierRodriguez
2019-04-24 10:46javierRodriguezNote Added: 0111257
2019-04-24 10:47javierRodriguezStatusnew => scheduled
2019-04-24 10:47javierRodriguezStatusscheduled => resolved
2019-04-24 10:47javierRodriguezResolutionopen => fixed
2019-04-24 10:47javierRodriguezFixed in SCM revision => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b8a0023a34e7 [^]
2019-04-26 08:47marvintmReview Assigned To => marvintm
2019-04-26 08:47marvintmStatusresolved => closed
2019-04-26 08:47marvintmFixed in Version => RR19Q3
2019-05-02 16:30hgbotCheckin
2019-05-02 16:30hgbotNote Added: 0111440

Notes
(0110911)
jorge-garcia   
2019-03-29 08:30   
Added diff for second step from proposed solution
(0111257)
javierRodriguez   
2019-04-24 10:46   
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b8a0023a34e7 [^]
(0111440)
hgbot   
2019-05-02 16:30   
Repository: tools/automation/pi-mobile
Changeset: 36280f320756d2c96b12cef0fc5bca9a2516b97e
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Tue Apr 30 15:45:04 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/36280f320756d2c96b12cef0fc5bca9a2516b97e [^]

Related to issue 40488: added automated test

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I40488_VerifyTicketWithoutLinesCannotBeSynchronized.java
---