Add Stock & Warehouse
This commit is contained in:
@@ -69,22 +69,7 @@ class SwGetOrdersCommand extends Command
|
||||
//offene Bestellungen aus Datenbank holen
|
||||
$this->orderData = $this->getOrders();
|
||||
|
||||
|
||||
//Bestelldetails aus SW holen
|
||||
$this->getOrdersDataFromSW();
|
||||
|
||||
foreach ($this->orderData as $order) {
|
||||
$io->info('Bestellung ID: '.$order->getId());
|
||||
$io->info('Bestellung Order-ID: '.$order->getOrderId());
|
||||
$io->info('Bestellung Data: '.var_export($order->getData(),1));
|
||||
|
||||
|
||||
$this->saveOrdersData($order);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$this->getOrderDetails();
|
||||
|
||||
$io->success('Done!');
|
||||
return Command::SUCCESS;
|
||||
@@ -98,6 +83,19 @@ class SwGetOrdersCommand extends Command
|
||||
return $this->ordersRepository->findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getOrderDetails(): void
|
||||
{
|
||||
//Bestelldetails aus SW holen
|
||||
$this->getOrdersDataFromSW();
|
||||
|
||||
foreach ($this->orderData as $order) {
|
||||
$this->saveOrdersData($order);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Vin\ShopwareSdk\Data\AccessToken|void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user