From 09b4e1641e63437db4e956e05cd3e67b62f71a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= Date: Sat, 14 Mar 2026 00:54:16 +0300 Subject: [PATCH] updated contact type determination in method --- app/Traits/Import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 827d1df7f..b1f63d29e 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -57,7 +57,7 @@ trait Import event(new ImportViewCreated($import)); return [ - $import->view, + $import->view, $import->data ]; } @@ -103,7 +103,7 @@ trait Import { $id = isset($row['contact_id']) ? $row['contact_id'] : null; - $type = !empty($type) ? $type : (!empty($row['type']) ? (($row['type'] == Transaction::INCOME_TYPE) ? 'customer' : 'vendor') : 'customer'); + $type = !empty($type) ? $type : (!empty($row['type']) ? (($row['type'] == Transaction::INCOME_TYPE) ? Contact::CUSTOMER_TYPE : Contact::VENDOR_TYPE) : Contact::CUSTOMER_TYPE); if (empty($row['contact_id']) && !empty($row['contact_email'])) { $id = $this->getContactIdFromEmail($row, $type);