mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Debugging imports
This commit is contained in:
parent
40055a0095
commit
9ac8e8b6de
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user