commit melhorias compras1
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-21 21:04:40 +02:00
parent 976271f948
commit 12dd6df28a
108 changed files with 4391 additions and 408 deletions
+6
View File
@@ -39,6 +39,12 @@
<tr>
<td>{{ $item->snapshot['order_item']['description'] }} · {{ $item->snapshot['order_item']['unit'] }}
@if($item->snapshot['stock_item'] ?? null)<br>{{ $item->snapshot['stock_item']['code'] }}@endif
@if(isset($item->snapshot['quantity_conversion']))
@php($conversion = $item->snapshot['quantity_conversion'])
<p>Stock: {{ str_replace('.', ',', (string)\Brick\Math\BigDecimal::of($conversion['accepted_stock_milli'])->dividedBy(1000, 3)) }} {{ $conversion['stock_unit'] }};
factor {{ $conversion['numerator'] }}/{{ $conversion['denominator'] }};
{{ $conversion['source'] }} · versão {{ $conversion['version'] }}.</p>
@endif
@if(isset($corrections[$item->id]))<p><strong>Estornado integralmente: {{ $corrections[$item->id]->data['reference'] }}</strong></p>@endif
</td>
<td>{{ $quantity($item->received_milli) }}</td><td>{{ $quantity($item->accepted_milli) }}</td><td>{{ $quantity($item->rejected_milli) }}</td>