public override object Evaluate(PXCache cache, object item, Dictionary <Type, object> pars)
 {
     try
     {
         return(DepreciationCalc.GetRecoveryEndDate(cache.Graph, (FABookBalance)item));
     }
     catch (PXException ex)
     {
         throw new PXSetPropertyException(ex.Message, PXErrorLevel.Error);
     }
     catch
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
        public override void Verify(PXCache cache, object item, List <object> pars, ref bool?result, ref object value)
        {
            int?bookID = (int?)Calculate <BookID>(cache, item);

            try
            {
                value = DepreciationCalc.GetRecoveryEndDate(cache.Graph, (FABookBalance)item);
            }
            catch (PXException ex)
            {
                throw new PXSetPropertyException(ex.Message, PXErrorLevel.Error);
            }
            catch
            {
                value = null;
            }
        }