Added visual on the hardware view screen

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-05-15 14:56:52 +01:00
parent ab8b40745e
commit 71b5bf2eef
3 changed files with 38 additions and 1 deletions
+17
View File
@@ -907,6 +907,23 @@ class Asset extends Depreciable
}
/**
* Determine whether this asset's next audit date is before the last audit date
*
* @return bool
* @since [v6.4.1]
* @author [A. Gianotto] [<snipe@snipe.net>]
* */
public function checkInvalidNextAuditDate()
{
if (($this->last_audit_date) && ($this->next_audit_date) && ($this->last_audit_date > $this->next_audit_date)) {
return true;
}
return false;
}
/**
* Checks for a category-specific EULA, and if that doesn't exist,
* checks for a settings level EULA