add inventory daily
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace console\controllers;
|
||||
|
||||
use backend\components\InventoryManager;
|
||||
use common\models\Inventory;
|
||||
use common\models\InventoryItem;
|
||||
use common\models\Transfer;
|
||||
@@ -63,6 +64,18 @@ class InventoryConsoleController extends Controller{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Inventory model.
|
||||
* If creation is successful, the browser will be redirected to the 'view' page.
|
||||
* @return mixed
|
||||
*/
|
||||
public function actionCreate()
|
||||
{
|
||||
$inventoryManager = new InventoryManager();
|
||||
$inventoryManager->generateDaily();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user