Make quick sale products on machines as orders paid when ready

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 17:11:54 +02:00
co-authored by Claude Sonnet 5.5
parent 920fecdeb2
commit 38b8075a9c
58 changed files with 3435 additions and 26 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Modules\Sales\Application\DTOs;
/**
* A quick sale order as entered: quantities by product id, an optional
* customer and an optional name to call the customer by.
*/
final readonly class OrderData
{
/**
* @param array<int, int> $quantities
*/
public function __construct(
public array $quantities,
public ?int $customerId = null,
public ?string $customerName = null,
) {}
}