From 34bc4540bf77ca06b190c668c34fc89fad6d8fa9 Mon Sep 17 00:00:00 2001 From: objecttothis Date: Tue, 6 Feb 2024 12:28:02 +0400 Subject: [PATCH] Added Error log - Logs message when error encountered during Customers CSV Import --- app/Controllers/Customers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Controllers/Customers.php b/app/Controllers/Customers.php index 13c5c5dea..a797f9990 100644 --- a/app/Controllers/Customers.php +++ b/app/Controllers/Customers.php @@ -488,6 +488,7 @@ class Customers extends Persons if($invalidated) { $failCodes[] = $i; + log_message('error',"Row $i was not imported: Either email or account number already exist or data was invalid."); } elseif($this->customer->save_customer($person_data, $customer_data)) {