Added strings, variables to the controllers
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
@@ -1148,7 +1148,6 @@ class Asset extends Depreciable
|
||||
|
||||
return $query->whereNotNull('assets.next_audit_date')
|
||||
->whereRaw('DATE_SUB('.DB::getTablePrefix()."assets.next_audit_date, INTERVAL $interval DAY) <= '".Carbon::now()."'")
|
||||
->where('assets.archived', '=', 0)
|
||||
->NotArchived();
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ trait Loggable
|
||||
* @since [v4.0]
|
||||
* @return \App\Models\Actionlog
|
||||
*/
|
||||
public function logAudit($note, $location_id, $filename = null)
|
||||
public function logAudit($note, $location_id, $filename = null, $audit_type = null)
|
||||
{
|
||||
$log = new Actionlog;
|
||||
$location = Location::find($location_id);
|
||||
@@ -184,6 +184,7 @@ trait Loggable
|
||||
$log->note = $note;
|
||||
$log->user_id = Auth::user()->id;
|
||||
$log->filename = $filename;
|
||||
$log->audit_type = $audit_type;
|
||||
$log->logaction('audit');
|
||||
|
||||
$params = [
|
||||
|
||||
Reference in New Issue
Block a user