- if @recebimento_de_material.try(:ordem_de_compra).present? = hidden_field_tag 'empenho_id', @recebimento_de_material.ordem_de_compra.empenho.try(:id) ol.breadcrumb li - if configuracao.usa_modulo_administrativo? && @tipo.blank? && @recebimento_de_material.classificacao.nil? = link_to "Recebimento de Materiais", gestao_de_estoque_recebimento_de_materiais_path, class: "link_breadcrumb" - elsif @tipo.present? && @tipo == "outros" || @recebimento_de_material.classificacao.present? = link_to "Outros Recebimentos", gestao_de_estoque_recebimento_de_materiais_path + "?tipo=outros", class: "link_breadcrumb" - else = link_to "Recebimento Avulso", gestao_de_estoque_recebimento_de_materiais_path, class: "link_breadcrumb" li.active Informações .row - if @recebimento_de_material.possui_ordem_de_compra? && @recebimento_de_material.ordem_de_compra.empenho.projeto.present? .col-sm-4 section.widget.widget-show header | Dados da Licitação: b =< @recebimento_de_material.ordem_de_compra.empenho.projeto.numero_do_processo =< link_to "Ver Detalhes", rota_processo(@recebimento_de_material.ordem_de_compra.empenho.projeto) - if @recebimento_de_material.possui_ordem_de_compra? && @recebimento_de_material.ordem_de_compra.empenho.contrato.present? .col-sm-4 section.widget.widget-show header | Dados do Contrato: b =< @recebimento_de_material.ordem_de_compra.empenho.contrato.numero =< link_to "Ver Detalhes", rota_contrato(@recebimento_de_material.ordem_de_compra.empenho.contrato) - if @recebimento_de_material.possui_ordem_de_compra? && @recebimento_de_material.ordem_de_compra.empenho.present? .col-sm-4 section.widget.widget-show header | Dados do Empenho: b ==< @recebimento_de_material.ordem_de_compra.empenho.numero_do_empenho ==< link_to "Ver Detalhes", empenho_path(@recebimento_de_material.ordem_de_compra.try(:empenho)), target: "_blank" .widget .widget-body .pull-right style="margin-top: -5px;" span.label.label-default style="margin-right: 5px !important;" ==< "ORÇAMENTO #{@recebimento_de_material.try(:orcamento).try(:exercicio)}" - if @recebimento_de_material.recebido? || @recebimento_de_material.confirmado? || @recebimento_de_material.enviado_ao_patrimonio? span.label.label-success ==< (@recebimento_de_material.localizar :status).try(:upcase) - else span.label.label-info ==< (@recebimento_de_material.localizar :status).try(:upcase) - if @recebimento_de_material.reconhecido? span.label.label-success ==< (@recebimento_de_material.status_de_reconhecimento_i18n).try(:upcase) -else span.label.label-info ==< (@recebimento_de_material.status_de_reconhecimento_i18n).try(:upcase) h3.show-header ' Recebimento de Material: span.fw-semi-bold ==< @recebimento_de_material.codigo span.bold Recebido em: ==< @recebimento_de_material.data_do_recebimento br br - if @recebimento_de_material.ordem_de_compra.present? span.bold style="margin-top: 100px" Referente a Ordem de Fornecimento: = link_to " #{@recebimento_de_material.ordem_de_compra.numero}", @recebimento_de_material.ordem_de_compra, target: "_blank" br br legend strong Dados Do Recebimento // Informações Gerais .row .col-md-6 - if @recebimento_de_material.unidade_orcamentaria.present? || @recebimento_de_material.ordem_de_compra.present? p strong Unidade Orcamentária: - if @recebimento_de_material.possui_ordem_de_compra? ==< @recebimento_de_material.try(:ordem_de_compra).try(:unidade_orcamentaria).try(:codigo_e_nome) - else ==< @recebimento_de_material.try(:unidade_orcamentaria).try(:codigo_e_nome) - if @recebimento_de_material.almoxarifado.present? || @recebimento_de_material.ordem_de_compra.present? p strong Almoxarifado: - if @recebimento_de_material.possui_ordem_de_compra? ==< @recebimento_de_material.try(:ordem_de_compra).try(:almoxarifado).try(:codigo_e_nome) - else ==< @recebimento_de_material.try(:almoxarifado).try(:codigo_e_nome) - if @recebimento_de_material.possui_ordem_de_compra? || @recebimento_de_material.avulso? p strong Fornecedor: - if @recebimento_de_material.possui_ordem_de_compra? ==< @recebimento_de_material.try(:ordem_de_compra).try(:empenho).try(:pessoa).try(:nome_e_cpf_ou_cnpj) - else ==< @recebimento_de_material.try(:fornecedor).try(:nome_e_cpf_ou_cnpj) .col-md-6 - if @recebimento_de_material.tipo_de_material.present? p strong Tipo de Material: ==< @recebimento_de_material.localizar(:tipo_de_material) - if @recebimento_de_material.classificacao_tipo_de_material.present? p strong Detalhamento: ==< @recebimento_de_material.localizar(:classificacao_tipo_de_material) - if @recebimento_de_material.tipo_de_entrada.present? p strong Tipo de Entrada: ==< @recebimento_de_material.localizar(:tipo_de_entrada) - if @recebimento_de_material.tipo_de_recebimento.present? p strong Tipo de Recebimento: ==< @recebimento_de_material.localizar(:tipo_de_recebimento) - if @recebimento_de_material.almoxarifado_de_destino_id.present? .row .col-md-6 p strong Almoxarifado de Destino: ==< @recebimento_de_material.try(:almoxarifado_de_destino).try(:codigo_e_nome) .col-md-6 p strong Unidade Orçamentária de Destino: ==< @recebimento_de_material.try(:unidade_orcamentaria_de_destino).try(:codigo_e_nome) // Recebimento Avulso - if @recebimento_de_material.avulso? .row .col-sm-6 legend strong Dados do Empenho p strong Exercício do Empenho: ==< @recebimento_de_material.exercicio_do_empenho p strong Nº do Empenho: ==< @recebimento_de_material.numero_do_empenho .col-sm-6 legend strong Dados da Contratação p strong Modalidade de Licitação: ==< @recebimento_de_material.localizar(:modalidade_de_licitacao) p strong Nº do Processo: ==< @recebimento_de_material.numero_do_processo p strong Nº do Contrato: ==< @recebimento_de_material.numero_do_contrato // Outros Recebimentos .row .col-md-6 - if @recebimento_de_material.classificacao.present? p strong Classificação: ==< @recebimento_de_material.localizar(:classificacao) .col-md-6 - if @recebimento_de_material.doacao? && @recebimento_de_material.doador.present? p strong Doador: ==< @recebimento_de_material.doador.cpf_ou_cnpj_e_nome // Dados da nota fiscal - if @recebimento_de_material.numero_da_nota.present? && @recebimento_de_material.serie.present? && @recebimento_de_material.data_de_emissao.present? legend strong Dados da Nota Fiscal .row .col-md-6 p strong Data de Emissão: ==< @recebimento_de_material.data_de_emissao .col-md-6 p strong Nº da Nota Fiscal: ==< @recebimento_de_material.numero_da_nota .col-md-6 strong Valor Total: ==< @recebimento_de_material.valor_total_do_recebimento.real_contabil // Informações Adicionais - if (@recebimento_de_material.eh_alimenticio? || @recebimento_de_material.eh_farmaceutico? || @recebimento_de_material.eh_limpeza?) && @recebimento_de_material.classificacao.nil? legend strong Informações Adicionais .row .col-md-6 - if !@recebimento_de_material.eh_farmaceutico? p strong Perecível?: ==< label_sim_nao(@recebimento_de_material.perecivel?) - if @recebimento_de_material.validade.present? p strong Data de Vencimento: ==< @recebimento_de_material.try(:validade) - if @recebimento_de_material.odor.present? p strong Odor: ==< @recebimento_de_material.localizar(:odor) - if @recebimento_de_material.textura.present? p strong Textura: ==< @recebimento_de_material.localizar(:textura) .col-md-6 - if @recebimento_de_material.cor.present? p strong Cor: ==< @recebimento_de_material.localizar(:cor) - if @recebimento_de_material.aspecto_geral.present? p strong Aspecto Geral: ==< @recebimento_de_material.localizar(:aspecto_geral) - if @recebimento_de_material.condicao_da_embalagem.present? p strong Embalagem: ==< @recebimento_de_material.localizar(:condicao_da_embalagem) - if @recebimento_de_material.fabricante.present? p strong Fabricante: ==< @recebimento_de_material.try(:fabricante) - if @recebimento_de_material.lote.present? p strong Lote de Fabricação: ==< @recebimento_de_material.try(:lote) - if @recebimento_de_material.registro_no_ministerio_da_saude.present? p strong Registro no Ministério da Saúde: ==< @recebimento_de_material.try(:registro_no_ministerio_da_saude) hr .row .col-sm-12 p strong Observações: ==< @recebimento_de_material.observacao .row .col-md-10 .btn-toolbar .btn-group = link_to intermodulos_movimentacoes_do_estoque_path(relatorio: cookies[:detalhamento_do_estoque]), class: "btn btn-default btn-sm" do i.icone-voltar ' Voltar .col-md-2 .btn-toolbar .btn-group = link_to intermodulos_reconhecer_ou_desreconhecer_movimentacoes_do_estoque_path(movimentacao_ids: @recebimento_de_material.id, status_selecionado: @recebimento_de_material.status_de_reconhecimento), method: :post, data: { confirm: 'Tem certeza?' }, class: "btn btn-default btn-sm" do - unless @recebimento_de_material.reconhecido? i.icone-avancar ' Reconhecer recebimento -else i.icone-voltar ' Desreconhecer recebimento .clearfix ul id="tabs1" class="nav nav-tabs pull-left" li class="#{'active' if params[:tab] == "itens_do_recebimento_de_materiais" || !params[:tab]}" a data-target="#itens_do_recebimento_de_materiais" data-toggle="tab" aria-expanded="true" ' Itens =< badge @recebimento_de_material.itens_do_recebimento_de_materiais.count li class="#{'active' if params[:tab] == "eventos_contabeis"}" a data-target="#eventos_contabeis" data-toggle="tab" aria-expanded="true" ' Eventos Contabeis =< badge @recebimento_de_material.movimentacoes_do_plano_de_contas.joins(:evento_contabil).where('contabilidade_eventos_contabeis.orcamento_id = ?', contexto_atual.id).debito.size #tabs1c.tab-content.mb-lg .tab-pane.clearfix class="#{'active' if params[:tab] == "itens_do_recebimento_de_materiais" || !params[:tab]}" id="itens_do_recebimento_de_materiais" = render partial: 'grid_itens_gestao_de_estoque', locals: { itens_do_recebimento_de_materiais: @recebimento_de_material.itens_do_recebimento_de_materiais} .tab-pane.clearfix class="#{'active' if params[:tab] == "eventos_contabeis"}" id="eventos_contabeis" == render partial: 'contabilidade/eventos_contabeis/grid_eventos_contabeis', locals: { movimentacoes_do_plano_de_contas: @recebimento_de_material.movimentacoes_do_plano_de_contas.joins(:evento_contabil).where('contabilidade_eventos_contabeis.orcamento_id = ?', contexto_atual.id).debito, gerador: @recebimento_de_material }