change account dropdown to fix account on account state open/close

This commit is contained in:
2016-01-10 17:32:54 +01:00
parent 7c584a0779
commit a782232ad8
12 changed files with 66 additions and 30 deletions

View File

@@ -46,6 +46,7 @@ class Product extends \common\models\BaseFitnessActiveRecord {
[['id_product_category', 'id_account', 'name'], 'required'],
[['id_product_category', 'id_account', 'purchase_price', 'sale_price', 'profit_margins', 'status'], 'integer'],
[['product_number', 'barcode'], 'string', 'max' => 20],
[['product_number', 'barcode'], 'filter', 'filter' => 'trim', 'skipOnArray' => true],
[['name'], 'string', 'max' => 128],
[['description'], 'string', 'max' => 255],
[['product_number'], 'unique' ],