From a583d206fb869908c74ac21683dc5e4ab11510c2 Mon Sep 17 00:00:00 2001 From: samyou-softwire Date: Thu, 16 Apr 2026 18:39:02 +0100 Subject: [PATCH] fixup! CLDC-4436: Add a script to recalculate LA of logs in a year fix SalesLog reference --- lib/tasks/search_for_la_on_logs_with_nil_la.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/search_for_la_on_logs_with_nil_la.rake b/lib/tasks/search_for_la_on_logs_with_nil_la.rake index d851183fd..a6bc07654 100644 --- a/lib/tasks/search_for_la_on_logs_with_nil_la.rake +++ b/lib/tasks/search_for_la_on_logs_with_nil_la.rake @@ -5,7 +5,7 @@ task :search_for_la_on_logs_with_nil_la, [:year] => :environment do |_task, args year = args[:year]&.to_i || current_collection_start_year lettings_logs = LettingsLog.filter_by_year(year).where(la: nil, needstype: 1, status: "completed") - sales_logs = LettingsLog.filter_by_year(year).where(la: nil, status: "completed") + sales_logs = SalesLog.filter_by_year(year).where(la: nil, status: "completed") lettings_logs_count = lettings_logs.count sales_logs_count = sales_logs.count