Add the quick sales report
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]>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\Sales\Application\DTOs;
|
||||
|
||||
/**
|
||||
* Quick sales of a period, amounts with VAT in cents:
|
||||
*
|
||||
* - days: every cash day with sales, oldest first;
|
||||
* - products: by product name, most sold (in euros) first;
|
||||
* - sellers: by seller id;
|
||||
* - dayVatTotals: each day's sales by VAT rate, for VAT taken out of the
|
||||
* day's total of a rate as on the cash day balance.
|
||||
*/
|
||||
final readonly class QuickSalesInPeriod
|
||||
{
|
||||
/**
|
||||
* @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,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user