mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04: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);
|
$data = $this->getCsvData($entity_type);
|
||||||
|
|
||||||
|
nlog($data);
|
||||||
|
|
||||||
if (is_array($data)) {
|
if (is_array($data)) {
|
||||||
$data = $this->preTransformCsv($data, $entity_type);
|
$data = $this->preTransformCsv($data, $entity_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nlog($data);
|
||||||
|
|
||||||
if (empty($data)) {
|
if (empty($data)) {
|
||||||
$this->entity_count['clients'] = 0;
|
$this->entity_count['clients'] = 0;
|
||||||
|
|
||||||
|
@ -76,6 +76,7 @@ class CSVIngest implements ShouldQueue
|
|||||||
$engine = $this->bootEngine();
|
$engine = $this->bootEngine();
|
||||||
|
|
||||||
foreach (['client', 'product', 'invoice', 'payment', 'vendor', 'expense', 'quote', 'bank_transaction'] as $entity) {
|
foreach (['client', 'product', 'invoice', 'payment', 'vendor', 'expense', 'quote', 'bank_transaction'] as $entity) {
|
||||||
|
nlog("importing {$entity}");
|
||||||
$engine->import($entity);
|
$engine->import($entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user