Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0049618Openbravo ERPA. Platformpublic2022-06-21 14:092022-07-05 13:59
caristu 
jlopez 
highminorhave not tried
closedfixed 
5
 
PR22Q4 
Core
No
0049618: Provide a method in OBDateUtils to retrieve todays date at start of day
It would be nice to have a method in the OBDateUtils to centralize the retrieval of today's date at the beginning of the date. This would help to centralize and avoid code duplication that needs to use this feature.

In description
Create a new method in OBDateUtils with the following implementation:

return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());

And use this method in those places duplicating this logic
No tags attached.
related to feature request 0049358 closed caristu Retail Modules Support selecting the discounts to be loaded into a terminal by a store set based criteria 
related to defect 0051215 closed jlopez POS2 Modify method to retrieve today's date at start of day 
Issue History
2022-06-21 14:09caristuNew Issue
2022-06-21 14:09caristuAssigned To => Triage Platform Base
2022-06-21 14:09caristuModules => Core
2022-06-21 14:09caristuTriggers an Emergency Pack => No
2022-06-21 15:19caristuRelationship addedrelated to 0049358
2022-06-21 15:49caristuProposed Solution updated
2022-06-30 17:43hgbotNote Added: 0138893
2022-07-04 15:10hgbotNote Added: 0139025
2022-07-04 15:11aferrazAssigned ToTriage Platform Base => jlopez
2022-07-04 15:12aferrazStatusnew => scheduled
2022-07-04 15:16aferrazNote Added: 0139026
2022-07-04 15:16aferrazStatusscheduled => resolved
2022-07-04 15:16aferrazFixed in Version => PR22Q4
2022-07-04 15:16aferrazFixed in SCM revision => c4fe8b2f3f48993efe0bd3b2069151466455bae8
2022-07-04 15:16aferrazResolutionopen => fixed
2022-07-04 15:16aferrazReview Assigned To => aferraz
2022-07-04 15:16aferrazStatusresolved => closed
2022-07-04 15:16aferrazReview Assigned Toaferraz =>
2022-07-04 15:16aferrazFixed in SCM revision c4fe8b2f3f48993efe0bd3b2069151466455bae8 =>
2022-07-05 11:23hgbotNote Added: 0139071
2022-07-05 13:59hgbotNote Added: 0139087
2022-07-05 13:59hgbotNote Added: 0139088
2022-12-21 09:50aferrazRelationship addedrelated to 0051215

Notes
(0138893)
hgbot   
2022-06-30 17:43   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/632 [^]
(0139025)
hgbot   
2022-07-04 15:10   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/632 [^]
(0139026)
aferraz   
2022-07-04 15:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^] [^]
Changeset: c4fe8b2f3f48993efe0bd3b2069151466455bae8
Author: Javier López <javier.lopez@openbravo.com>
Date: 04-07-2022 15:12:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/c4fe8b2f3f48993efe0bd3b2069151466455bae8 [^] [^]

Fixes issue 49618: Provides a method in OBDateUtils to retrieve a date at start of day
(0139071)
hgbot   
2022-07-05 11:23   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/636 [^]
(0139087)
hgbot   
2022-07-05 13:59   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: ca1fb5f11674ee82f0f40d514df13fd3b4441bf0
Author: Javier López <javier.lopez@precognis.com>
Date: 05-07-2022 11:59:51
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/ca1fb5f11674ee82f0f40d514df13fd3b4441bf0 [^]

Related to ISSUE-49618: Fix copyright

---
M src-test/src/org/openbravo/erpCommon/utility/OBDateUtilsTest.java
---
(0139088)
hgbot   
2022-07-05 13:59   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/636 [^]