Track machine counters and maintenance with counter and time intervals

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:52:49 +02:00
co-authored by Claude Sonnet 5.5
parent aac579257a
commit 3e1c671949
53 changed files with 2636 additions and 6 deletions
@@ -5,8 +5,8 @@ declare(strict_types=1);
namespace App\Modules\Dashboard\Application\Contracts;
/**
* What the management panel needs from Billing, Sales, Users and the
* holiday calendar. Days are Y-m-d.
* What the management panel needs from Billing, Sales, Users, Machines,
* Inventory and the holiday calendar. Days are Y-m-d.
*/
interface DashboardAdmin
{
@@ -35,4 +35,16 @@ interface DashboardAdmin
* @return list<string>
*/
public function holidaysBetween(string $from, string $to): array;
/**
* Machine maintenance that is late (maintenance requests), by machine.
*
* @return list<array{machineId: int, machine: string, item: string}>
*/
public function lateMaintenance(): array;
/**
* How many stock items are at or below their reorder level.
*/
public function stockItemsToOrder(): int;
}