ok entry return for rent, next output for borrowed equipment
This commit is contained in:
parent
8fd778ebd3
commit
36784f51da
9 changed files with 96 additions and 31 deletions
|
|
@ -11,7 +11,7 @@ require_once __DIR__ . '/../_inc.php';
|
|||
$output = new Output;
|
||||
$eqmt = new Equipment;
|
||||
|
||||
$eqmts_by_cat = $eqmt->GetAvailableListByCategory();
|
||||
$eqmts_by_cat = $eqmt->ListAllAvailableByCategory();
|
||||
$selected_eqmt = "";
|
||||
|
||||
$kinds = $output->listKinds();
|
||||
|
|
@ -49,7 +49,7 @@ if (f('save') && $form->check($csrf_key) && !$form->hasErrors())
|
|||
$default_date = $output_date;
|
||||
$default_comment = f('additional_comment');
|
||||
|
||||
$equiment = $eqmt->get(f('equipment_id'));
|
||||
$equiment = $eqmt->get($eqmt_id);
|
||||
$form->addError(
|
||||
"Il est impossible de sortir " . (string) $eqmt_number . " " . $equiment->designation . " à la date du " . (string) $output_date . '.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue