IDEMPIERE-1758 Currency conversion rate default for ValidTo is misleading
This commit is contained in:
parent
128ee5cbab
commit
3184fed1a1
|
@ -32,7 +32,6 @@ import org.compiere.util.DB;
|
||||||
import org.compiere.util.DisplayType;
|
import org.compiere.util.DisplayType;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
import org.compiere.util.TimeUtil;
|
|
||||||
import org.compiere.util.Trx;
|
import org.compiere.util.Trx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -403,8 +402,11 @@ public class MConversionRate extends X_C_Conversion_Rate
|
||||||
|
|
||||||
// Date Range Check
|
// Date Range Check
|
||||||
Timestamp from = getValidFrom();
|
Timestamp from = getValidFrom();
|
||||||
if (getValidTo() == null)
|
if (getValidTo() == null) {
|
||||||
setValidTo (TimeUtil.getDay(2056, 1, 29)); // no exchange rates after my 100th birthday
|
// setValidTo (TimeUtil.getDay(2056, 1, 29)); // no exchange rates after my 100th birthday
|
||||||
|
log.saveError("FillMandatory", Msg.getElement(getCtx(), COLUMNNAME_ValidTo));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Timestamp to = getValidTo();
|
Timestamp to = getValidTo();
|
||||||
|
|
||||||
if (to.before(from))
|
if (to.before(from))
|
||||||
|
|
Loading…
Reference in New Issue