Save de-normed values for last checkout and expected_checkin

This commit is contained in:
snipe
2015-10-23 17:55:03 -07:00
parent ec4b2f114d
commit 8a1ffb9014
+7
View File
@@ -27,6 +27,13 @@ class Asset extends Depreciable
* Checkout asset
*/
public function checkOutToUser($user, $admin, $checkout_at = null, $expected_checkin = null, $note = null, $name = null) {
if ($expected_checkin) {
$this->expected_checkin = $expected_checkin ;
}
$this->last_checkout = $checkout_at;
$this->assigneduser()->associate($user);
$this->name = $name;