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:
2015-11-29 15:04:09 +01:00
parent a40cfb90d3
commit 09cd4660b8
7 changed files with 35 additions and 15 deletions

View File

@@ -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;
}