@if (session('success'))
@if (!empty($xmlProdutosPreview))
@if (data_get($xmlResumoPreview, 'status_importacao') === 'divergente')
@endif
{{ session('success') }}
@endif
@if ($errors->any())
{{ $errors->first() }}
@endif
Ler itens do XML
pedido de compra
Foram identificadas divergencias entre itens solicitados no pedido e itens faturados no XML.
@endif
Importacao
#{{ data_get($xmlResumoPreview, 'importacao_id', '-') }}
Status da importacao
{{ strtoupper((string) data_get($xmlResumoPreview, 'status_importacao', 'rascunho')) }}
Pedido
{{ data_get($xmlResumoPreview, 'pedido_compra_numero', '-') }}
@if (filled(data_get($xmlResumoPreview, 'pedido_compra_item')))
/ item {{ data_get($xmlResumoPreview, 'pedido_compra_item') }}
@endif
Status do pedido
{{ strtoupper((string) data_get($xmlResumoPreview, 'pedido_compra_status', 'aberto')) }}
Chave NFe
{{ data_get($xmlResumoPreview, 'chave_nfe', '-') }}
Numero/Serie
{{ data_get($xmlResumoPreview, 'numero_nfe', '-') }} / {{ data_get($xmlResumoPreview, 'serie_nfe', '-') }}
Itens lidos
{{ data_get($xmlResumoPreview, 'total_itens', count($xmlProdutosPreview)) }}
Abrir entrada OPME com pedido preenchido
Criar entrada agora
@if (data_get($xmlResumoPreview, 'status_importacao') !== 'convertido' && data_get($xmlResumoPreview, 'importacao_id'))
@elseif (data_get($xmlResumoPreview, 'opme_documento_entrada_id'))
Abrir entrada convertida
@endif
| Item | Codigo XML | Descricao | EAN | Qtd | Vlr total | ANVISA | Conciliacao | Confronto pedido | Produto Sankhya | Vinculo manual |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ data_get($itemXml, 'ITEM', '-') }} | {{ data_get($itemXml, 'CODIGO', '-') }} | {{ data_get($itemXml, 'DESCRICAO', '-') }} | {{ data_get($itemXml, 'EAN', '-') }} | {{ number_format((float) data_get($itemXml, 'QTD', 0), 4, ',', '.') }} | {{ number_format((float) data_get($itemXml, 'VLR_TOTAL', 0), 2, ',', '.') }} | {{ data_get($itemXml, 'ANVISA', '-') }} | @if (data_get($itemXml, 'CONCILIACAO_STATUS') === 'encontrado') ENCONTRADO @else NAO ENCONTRADO @endif |
@if (data_get($itemXml, 'CONFRONTO_STATUS') === 'ok')
OK
@elseif (data_get($itemXml, 'CONFRONTO_STATUS') === 'divergente')
DIVERGENTE
@if (!empty(data_get($itemXml, 'DIVERGENCIA_DESCRICAO')))
{{ data_get($itemXml, 'DIVERGENCIA_DESCRICAO') }}
@endif
@else
-
@endif
|
@if (data_get($itemXml, 'CONCILIACAO_STATUS') === 'encontrado') {{ data_get($itemXml, 'SANKHYA_CODPROD') ?? '-' }} / {{ data_get($itemXml, 'SANKHYA_REFERENCIA') ?? '-' }} / {{ data_get($itemXml, 'SANKHYA_CRITERIO') ?? '-' }} @else - @endif | @if (data_get($itemXml, 'CONCILIACAO_STATUS') !== 'encontrado') @else - @endif |