add Delta
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Command;
|
||||
|
||||
use App\Helper\HiltesImport;
|
||||
use App\Helper\Jtl;
|
||||
use App\Repository\ProductRepository;
|
||||
use App\Repository\StockRepository;
|
||||
use App\Repository\WarehouseRepository;
|
||||
@@ -57,7 +58,7 @@ class HiltesImportCommand extends Command
|
||||
$hiltesImport = new HiltesImport($this->productRepository,$this->warehouseRepository,$this->stockRepository,$this->logger);
|
||||
|
||||
|
||||
$r = $hiltesImport->startImport();
|
||||
$r = $hiltesImport->startImport($input->getOption('delta'));
|
||||
|
||||
if(isset($r['error'])){
|
||||
$io->error($r['text']);
|
||||
@@ -66,8 +67,8 @@ class HiltesImportCommand extends Command
|
||||
}else{
|
||||
$io->info('Start Hiltes Push JTL');
|
||||
|
||||
$jtl = new JtlExportCommand($this->productRepository,$this->stockRepository,$this->warehouseRepository,$this->logger);
|
||||
$jtl->execute($input,$output);
|
||||
$jtl = new Jtl($this->productRepository,$this->warehouseRepository,$this->stockRepository,$this->logger);
|
||||
$jtl->createExportFile($jtl->getProducts());
|
||||
|
||||
$io->success('Done.');
|
||||
return Command::SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user