This commit is contained in:
parent
16aac3adc6
commit
8fea094593
@ -60,7 +60,6 @@ class HiltesImport
|
|||||||
throw new RuntimeException("Error: File not found - " . $file['realPath']);
|
throw new RuntimeException("Error: File not found - " . $file['realPath']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logger->info("Imported $count stocks");
|
$this->logger->info("Imported $count stocks");
|
||||||
} else {
|
} else {
|
||||||
$this->logger->info('No Files');
|
$this->logger->info('No Files');
|
||||||
@ -130,10 +129,8 @@ class HiltesImport
|
|||||||
$this->logger->error($e->getMessage());
|
$this->logger->error($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
// unlink($srcFile);
|
unlink($srcFile);
|
||||||
// unlink($srcFile . '.Ende');
|
unlink($srcFile . '.Ende');
|
||||||
|
|
||||||
unlink($this->rootPath . '/hiltes/h2c/WS.FERTIG');
|
|
||||||
|
|
||||||
$this->logger->info($count . ' Datensätze importiert');
|
$this->logger->info($count . ' Datensätze importiert');
|
||||||
|
|
||||||
|
@ -78,12 +78,17 @@ class Jtl
|
|||||||
$warehouse = $s->getWarehouse();
|
$warehouse = $s->getWarehouse();
|
||||||
$warehouseName = $warehouse->getName();
|
$warehouseName = $warehouse->getName();
|
||||||
|
|
||||||
$data[$s->getProductId() . $warehouseName] = [
|
if (isset($products[$s->getProductId()])) {
|
||||||
'gtin' => $products[$s->getProductId()]->getGtin(),
|
$data[$s->getProductId() . $warehouseName] = [
|
||||||
'stock' => $s->getInstock(),
|
'gtin' => $products[$s->getProductId()]->getGtin(),
|
||||||
'warehouse' => $this->arrLager[$warehouseName] ?? 'Lager ' . $warehouseName
|
'stock' => $s->getInstock(),
|
||||||
];
|
'warehouse' => $this->arrLager[$warehouseName] ?? 'Lager ' . $warehouseName,
|
||||||
|
'lager' => '01'
|
||||||
|
];
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$this->logger->info('No product for stock ' . $s->getProductId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//Wenn Product nicht gefunden werden kann, dann setzte Bestand auf Null
|
//Wenn Product nicht gefunden werden kann, dann setzte Bestand auf Null
|
||||||
|
Loading…
Reference in New Issue
Block a user