/// <summary> /// This ensures that the AbstractTrx passed is not null. This is used as a check for other methods. /// </summary> private static void Check_Trx_Passed_Is_Not_Null(AbstractDocumentTrx entity) { if (entity == null) { throw new Exception("No Trx passed. AbstractTrxDAL.Check_SalesorderTrx_Passed_Is_Not_Null"); } }
/// <summary> /// This does a selfError check on the class and runs base class checks /// </summary> public override void ErrorCheck(T entity) { AbstractDocumentTrx trx = entity as AbstractDocumentTrx; trx.SelfErrorCheck(); Check_Trx_Passed_Is_Not_Null(trx); //Check_IsTotalQtyShippedFreshlyCalculated_Freshly_Calculated(trx); //Check_IsFinalSalesPriceFreshlyCalculated_Freshly_Calculated(trx); //Check_IsLineTotalFreshlyCalculated_Freshly_Calculated(trx); }