Can't get a conversion rate if conversionDate is not set

Description

Hi,

MConversionRate.getRate has a major issue because if ConvDate param is not set, iDempiere uses System.currentTimeMillis() - means with hour-minutes-seconds...
And the sql query fails to retrieve data (in my case a rate is valid since first to last day of month).
Thus '2019-07-31 11:09:13.131' is NOT between ValidFrom (07/01) AND ValidTo (07/31)

Attached patch fixes it.

Regards,

Nicolas

Environment

None

Attachments

1

Activity

Show:
Fixed

Details

Assignee

Reporter

Labels

Priority

Created July 31, 2019 at 9:34 AM
Updated October 1, 2019 at 2:21 PM
Resolved July 31, 2019 at 7:19 PM