} // setDateAcct /// <summary> /// Set Period /// </summary> /// <param name="C_Period_ID">period</param> public new void SetC_Period_ID(int C_Period_ID) { base.SetC_Period_ID(C_Period_ID); if (C_Period_ID == 0) { return; } DateTime?dateAcct = GetDateAcct(); // MPeriod period = GetPeriod(); if (period != null && period.IsStandardPeriod()) { if (!period.IsInPeriod(dateAcct)) { base.SetDateAcct(period.GetEndDate()); } } } // setC_Period_ID