Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051882Retail ModulesGift cards and gift voucherspublic2023-03-16 12:092023-03-31 06:36
ngarcia 
radhakrishnan 
urgentmajoralways
closedfixed 
5
 
 
No
0051882: Wrong expiration date printed in a Credit Note partially used
Wrong expiration date printed in a Credit Note partially used.

Debugging the process I had:

dialog.args.giftcard.obgcneExpirationdate
'2023-03-23'

creditNote.expirationDate
'23-03-2023'

and it returns:

OB.I18N.parseServerDate(creditNote.expirationDate)
Mon Mar 20 2023 00:00:00 GMT+0100 (Central European Standard Time)
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VBSSB1 [^]

Configure and start the HWM

In the backoffice:
Set the Credit Note Expiration Days to 7 in Vall Blanca Store organization

In the POS:
Create a ticket and pay it by cash
Click on Verified Returns
Return it and pay it by Credit Note
Check in the printer that the Expiration Date is today+7 (in my case 2023-03-23)

Add a product with a price lower than the credit note amount
Pay it with Credit Note
Select the previously created credit note
Check in the printer that the Expiration Date does not match the expiration of the credit note in the backoffice (in my case it shows 2023-03-20)
No tags attached.
related to defect 0045128 closed ranjith_qualiantech_com Expiration date of the giftcard not calculated in the POS 
related to defect 0047059RR20Q3.4 closed rqueralta When you paid with credit note the expiration date is wrong (recalculated). 
related to defect 0052131 closed radhakrishnan Wrong expiration date format printed in a credit note if Credit Note expiration days is different from 0 
Issue History
2023-03-16 12:09ngarciaNew Issue
2023-03-16 12:09ngarciaAssigned To => Retail
2023-03-16 12:09ngarciaTriggers an Emergency Pack => No
2023-03-16 12:09ngarciaIssue Monitored: networkb
2023-03-16 12:09ngarciaIssue End Monitor: networkb
2023-03-16 12:24ngarciaRelationship addedrelated to 0047059
2023-03-17 12:22radhakrishnanAssigned ToRetail => radhakrishnan
2023-03-17 12:22radhakrishnanStatusnew => scheduled
2023-03-24 10:33ngarciaRelationship addedrelated to 0045128
2023-03-28 07:13hgbotNote Added: 0148005
2023-03-31 06:36hgbotResolutionopen => fixed
2023-03-31 06:36hgbotStatusscheduled => closed
2023-03-31 06:36hgbotNote Added: 0148135
2023-03-31 06:36hgbotNote Added: 0148136
2023-04-17 13:33ngarciaRelationship addedrelated to 0052131

Notes
(0148005)
hgbot   
2023-03-28 07:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/201 [^]
(0148135)
hgbot   
2023-03-31 06:36   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 0328f94be8f390d24ec020aeef4198ff89264bfa
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 31-03-2023 04:35:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/0328f94be8f390d24ec020aeef4198ff89264bfa [^]

Fixed ISSUE-51882: Expiration date of credit note should not be format when printing
* Expiration date of credit note already formatted while adding payment, so no
  need to format it again while printing credit note

---
M web/org.openbravo.retail.giftcards/js/hooks/printGiftCardPrePrintHook.js
---
(0148136)
hgbot   
2023-03-31 06:36   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/201 [^]