begin to calculate stock, next calculate outputed
This commit is contained in:
parent
c4f8b4fb87
commit
71775c0f67
9 changed files with 96 additions and 68 deletions
|
|
@ -6,11 +6,6 @@ use Garradin\DB;
|
|||
|
||||
class Category
|
||||
{
|
||||
protected $columns_order = array(
|
||||
'id',
|
||||
'name',
|
||||
);
|
||||
|
||||
public function add($data = [])
|
||||
{
|
||||
DB::getInstance()->insert('plugin_materiels_category', $data);
|
||||
|
|
@ -37,4 +32,10 @@ class Category
|
|||
{
|
||||
return DB::getInstance()->get('SELECT * FROM plugin_materiels_category ORDER BY name;');
|
||||
}
|
||||
|
||||
public function listAllEquipments($id)
|
||||
{
|
||||
return DB::getInstance()->get(
|
||||
'SELECT * FROM plugin_materiels_equipment WHERE category_id = ? ORDER BY designation;', $id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue