feat: Implement sale management features including controllers, services, resources, and routes; add PDF generation for sales and modifications

This commit is contained in:
2026-08-04 11:44:13 -03:00
parent 3f9bcd84c4
commit 1de08c1ca4
22 changed files with 700 additions and 104 deletions

View File

@@ -46,6 +46,19 @@ class Purchase extends Model
public const STATUS_EXPIRED = 'expired';
/** @return list<string> */
public static function statuses(): array
{
return [
self::STATUS_CREATED,
self::STATUS_PENDING_PAYMENT,
self::STATUS_PAID,
self::STATUS_CANCELLED,
self::STATUS_REJECTED,
self::STATUS_EXPIRED,
];
}
protected $table = 'compras';
/** @var array<int, string> */