@if (! app()->environment('testing')) @vite(['resources/css/app.css', 'resources/js/app.js']) @endif
@include('modulos.estoque.partials.sidebar', ['menuTag' => 'opme'])
Importacao de XML
Conferencia de itens e conciliacao vinculada ao pedido de compra
Entradas OPME
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
Ler itens do XML pedido de compra
@csrf
@if (!empty($xmlProdutosPreview)) @if (data_get($xmlResumoPreview, 'status_importacao') === 'divergente')
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'))
@csrf
@elseif (data_get($xmlResumoPreview, 'opme_documento_entrada_id')) Abrir entrada convertida @endif
@foreach ($xmlProdutosPreview as $itemXml) @endforeach
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')
@csrf
@else - @endif
@endif
@include('modulos.estoque.partials.menu-toggle-script')