Added strings, variables to the controllers

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-02-23 11:41:19 -08:00
parent 7851e7c0b0
commit c284d8d436
6 changed files with 20 additions and 14 deletions
-1
View File
@@ -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();
}
+2 -1
View File
@@ -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 = [