1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Debugging imports

This commit is contained in:
David Bomba 2022-11-10 18:34:26 +11:00
parent 40055a0095
commit 9ac8e8b6de
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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);
}