Quick sales of a period by cash day, product, seller and VAT rate, with credits, open cash days flagged, a chart by day or month and CSV. VAT is taken out of each day's total of a rate, as on the cash day balance. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
26 lines
784 B
PHP
26 lines
784 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Reports\Application\DTOs;
|
|
|
|
/**
|
|
* Quick sales of a period as the Sales module sums them, amounts with VAT
|
|
* in cents and credits negative.
|
|
*/
|
|
final readonly class SalesData
|
|
{
|
|
/**
|
|
* @param list<array{day: string, count: int, cashCents: int, cardCents: int, isClosed: bool}> $days
|
|
* @param list<array{name: string, quantity: int, grossCents: int}> $products
|
|
* @param list<array{sellerId: int, count: int, grossCents: int}> $sellers
|
|
* @param list<array{day: string, vatBasisPoints: int, grossCents: int}> $dayVatTotals
|
|
*/
|
|
public function __construct(
|
|
public array $days,
|
|
public array $products,
|
|
public array $sellers,
|
|
public array $dayVatTotals,
|
|
) {}
|
|
}
|