fix account_state ( collection_money ), display product/ticket on reception only for selected account, add daily transfers (reception/admin)
This commit is contained in:
@@ -82,7 +82,7 @@ class ProductController extends Controller
|
||||
$model->customer = $this->customer;
|
||||
$model->card = $this->card;
|
||||
|
||||
$products = Product::read();
|
||||
$products = Product::readForDefaultAccount();
|
||||
$products = Product::modelToMapIdName($products);
|
||||
|
||||
$model->products = $products;
|
||||
@@ -199,7 +199,7 @@ class ProductController extends Controller
|
||||
public function actionLookup($query = null)
|
||||
{
|
||||
$result = [];
|
||||
$product = Product::findProduct($query);
|
||||
$product = Product::findProduct($query, Account::readDefault());
|
||||
$product = Product::modelToArray($product);
|
||||
|
||||
$result['product'] = $product;
|
||||
@@ -207,7 +207,6 @@ class ProductController extends Controller
|
||||
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
|
||||
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user