mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-08 05:04:02 +02:00
Index/Add views for StockUnitType and ItemType, View/Update for Item, Style to apply on all tables, DataTables used on details and indexes
This commit is contained in:
parent
be2b39c5eb
commit
5d4d209549
15 changed files with 322 additions and 313 deletions
|
@ -8,5 +8,17 @@ class ItemType extends AppModel
|
|||
public $name = 'ItemType';
|
||||
public $displayField = 'name';
|
||||
public $hasMany = array('Item');
|
||||
public $validate = array(
|
||||
'name' => array(
|
||||
'isUnique' => array(
|
||||
'rule' => 'isUnique',
|
||||
'message' => 'Name must be unique'
|
||||
),
|
||||
'minLength' => array(
|
||||
'rule' => array('minLength', 3),
|
||||
'message' => 'Name must be at least 3 letters'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
|
@ -8,5 +8,17 @@ class StockUnitType extends AppModel
|
|||
public $name = 'StockUnitType';
|
||||
public $displayField = 'name';
|
||||
public $hasMany = array('Item');
|
||||
public $validate = array(
|
||||
'name' => array(
|
||||
'isUnique' => array(
|
||||
'rule' => 'isUnique',
|
||||
'message' => 'Name must be unique'
|
||||
),
|
||||
'minLength' => array(
|
||||
'rule' => array('minLength', 3),
|
||||
'message' => 'Name must be at least 3 letters'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue