diff --git a/HRM.DA/DA/Salary/SalaryProcessDA.cs b/HRM.DA/DA/Salary/SalaryProcessDA.cs index 271602f..3c28259 100644 --- a/HRM.DA/DA/Salary/SalaryProcessDA.cs +++ b/HRM.DA/DA/Salary/SalaryProcessDA.cs @@ -120,7 +120,7 @@ namespace HRM.DA object obj = tc.ExecuteScalar("Select SALARYPROCESSID from SALARYPROCESS where SALARYMONTH=%d AND PAYROLLTYPEID=%n", dSMonth, payrollTypeID); - if (obj == DBNull.Value) return false; + if (obj == DBNull.Value || obj == null) return false; else bShowInDesktop=true; return bShowInDesktop; }