Skip to content

Commit

Permalink
big update
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jul 20, 2020
1 parent 0fe1f12 commit 658e7fd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/ImportCsvShopContentHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,17 @@ public function getShopStore()
public function beforeExecute()
{
//Если задан склад и нужно удалять наличие которых нет в файле
/*if ($this->shop_supplier_id && $this->shop_store_id && $this->is_quantity_clean) {
if ($updated = ShopStoreProduct::updateAll(['quantity' => 0], ['shop_store_id' => $this->shop_store_id])) {
$this->getResult()->stdout("Обнулено: ".$updated);
if ($this->is_quantity_clean) {
if ($this->shop_store_id) {
if ($updated = ShopStoreProduct::updateAll(['quantity' => 0], ['shop_store_id' => $this->shop_store_id])) {
$this->getResult()->stdout("Обнулено: ".$updated);
}
}

}*/
/*if ($updated = ShopProduct::updateAll(['quantity' => 0], ['shop_store_id' => $this->shop_store_id])) {
$this->getResult()->stdout("Обнулено: ".$updated);
}*/
}

return true;
}
Expand Down

0 comments on commit 658e7fd

Please sign in to comment.