protected override bool PrepareInsert(PXCache sender, object row, PXAccumulatorCollection columns) { if (!base.PrepareInsert(sender, row, columns)) { return(false); } if (((GLHistory)row).AccountID != reacct) { columns.InsertOnly = true; columns.UpdateFuture <GLHistory.finBegBalance>(null); columns.UpdateFuture <GLHistory.tranBegBalance>(null); columns.UpdateFuture <GLHistory.curyFinBegBalance>(null); columns.UpdateFuture <GLHistory.curyTranBegBalance>(null); columns.UpdateFuture <GLHistory.finYtdBalance>(null); columns.UpdateFuture <GLHistory.tranYtdBalance>(null); columns.UpdateFuture <GLHistory.curyFinYtdBalance>(null); columns.UpdateFuture <GLHistory.curyTranYtdBalance>(null); } return(true); }