Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031906Retail ModulesGift cards and gift voucherspublic2016-01-15 12:332017-08-08 11:41
lorenzofidalgo 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
main 
RR17Q4 
marvintm
No
0031906: [RR16Q1] Delete lines of a receipt when a Gift Card has been added can induce errors, returning money to the client included
It is possible to induce several wrong flows if it is used a Gift Card as Payment Method and, after that, one or more product lines are deleted. This also happens if product's price are edited.
0-With Gift Cards & Vouchers installed and a Gift Card created to use it later, login POS as vallblanca.
1-Add 10x "Alpine skiing backpack 27L".
2-Add 1x "Baby carrier".
3-Click Total Amount button and add the previously created Gift Card as payment method.
4-Now click in 10x "Alpine skiing backpack 27L" line and delete it.
5-Click Total Amount button again and you will realize Gift Card is now unbalanced. Actually, it now returns money to the client.
If there is a Gift Card applied to the receipt and some products are deleted then Gift Card should be removed at that moment due to the circumstances have changed. It is possible that now the Gift Card is not applicable.
No tags attached.
png GCWrongFlows.png (171,778) 2016-01-15 12:33
https://issues.openbravo.com/file_download.php?file_id=8925&type=bug
png
Issue History
2016-01-15 12:33lorenzofidalgoNew Issue
2016-01-15 12:33lorenzofidalgoAssigned To => Retail
2016-01-15 12:33lorenzofidalgoFile Added: GCWrongFlows.png
2016-01-15 12:33lorenzofidalgoTriggers an Emergency Pack => No
2016-04-21 09:46lorenzofidalgoNote Added: 0085814
2017-01-31 20:05mario_castelloStatusnew => acknowledged
2017-01-31 20:05mario_castelloAssigned ToRetail => mario_castello
2017-05-16 16:35mario_castelloAssigned Tomario_castello => Retail
2017-06-20 15:54ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-06-20 15:54ranjith_qualiantech_comStatusacknowledged => scheduled
2017-07-05 08:15hgbotCheckin
2017-07-05 08:15hgbotNote Added: 0097861
2017-07-07 07:39hgbotCheckin
2017-07-07 07:39hgbotNote Added: 0097925
2017-07-07 07:41ranjith_qualiantech_comStatusscheduled => resolved
2017-07-07 07:41ranjith_qualiantech_comResolutionopen => fixed
2017-08-08 11:41marvintmReview Assigned To => marvintm
2017-08-08 11:41marvintmStatusresolved => closed
2017-08-08 11:41marvintmFixed in Version => RR17Q4

Notes
(0085814)
lorenzofidalgo   
2016-04-21 09:46   
This behaviour is still present in RR16Q2. Besides, it is also applicable to Gift Vouchers adding some product(s), adding Gift Vouchers to pay those products and, after that, deleting the products.
(0097861)
hgbot   
2017-07-05 08:15   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 959b2e2acb28705a7d2fbd939bdbfc7f195ce7fc
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jul 05 11:44:38 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/959b2e2acb28705a7d2fbd939bdbfc7f195ce7fc [^]

Related to issue 31906 : Gift Cards must be validated before deleting the receipt lines

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/giftcards/GCNVComponentProvider.java
A web/org.openbravo.retail.giftcards/js/hooks/predeletelinehook.js
---
(0097925)
hgbot   
2017-07-07 07:39   
Repository: tools/automation/pi-mobile
Changeset: 7ae2e8f34e389ea88ed7a78740d6d3841164214a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jul 07 11:09:14 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/7ae2e8f34e389ea88ed7a78740d6d3841164214a [^]

Verifies issue 31906 : Added automated test 'I31906_VerifyReceiptLineDeletionWithGiftCard'

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/giftcards/I31906_VerifyReceiptLineDeletionWithGiftCard.java
---