From 9ac8e8b6de965f178154a0f9d4eff2a74eba002d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 10 Nov 2022 18:34:26 +1100 Subject: [PATCH] Debugging imports --- app/Import/Providers/Csv.php | 4 ++++ app/Jobs/Import/CSVIngest.php | 1 + 2 files changed, 5 insertions(+) diff --git a/app/Import/Providers/Csv.php b/app/Import/Providers/Csv.php index fdf70ca691..f718e01d1f 100644 --- a/app/Import/Providers/Csv.php +++ b/app/Import/Providers/Csv.php @@ -115,10 +115,14 @@ class Csv extends BaseImport implements ImportInterface $data = $this->getCsvData($entity_type); +nlog($data); + if (is_array($data)) { $data = $this->preTransformCsv($data, $entity_type); } +nlog($data); + if (empty($data)) { $this->entity_count['clients'] = 0; diff --git a/app/Jobs/Import/CSVIngest.php b/app/Jobs/Import/CSVIngest.php index 1f9a652d90..d61961ed9f 100644 --- a/app/Jobs/Import/CSVIngest.php +++ b/app/Jobs/Import/CSVIngest.php @@ -76,6 +76,7 @@ class CSVIngest implements ShouldQueue $engine = $this->bootEngine(); foreach (['client', 'product', 'invoice', 'payment', 'vendor', 'expense', 'quote', 'bank_transaction'] as $entity) { + nlog("importing {$entity}"); $engine->import($entity); }