Fix eol rate in AssetMaintenancesController
This commit is contained in:
parent
ab8f4454d1
commit
63a1ee0047
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class AssetMaintenancesController extends Controller
|
||||||
) {
|
) {
|
||||||
$startDate = Carbon::parse($maintenance->start_date);
|
$startDate = Carbon::parse($maintenance->start_date);
|
||||||
$completionDate = Carbon::parse($maintenance->completion_date);
|
$completionDate = Carbon::parse($maintenance->completion_date);
|
||||||
$maintenance->asset_maintenance_time = $completionDate->diffInDays($startDate);
|
$maintenance->asset_maintenance_time = (int) $completionDate->diffInDays($startDate, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Was the asset maintenance created?
|
// Was the asset maintenance created?
|
||||||
|
|
Loading…
Add table
Reference in a new issue