From 2ce3fadd99f7d9f724012e61124e8f4617b28882 Mon Sep 17 00:00:00 2001 From: EnesSacid-Buker <73346401+EnesSacid-Buker@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:39:39 +0300 Subject: [PATCH] fix typo --- app/Traits/Import.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 5aa5baf30..e6e818a39 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -172,7 +172,7 @@ trait Import $data = [ 'company_id' => company_id(), - 'type' => $row['account_type'] ? $row['account_type'] : 'bank', + 'type' => !empty($row['account_type']) ? $row['account_type'] : 'bank', 'currency_code' => $row['currency_code'], 'name' => !empty($row['account_name']) ? $row['account_name'] : $row['currency_code'], 'number' => !empty($row['account_number']) ? $row['account_number'] : (string) rand(1, 10000), @@ -199,7 +199,7 @@ trait Import $data = [ 'company_id' => company_id(), - 'type' => $row['account_type'] ? $row['account_type'] : 'bank', + 'type' => !empty($row['account_type']) ? $row['account_type'] : 'bank', 'name' => $row['account_name'], 'number' => !empty($row['account_number']) ? $row['account_number'] : (string) rand(1, 10000), 'currency_code' => !empty($row['currency_code']) ? $row['currency_code'] : default_currency(), @@ -226,7 +226,7 @@ trait Import $data = [ 'company_id' => company_id(), - 'type' => $row['account_type'] ? $row['account_type'] : 'bank', + 'type' => !empty($row['account_type']) ? $row['account_type'] : 'bank', 'number' => $row['account_number'], 'name' => !empty($row['account_name']) ? $row['account_name'] : $row['account_number'], 'currency_code' => !empty($row['currency_code']) ? $row['currency_code'] : default_currency(),