commit melhorias compras3
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-22 10:56:58 +02:00
parent 4fac443dda
commit efd97e265b
130 changed files with 8917 additions and 363 deletions
+14
View File
@@ -53,6 +53,20 @@
@endif
@endforeach
<table class="totals"><tr><td>Subtotal sem IVA</td><td>{{ $money($order->subtotal_minor) }}</td></tr><tr><td>IVA</td><td>{{ $money($order->tax_minor) }}</td></tr><tr><th>Total com IVA</th><th>{{ $money($order->total_minor) }}</th></tr></table>
@if(!empty($snapshot['agreement_bindings']))
<h2>Acordos e limites preservados por ordem</h2>
@foreach(collect($snapshot['agreement_bindings'])->pluck('contract')->filter()->unique('id') as $contract)
<p>Contrato global: {{ $contract['reference'] }} · versão {{ $contract['version'] }} · Total com impostos dos artigos ligados: {{ $money($contract['checked_order_value_minor'], $contract['currency']) }};
limite global por ordem: {{ $contract['max_order_value_minor'] === null ? 'Não definido' : $money($contract['max_order_value_minor'], $contract['currency']) }}.</p>
@endforeach
<p>Cada ordem pode utilizar o limite completo. Conferência apenas das linhas ligadas ao mesmo acordo; sem acumular outras ordens.</p>
@foreach(collect($snapshot['agreement_bindings'])->unique('agreement_id') as $binding)
<p>{{ $binding['reference'] }} · versão {{ $binding['version'] }} · Total com impostos conferido: {{ $money($binding['checked_order_value_minor'], $binding['currency']) }};
limite por ordem: {{ $binding['max_order_value_minor'] === null ? 'Não definido' : $money($binding['max_order_value_minor'], $binding['currency']) }}.<br>
Quantidade conferida: {{ str_replace('.', ',', (string)\Brick\Math\BigDecimal::of($binding['checked_order_quantity_milli'])->dividedBy(1000, 3)) }} {{ $binding['unit'] }};
limite por ordem: {{ $binding['max_order_quantity_milli'] === null ? 'Não definido' : str_replace('.', ',', (string)\Brick\Math\BigDecimal::of($binding['max_order_quantity_milli'])->dividedBy(1000, 3)) . ' ' . $binding['unit'] }}.</p>
@endforeach
@endif
<h2>Justificação da adjudicação</h2><p class="pre">{{ $snapshot['award']['justification'] }}</p>
<h2>Matriz de avaliação congelada</h2>
@if(!empty($snapshot['comparison_policy']))
@@ -42,6 +42,11 @@
<td>{{ $source['destination'] }}
@if($source['equipment'] ?? null)
<br>{{ $source['equipment']['code'] }} · {{ $source['equipment']['description'] }}
@elseif(($source['use'] ?? null) === 'production')
<br>Insumos para produção
@if(isset($source['production']['reference']) && $source['production']['reference'] !== '')
<br>Referência declarada: {{ $source['production']['reference'] }}
@endif
@else
<br>Uso interno
@endif