diff --git a/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs b/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs index eff446e..34732c8 100644 --- a/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs +++ b/ReportingServices.Shared/Repositories/Implementations/ScrapeDatabaseRepository.cs @@ -780,11 +780,13 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository string query = "SELECT l.ENTRY_DATE, " + " l.SHIFT, " + " l.REACTOR, " + - " n.CASS_ID_SAP AS RDS_NO, " + - " l.TOT_REJ, n.AC_DESC " + - " FROM [NCR List] l, NCR n " + + " r.RDS_ID AS RDS_NO, " + + " l.TOT_REJ, " + + " n.AC_DESC " + + " FROM [NCR List] l, NCR n, NCR_RDS r " + " WHERE l.STATUS = 'Open' " + - " AND l.SEQ = n.SEQ"; + " AND n.SEQ = l.SEQ " + + " AND n.SEQ = r.SEQ"; cmd.CommandText = query; diff --git a/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml b/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml index 6eb666b..580ec98 100644 --- a/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml +++ b/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml @@ -23,7 +23,7 @@