Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036126Retail ModulesGift cards and gift voucherspublic2017-05-29 14:242017-06-12 09:21
prakashmurugesan88 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR17Q3 
marvintm
No
0036126: [SER-QA <2862>] The process log of the process 'Expiration date process' is not correct.
The process log of the process 'Expiration date process' is not correct.
For instance, when just one gift certificate is closed, the log says '2017-05-19 11:03:16.583 - Number of gift Cards closed: 51'

Refer attachment GiftCard_ExpirationDateProcess.png.
Setup:
Configure giftcards payment method and payment type in POS Terminal Type and POS Terminal window respectively.
Configure Gift Cards Reason/Type.

Steps:
POS:
Create gift certificate so that there is only one gift card that is expired(past date) and that needs to be closed in 'Expiration date process' process.

Backend:
Goto "Process Request" Window.
Select appropriate client.
Select process 'Expiration date process'.
Timing "Run Immediately".
Click Schedule Process button.

Issue:
Click Process Montior Tab.
Select the latest record.
Check Process Log:
2017-05-29 11:32:10.728 - Number of gift Cards closed: 50
2017-05-29 11:32:10.734 - Time consumed in last 50 Gift Cards: 6
2017-05-29 11:32:10.735 - Time elapsed: 117 milis
2017-05-29 11:32:10.735 - Number of gift Cards closed: 51

Here number of records closed is 1. But in log it displays 51.
Attached patch ExpirationDateProcess.patch
SER-QA
png GiftCard_ExpirationDateProcess.png (96,476) 2017-05-29 14:24
https://issues.openbravo.com/file_download.php?file_id=10805&type=bug
png

patch ExpirationDateProcess.patch (1,763) 2017-05-29 15:29
https://issues.openbravo.com/file_download.php?file_id=10806&type=bug
Issue History
2017-05-29 14:24prakashmurugesan88New Issue
2017-05-29 14:24prakashmurugesan88Assigned To => Retail
2017-05-29 14:24prakashmurugesan88File Added: GiftCard_ExpirationDateProcess.png
2017-05-29 14:24prakashmurugesan88Resolution time => 1497218400
2017-05-29 14:24prakashmurugesan88Triggers an Emergency Pack => No
2017-05-29 14:28prakashmurugesan88Tag Attached: SER-QA
2017-05-29 15:29prakashmurugesan88File Added: ExpirationDateProcess.patch
2017-05-29 15:31prakashmurugesan88Proposed Solution updated
2017-05-30 09:10ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-05-30 09:10ranjith_qualiantech_comStatusnew => scheduled
2017-05-31 07:31hgbotCheckin
2017-05-31 07:31hgbotNote Added: 0097039
2017-05-31 09:12ranjith_qualiantech_comStatusscheduled => resolved
2017-05-31 09:12ranjith_qualiantech_comResolutionopen => fixed
2017-06-12 09:21marvintmReview Assigned To => marvintm
2017-06-12 09:21marvintmStatusresolved => closed
2017-06-12 09:21marvintmFixed in Version => RR17Q3

Notes
(0097039)
hgbot   
2017-05-31 07:31   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: ef03262ce91f49496029b1e4a5e58d75f959b0f9
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed May 31 11:00:34 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/ef03262ce91f49496029b1e4a5e58d75f959b0f9 [^]

Related to issue 36126 : Modified Expiration date process to show proper count of closed gift cards in process request logs

* Modified Process Name from "Expiration Date Process" to "Gift Cards Expiration Date Process"

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src/org/openbravo/retail/giftcards/process/ExpirationDateProcess.java
---