Email quick sale receipts and send them again from the sales list

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:00:15 +02:00
co-authored by Claude Sonnet 5.5
parent 3faa4cfbc6
commit d160854b79
29 changed files with 679 additions and 34 deletions
@@ -6,7 +6,8 @@ namespace App\Modules\Sales\Application\DTOs;
/**
* Input for a quick sale: quantities by product id (zero or empty ones are
* left out by the caller), the payment method key and an optional customer.
* left out by the caller), the payment method key, an optional customer
* and an optional address the receipt is emailed to.
*/
final readonly class SaleData
{
@@ -17,5 +18,6 @@ final readonly class SaleData
public array $quantities,
public string $paymentMethod,
public ?int $customerId = null,
public ?string $receiptEmail = null,
) {}
}