Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054704Retail ModulesCoupons OTFpublic2024-02-19 12:192024-03-08 06:44
kchoperena 
sreehari 
normalmajoralways
closedfixed 
5
pi 
 
No
0054704: CouponOTFRule API - startingTime/endingTime issue in import process
When launching a Coupon OTF Rule import, if we just put the hour in the startTime, we get the following error:


Error while importing an item: 09:00:00 cannot be parsed to a date using the dateFormat yyyy-MM-dd HH:mm:ss

It should be able just to set an hour, not date + hour
Try to import a Coupon OTF Rule using the /org.openbravo.api.ImportService/CouponOTFRule endpoint

RESULT: An error happens:
Error while importing an item: 09:00:00 cannot be parsed to a date using the dateFormat yyyy-MM-dd HH:mm:ss
No tags attached.
related to defect 0054506 closed rqueralta API OTFCouponRules - startingTime/endingTime issue 
related to defect 0055046 closed Rajesh_18 CouponOTFRule API - startingTime/endingTime issue in import process when UPDATING 
Issue History
2024-02-19 12:19kchoperenaNew Issue
2024-02-19 12:19kchoperenaAssigned To => Retail
2024-02-19 12:19kchoperenaTriggers an Emergency Pack => No
2024-02-19 12:20kchoperenaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27542#r27542
2024-02-19 12:21guillermogilRelationship addedrelated to 0054506
2024-02-28 15:56sreehariAssigned ToRetail => sreehari
2024-03-01 06:20sreehariStatusnew => scheduled
2024-03-07 07:03hgbotNote Added: 0161800
2024-03-08 06:44hgbotResolutionopen => fixed
2024-03-08 06:44hgbotStatusscheduled => closed
2024-03-08 06:44hgbotNote Added: 0161869
2024-03-08 06:44hgbotNote Added: 0161870
2024-03-25 13:33AgatheBertinRelationship addedrelated to 0055046

Notes
(0161800)
hgbot   
2024-03-07 07:03   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api/-/merge_requests/11 [^]
(0161869)
hgbot   
2024-03-08 06:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api [^]
Changeset: b925b6de16e4abd018350a3f1dae6b18f8614db1
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 08-03-2024 05:44:40
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api/-/commit/b925b6de16e4abd018350a3f1dae6b18f8614db1 [^]

Fixes ISSUE-54704: Created Import handler for CouponOTFRule
Created a hook to handle the time import values and pass them as date values

---
A src/org/openbravo/retail/discounts/coupons/otf/api/mappings/otfcouponrules/ImportCouponOTFRuleJavaPropertyMappingHandler.java
---
(0161870)
hgbot   
2024-03-08 06:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf.api/-/merge_requests/11 [^]