Cliente: {{$preInvoice['customer']->integration->parameters['integration_code'] ?? '-'}} - {{ $preInvoice['customer']->description }}
@isset($preInvoice['items'])Cidade: {{$preInvoice['items'][0]->pickedItem->item->itemable->integration->parameters['CIDCLI'] ?? ''}} - UF: {{$preInvoice['items'][0]->pickedItem->item->itemable->integration->parameters['SIGUFS'] ?? ''}}
@endissetPré-fatura: {{ $preInvoice['pre-invoice'] }}
Data Faturamento: {{Carbon::create($preInvoice['data-faturamento'])->format('d/m/Y')}}
Forma de Pagamento: {{$preInvoice['items'][0]->pickedItem->item->itemable->integration->parameters['CODFPG'] ?? ''}} - {{$preInvoice['items'][0]->pickedItem->item->itemable->integration->parameters['DESFPG'] ?? ''}}
Cod. de Pagamento: {{$preInvoice['items'][0]->pickedItem->item->itemable->integration->parameters['CODCPG'] ?? ''}} - {{$preInvoice['items'][0]->pickedItem->item->itemable->integration->parameters['DESCPG'] ?? ''}}
@isset($preInvoice['orderDetails'])@foreach($preInvoice['orderDetails'] as $orderDetail) @foreach($orderDetail as $title => $detail) @if($title === 'Observações:') {{-- Essa é a chave que vem direto do ERP --}} {{$title}} {{$detail}} @endif @endforeach @endforeach
@endissetValor da Pré-fatura: {{$preInvoice['value']}}
Peso da Pré-fatura: {{ number_format($preInvoice['weight'], 2, ',', '.') }}
Tipo de Frete: {{$preInvoice['shippingType']}}
{{$title}} {{$detail}}
@endif @endforeach @endforeachTarefa de separação: {{ $pickinOrder['id'] }} - {{ $pickinOrder['position'] }}
Peso da tarefa: {{ number_format($pickinOrder['weight'], 2, ',', '.') }}
| Seq | Ped | Cod.Ref | Descrição | Sep/Tot | Un | Peso(KG) |
|---|---|---|---|---|---|---|
| {{$product->pickedItem->stockIOProduct->integration->parameters['SEQPES'] ?? '-'}} | {{$product->pickedItem->stockIOProduct->integration->parameters['NUMPED'] ?? '-'}} | {{$product->pickedItem->item->product->integration->parameters['integration_code']}} | {{$product->pickedItem->item->product->description}} | {{number_format($product->amount, 2, ',', '.')}}/{{number_format($product->pickedItem->stockIOProduct->amount, 2, ',', '.')}} | {{$product->pickedItem->item->product->unitMeasurement->acronym}} | {{ number_format($weight, 2, ',', '.') }} |
| Ped. Cli.: {{$product->pickedItem->stockIOProduct->integration->parameters['PEDCLI'] ?? ''}} - Pro. Cli.: {{$product->pickedItem->stockIOProduct->integration->parameters['PROCLI'] ?? ''}} - E.C.: {{$product->pickedItem->stockIOProduct->integration->parameters['EMICER'] ?? ''}} @if ($product->pickedItem->stockIOProduct->getAttribute('status')->value == 5) Situação: Cancelado @endif | ||||||
| Observações: {{$observation}} | @endif||||||
| {{number_format($totalProductWeight, 2, ',', '.')}} | ||||||