Valo/checkin date in history of asset (#6733)

* To see checkin/checkout Date in History of Asset

* Added some logic to get today's date if the checkin_at input is blank

* Updating the action_date taking the value from the action_log table

* Hide created_at field and rename 'Action Date' as only 'Date'
This commit is contained in:
Ivan Nieto
2019-03-13 22:36:32 -06:00
committed by snipe
parent 8d63533205
commit c7f48951a9
8 changed files with 58 additions and 11 deletions
+3 -1
View File
@@ -14,17 +14,19 @@ class CheckoutableCheckedIn
public $checkedOutTo;
public $checkedInBy;
public $note;
public $action_date; // Date setted in the hardware.checkin view at the checkin_at input, for the action log
/**
* Create a new event instance.
*
* @return void
*/
public function __construct($checkoutable, $checkedOutTo, User $checkedInBy, $note)
public function __construct($checkoutable, $checkedOutTo, User $checkedInBy, $note, $action_date)
{
$this->checkoutable = $checkoutable;
$this->checkedOutTo = $checkedOutTo;
$this->checkedInBy = $checkedInBy;
$this->note = $note;
$this->action_date = $action_date;
}
}