protected override bool PrepareInsert(PXCache sender, object row, PXAccumulatorCollection columns) { if (!base.PrepareInsert(sender, row, columns)) { return(false); } EPHistory hist = (EPHistory)row; columns.RestrictPast <EPHistory.finPeriodID>(PXComp.GE, hist.FinPeriodID.Substring(0, 4) + "01"); columns.RestrictFuture <EPHistory.finPeriodID>(PXComp.LE, hist.FinPeriodID.Substring(0, 4) + "99"); return(true); }
protected override bool PrepareInsert(PXCache sender, object row, PXAccumulatorCollection columns) { if (!base.PrepareInsert(sender, row, columns)) { return false; } PMHistory hist = (PMHistory)row; columns.RestrictPast<PMHistory.periodID>(PXComp.GE, hist.PeriodID.Substring(0, 4) + "01"); columns.RestrictFuture<PMHistory.periodID>(PXComp.LE, hist.PeriodID.Substring(0, 4) + "99"); return true; }