Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049618
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminorhave not tried2022-06-21 14:092022-07-05 13:59
ReportercaristuView Statuspublic 
Assigned Tojlopez 
PriorityhighResolutionfixedFixed in VersionPR22Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049618: Provide a method in OBDateUtils to retrieve todays date at start of day

DescriptionIt 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.

Steps To ReproduceIn description
Proposed SolutionCreate 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0049358 closedcaristu Retail Modules Support selecting the discounts to be loaded into a terminal by a store set based criteria 
related to defect 0051215 closedjlopez POS2 Modify method to retrieve today's date at start of day 

-  Notes
(0138893)
hgbot (developer)
2022-06-30 17:43

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/632 [^]
(0139025)
hgbot (developer)
2022-07-04 15:10

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/632 [^]
(0139026)
aferraz (manager)
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 (developer)
2022-07-05 11:23

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/636 [^]
(0139087)
hgbot (developer)
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 (developer)
2022-07-05 13:59

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/636 [^]

- Issue History
Date Modified Username Field Change
2022-06-21 14:09 caristu New Issue
2022-06-21 14:09 caristu Assigned To => Triage Platform Base
2022-06-21 14:09 caristu Modules => Core
2022-06-21 14:09 caristu Triggers an Emergency Pack => No
2022-06-21 15:19 caristu Relationship added related to 0049358
2022-06-21 15:49 caristu Proposed Solution updated
2022-06-30 17:43 hgbot Note Added: 0138893
2022-07-04 15:10 hgbot Note Added: 0139025
2022-07-04 15:11 aferraz Assigned To Triage Platform Base => jlopez
2022-07-04 15:12 aferraz Status new => scheduled
2022-07-04 15:16 aferraz Note Added: 0139026
2022-07-04 15:16 aferraz Status scheduled => resolved
2022-07-04 15:16 aferraz Fixed in Version => PR22Q4
2022-07-04 15:16 aferraz Fixed in SCM revision => c4fe8b2f3f48993efe0bd3b2069151466455bae8
2022-07-04 15:16 aferraz Resolution open => fixed
2022-07-04 15:16 aferraz Review Assigned To => aferraz
2022-07-04 15:16 aferraz Status resolved => closed
2022-07-04 15:16 aferraz Review Assigned To aferraz =>
2022-07-04 15:16 aferraz Fixed in SCM revision c4fe8b2f3f48993efe0bd3b2069151466455bae8 =>
2022-07-05 11:23 hgbot Note Added: 0139071
2022-07-05 13:59 hgbot Note Added: 0139087
2022-07-05 13:59 hgbot Note Added: 0139088
2022-12-21 09:50 aferraz Relationship added related to 0051215


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker