Ejemplo n.º 1
0
        private bool NoOverdue(LeaseBalanceRow row, DateTime date)
        {
            if (row == null)
            {
                return(true);
            }
            if ((row.Rent ?? 0) > 0)
            {
                return(false);
            }
            //assume zero backrent from here on

            if (row.IsActive &&
                date <= row.DTO.RightsDueDate)
            {
                return(true);
            }

            if ((row.Rights ?? 0) > 0)
            {
                return(false);
            }
            //assume zero rights balance from here on

            return(true);
        }
Ejemplo n.º 2
0
 private bool IsRightsOverdue(LeaseBalanceRow row, DateTime date)
 {
     if ((row.Rights ?? 0) <= 0)
     {
         return(false);
     }
     return(date > row.DTO.RightsDueDate);
 }