feat(sale): add sale detail retrieval functionality; implement controller method and resource, and create corresponding tests
This commit is contained in:
@@ -39,6 +39,14 @@ class AdminAppSaleService
|
||||
->withQueryString();
|
||||
}
|
||||
|
||||
public function detail(Tenant $tenant, int $saleId): Purchase
|
||||
{
|
||||
return Purchase::query()
|
||||
->where('tenant_codigo', $tenant->codigo)
|
||||
->with('items')
|
||||
->findOrFail($saleId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $filters
|
||||
* @return Collection<int, Purchase>
|
||||
|
||||
Reference in New Issue
Block a user