Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042103Retail ModulesGift cards and gift voucherspublic2019-10-23 10:202019-11-15 09:27
francisco 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q1 
marvintm
Pre packaging ( pi )
2019-07-09
main
https://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/49203ce8c04adec93ad8d831f17f631c02c96415 [^]
No
0042103: Wrong Payment by Gift Card
While paying through Gift Card the payment entry is not correct.
Instead of the deducting the card balance, it is deducting the whole amount of the ticket.
The payment plan in the order is also empty.


The issue is happening in the version 19Q3, in the version 19Q2 it was working fine
Tested in etail_modules_pgsql_pi as Whitevalley Admin:

In BackOffice:
Create a gift card Test in product window with initial amount 100€
Add the gift card to the Assortment

In POS:
Buy the gift card
Buy a product wich amount is more than 100€
Pay with the gift card test

The giftcard is paying more than the 100€ that it has on it
No tags attached.
depends on backport 0042210RR19Q4 closed ranjith_qualiantech_com Wrong Payment by Gift Card 
png Selection_898.png (114,995) 2019-10-23 10:22
https://issues.openbravo.com/file_download.php?file_id=13441&type=bug
png
Issue History
2019-10-23 10:20franciscoNew Issue
2019-10-23 10:20franciscoAssigned To => Retail
2019-10-23 10:20franciscoResolution time => 1573599600
2019-10-23 10:20franciscoTriggers an Emergency Pack => No
2019-10-23 10:22franciscoFile Added: Selection_898.png
2019-10-24 16:26ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-10-25 07:54ranjith_qualiantech_comStatusnew => scheduled
2019-10-29 16:37franciscoRegression level => Pre packaging ( pi )
2019-10-29 16:37franciscoDescription Updatedbug_revision_view_page.php?rev_id=19581#r19581
2019-11-05 10:26ranjith_qualiantech_comRegression date => 2019-07-09
2019-11-05 10:26ranjith_qualiantech_comRegression introduced in release => main
2019-11-05 10:26ranjith_qualiantech_comRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/49203ce8c04adec93ad8d831f17f631c02c96415 [^]
2019-11-06 07:50ranjith_qualiantech_comNote Added: 0115420
2019-11-06 07:53ranjith_qualiantech_comNote Edited: 0115420bug_revision_view_page.php?bugnote_id=0115420#r19606
2019-11-06 10:58ranjith_qualiantech_comStatusscheduled => resolved
2019-11-06 10:58ranjith_qualiantech_comResolutionopen => fixed
2019-11-06 15:20marvintmStatusresolved => new
2019-11-06 15:20marvintmResolutionfixed => open
2019-11-06 15:21marvintmStatusnew => scheduled
2019-11-06 15:21marvintmStatusscheduled => resolved
2019-11-06 15:21marvintmResolutionopen => fixed
2019-11-15 09:27marvintmReview Assigned To => marvintm
2019-11-15 09:27marvintmStatusresolved => closed
2019-11-15 09:27marvintmFixed in Version => RR20Q1

Notes
(0115420)
ranjith_qualiantech_com   
2019-11-06 07:50   
(edited on: 2019-11-06 07:53)
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 093d34ac10c4e56a35ad1bf3711495cfdf5fb957
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Nov 06 11:56:32 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/093d34ac10c4e56a35ad1bf3711495cfdf5fb957 [^] [^]

Related to issue 42103 : Giftcard product standardPrice should be same as Current balance amount

* If receipt status is negative, gift card should be added with positive amount and vice versa

---
M web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js