From 3bc8b63700846e1915b32361c4a8102e60c88574 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Tue, 4 Feb 2014 12:13:11 +1100 Subject: [PATCH] Bug Fix: Accounting Payment List "Jobs Awaiting Finance - Awaiting Payment" list was incorrectly including jobs. --- Disco.Web/Controllers/JobController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Disco.Web/Controllers/JobController.cs b/Disco.Web/Controllers/JobController.cs index 42807dde..7be5ee64 100644 --- a/Disco.Web/Controllers/JobController.cs +++ b/Disco.Web/Controllers/JobController.cs @@ -158,7 +158,7 @@ namespace Disco.Web.Controllers { var m = new Models.Job.ListModel() { Title = "Jobs Awaiting Finance - Accounting Payment" }; m.JobTable = ManagedJobList.OpenJobsTable(q => q.Where(j => - j.JobTypeId == JobType.JobTypeIds.HNWar && (!j.JobMetaNonWarranty_AccountingChargeAddedDate.HasValue || !j.JobMetaNonWarranty_AccountingChargePaidDate.HasValue) + j.JobTypeId == JobType.JobTypeIds.HNWar && ((j.JobMetaNonWarranty_AccountingChargeRequiredDate.HasValue || j.JobMetaNonWarranty_AccountingChargeAddedDate.HasValue) && !j.JobMetaNonWarranty_AccountingChargePaidDate.HasValue) ).OrderBy(j => j.Id)); // UI Extensions