@@ -115,7 +115,7 @@ final class AgreementOrderLimits
|
||||
public function freeze(User $actor, Quotation $quote, Requisition $request, array $lines, array $bindings, array $additionalRequests = []): array
|
||||
{
|
||||
if ($bindings === []) {
|
||||
return [];
|
||||
return ['agreement_order_input_hash' => hash('sha256', json_encode([], JSON_THROW_ON_ERROR)), 'agreement_bindings' => []];
|
||||
}
|
||||
abort_unless($this->ready() && Schema::hasTable('supply_records'), 503, 'Limites por ordem preparados apenas em QA isolada.');
|
||||
abort_unless($this->canRead($actor), 403);
|
||||
|
||||
Reference in New Issue
Block a user