ok to validate delete entry, next delete output.
This commit is contained in:
parent
d6a6ec9153
commit
cb2c3f4565
6 changed files with 38 additions and 11 deletions
|
|
@ -34,11 +34,21 @@ class Entry
|
|||
return DB::getInstance()->first('SELECT * FROM plugin_materiels_entry WHERE id = ?;', $id);
|
||||
}
|
||||
|
||||
public function delete($id)
|
||||
{
|
||||
DB::getInstance()->delete('plugin_materiels_entry', 'id = ' . $id);
|
||||
}
|
||||
|
||||
public function listAll()
|
||||
{
|
||||
return DB::getInstance()->get('SELECT * FROM plugin_materiels_entry ORDER BY entry_date DESC;');
|
||||
}
|
||||
|
||||
public function listAllByEquipment($eqmt_id)
|
||||
{
|
||||
return DB::getInstance()->get('SELECT * FROM plugin_materiels_entry WHERE equipment_id = ? ORDER BY entry_date DESC;', $eqmt_id);
|
||||
}
|
||||
|
||||
public function PossibilityRentEqmtEntry($id, $eqmt_number, $date)
|
||||
{
|
||||
$after_entry_dates = DB::getInstance()->get(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue