diff --git a/app/Import/Specifics/AbnAmroDescription.php b/app/Import/Specifics/AbnAmroDescription.php index cd884c7c29..8f509cbf84 100644 --- a/app/Import/Specifics/AbnAmroDescription.php +++ b/app/Import/Specifics/AbnAmroDescription.php @@ -58,7 +58,7 @@ class AbnAmroDescription implements SpecificInterface */ public function run(array $row): array { - $this->row = $row; + $this->row = array_values($row); if (!isset($row[7])) { return $row; diff --git a/app/Import/Specifics/PresidentsChoice.php b/app/Import/Specifics/PresidentsChoice.php index 1c0d5ca1ba..c25a17ab89 100644 --- a/app/Import/Specifics/PresidentsChoice.php +++ b/app/Import/Specifics/PresidentsChoice.php @@ -50,6 +50,7 @@ class PresidentsChoice implements SpecificInterface */ public function run(array $row): array { + $row = array_values($row); // first, if column 2 is empty and 3 is not, do nothing. // if column 3 is empty and column 2 is not, move amount to column 3, *-1 if (isset($row[3]) && 0 === strlen($row[3])) { diff --git a/app/Import/Specifics/RabobankDescription.php b/app/Import/Specifics/RabobankDescription.php index 94a9e1f559..1a1caa8f4c 100644 --- a/app/Import/Specifics/RabobankDescription.php +++ b/app/Import/Specifics/RabobankDescription.php @@ -52,6 +52,7 @@ class RabobankDescription implements SpecificInterface */ public function run(array $row): array { + $row = array_values($row); Log::debug(sprintf('Now in RabobankSpecific::run(). Row has %d columns', count($row))); $oppositeAccount = isset($row[5]) ? trim($row[5]) : ''; $oppositeName = isset($row[6]) ? trim($row[6]) : ''; diff --git a/app/Import/Specifics/SnsDescription.php b/app/Import/Specifics/SnsDescription.php index c4fa347421..131823d1d9 100644 --- a/app/Import/Specifics/SnsDescription.php +++ b/app/Import/Specifics/SnsDescription.php @@ -51,6 +51,7 @@ class SnsDescription implements SpecificInterface */ public function run(array $row): array { + $row = array_values($row); $row[17] = ltrim($row[17], "'"); $row[17] = rtrim($row[17], "'");