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

This commit is contained in:
Nicolas Micoud 2019-07-31 21:19:14 +02:00
parent 96b9060618
commit fed0d9cabe
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.compiere.util.TimeUtil;
import org.compiere.util.Trx;
/**
@ -236,7 +237,7 @@ public class MConversionRate extends X_C_Conversion_Rate
C_ConversionType_ID = MConversionType.getDefault(AD_Client_ID);
// Conversion Date
if (ConvDate == null)
ConvDate = new Timestamp (System.currentTimeMillis());
ConvDate = TimeUtil.getDay(null);
// Get Rate
String sql = "SELECT MultiplyRate "