add csrf , product and account_state changes
csrf - previous settings were not working on dev1 product - allow sale , if count > stock prodcut - admin - allow search by name account_state - auto sum up money from notes add csrf , product and account_state changes csrf - previous settings were not working on dev1 product - allow sale , if count > stock prodcut - admin - allow search by name account_state - auto sum up money from notes
This commit is contained in:
@@ -20,7 +20,7 @@ class ProductSearch extends Product
|
||||
{
|
||||
return [
|
||||
[[ 'id_product_category', 'id_account', 'status'], 'integer'],
|
||||
[['product_number', 'barcode' ], 'safe'],
|
||||
[['product_number', 'barcode' ,'name'], 'safe'],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -68,7 +68,8 @@ class ProductSearch extends Product
|
||||
]);
|
||||
|
||||
$query->andFilterWhere(['like', 'product_number', $this->product_number])
|
||||
->andFilterWhere(['like', 'barcode', $this->barcode]);
|
||||
->andFilterWhere(['like', 'barcode', $this->barcode])
|
||||
->andFilterWhere(['like', 'name', $this->name]);
|
||||
|
||||
return $dataProvider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user