Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045262Retail ModulesGift cards and gift voucherspublic2020-10-20 17:462020-11-06 07:32
ngarcia 
prakashmurugesan88 
urgentmajoralways
closedfixed 
5
 
 
No
0045262: Gift card is consumed with an amount higher than the total pending amount if the payment amount is defined
Gift card is consumed with an amount higher than the total pending amount if the payment amount is defined
Log in into https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=PS-1 [^]

Add two Adhesive body warmers to the ticket
Return this line
Click on total
Select Credit Note payment method and complete

Add one Adhesive body warmers to the ticket
Click on the total
Set an amount of 1000 and click on credit note
Check the pop-up shows Credit Note payment: 1,000.00
Select the previously created credit note (8.72)
Apply it
Check although the ticket total is 4.36 the whole gift card is consumed and there is an overpayment with the difference
Only consume the minimum amount between the gift card balance and the total pending to pay amount
No tags attached.
Issue History
2020-10-20 17:46ngarciaNew Issue
2020-10-20 17:46ngarciaAssigned To => Retail
2020-10-20 17:46ngarciaResolution time => 1604962800
2020-10-20 17:46ngarciaTriggers an Emergency Pack => No
2020-10-20 17:47ngarciaIssue Monitored: networkb
2020-11-02 08:16prakashmurugesan88Assigned ToRetail => prakashmurugesan88
2020-11-04 06:50prakashmurugesan88Statusnew => scheduled
2020-11-05 04:15hgbotNote Added: 0124179
2020-11-06 07:32hgbotResolutionopen => fixed
2020-11-06 07:32hgbotStatusscheduled => closed
2020-11-06 07:32hgbotNote Added: 0124200
2020-11-06 07:32hgbotNote Added: 0124201

Notes
(0124179)
hgbot   
2020-11-05 04:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/29 [^]
(0124200)
hgbot   
2020-11-06 07:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: d377d828b175080c7d6d0f9d264c1147278c694f
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-11-04T18:56:41+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/d377d828b175080c7d6d0f9d264c1147278c694f [^]

Fixed BUG-45262: Fixes Gift Certificate and Credit Note payment can consume minimum of either gift card balance or pending amount to pay

---
M web/org.openbravo.retail.giftcards/js/hooks/preaddpaymenthook.js
---
(0124201)
hgbot   
2020-11-06 07:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/29 [^]