Debugging imports
This commit is contained in:
parent
40055a0095
commit
9ac8e8b6de
2 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue