Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040442Retail ModulesGift cards and gift voucherspublic2019-03-22 12:462019-04-09 15:31
ucarrion 
rqueralta 
normalmajorhave not tried
closedfixed 
5
 
RR19Q2 
marvintm
No
0040442: The gift card’s balance is consumed incorrectly
The gift card’s balance is consumed when trying to reimburse it instead of being non returnable. (gift card based on product)
1.In backend, set ‘Gift card infinite’ product as not returnable
2.In webpos, create an order including a ‘Gift card infinite’
3.Pay the order and process it
4.Go to ‘Gift / Credit Notes’ menu option
5.Select the gift card created previously
6.Once the popup opened, press ‘Return’
7.An error message popup raises; press Ok and the action is cancelled
8.Go back to backend and check that the current balance of the gift card created is ‘0.00’
I see two possible solutions:
1.Do not allow to press ‘Return’ in step 6 for products configured as not returnable.
2.Do not consume the gift card’s balance if all the steps are reproduced.
No tags attached.
causes defect 0040961 closed rqueralta Credit Note reimbursment not allowed from 'Gift / Credit Notes' dialog 
Issue History
2019-03-22 12:46ucarrionNew Issue
2019-03-22 12:46ucarrionAssigned To => Retail
2019-03-22 12:46ucarrionResolution time => 1554156000
2019-03-22 12:46ucarrionTriggers an Emergency Pack => No
2019-03-22 12:53ucarrionDescription Updatedbug_revision_view_page.php?rev_id=18516#r18516
2019-03-22 14:03rqueraltaAssigned ToRetail => rqueralta
2019-03-22 14:03rqueraltaStatusnew => scheduled
2019-03-23 13:26hgbotCheckin
2019-03-23 13:26hgbotNote Added: 0110605
2019-03-23 13:26hgbotStatusscheduled => resolved
2019-03-23 13:26hgbotResolutionopen => fixed
2019-03-23 13:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/05a0132eaea6f2d9faf981c3bfa4a37c5b9a75b2 [^]
2019-03-29 12:55marvintmReview Assigned To => marvintm
2019-03-29 13:07marvintmStatusresolved => closed
2019-03-29 13:07marvintmFixed in Version => RR19Q2
2019-04-09 15:31hgbotCheckin
2019-04-09 15:31hgbotNote Added: 0111045
2019-05-28 17:34guillermogilRelationship addedcauses 0040961

Notes
(0110605)
hgbot   
2019-03-23 13:26   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 05a0132eaea6f2d9faf981c3bfa4a37c5b9a75b2
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Mar 22 16:24:55 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/05a0132eaea6f2d9faf981c3bfa4a37c5b9a75b2 [^]

Fixed issue 40442: The gift card’s balance is consumed incorrectly

- If giftcard product is not returnable "Return" button is disabled

---
M src/org/openbravo/retail/giftcards/FindGiftCard.java
M web/org.openbravo.retail.giftcards/js/components/GiftCardDetails.js
---
(0111045)
hgbot   
2019-04-09 15:31   
Repository: tools/automation/pi-mobile
Changeset: f6f4540bcf930a720d8bb69477032197a651f266
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Mon Mar 25 14:58:58 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/f6f4540bcf930a720d8bb69477032197a651f266 [^]

Related to issue 40442: added automated test

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