- configuracao = Configuracao.last - unidade_orcamentaria = Loa::UnidadeOrcamentaria.find(@unidade_orcamentaria) rescue nil - if unidade_orcamentaria.present? && (unidade_orcamentaria != 'CONSOLIDADO' && unidade_orcamentaria != 'Todas as Unidades') && unidade_orcamentaria.orgao.tipo_de_unidade_administrativa.legislativo? - titulo_principal = unidade_orcamentaria.orgao.try(:nome).try(:upcase) - else - titulo_principal = configuracao.try(:nome_da_prefeitura).try(:upcase) .cabecalho .logo - if unidade_orcamentaria.try(:logo_file_name).present? - logo = unidade_orcamentaria.logo - else - logo = configuracao.brasao.url = wicked_pdf_image_tag logo, height: "90px", width: "110px", style: "margin-right: 20px;" - if configuracao.customizacao.exibir_prefeitura_municipal? h2 = titulo_principal h3 = "#{titulo1.try(:upcase) if local_variables.include?(:titulo1)}" h4 = "#{titulo2.try(:upcase) if local_variables.include?(:titulo2)}" h4 = "#{titulo3.try(:upcase) if local_variables.include?(:titulo3)}" h4 = "#{titulo4.try(:upcase) if local_variables.include?(:titulo4)}" - else h3 = "#{titulo1.try(:upcase) if local_variables.include?(:titulo1)}" h4 = "#{titulo2.try(:upcase) if local_variables.include?(:titulo2)}" h4 = "#{titulo3.try(:upcase) if local_variables.include?(:titulo3)}" h4 = "#{titulo4.try(:upcase) if local_variables.include?(:titulo4)}" br br br - if @relatorio_da_licitacao&.relatorio == 'resumo_do_plano' p style="text-align: center; font-size: 20px; margin-bottom: 20px;" RESUMO DO PLANO table.brbr width="100%" thead tr th.centralizar width="5%" DFD th.centralizar width="10%" Unidade Orçamentária th.centralizar width="20%" Objeto th.centralizar width="10%" Previsão de Contratação th.centralizar width="10%" Valor Estimado th.centralizar width="10%" Categoria de Despesa th.centralizar width="15%" Tipo de Contratação th.centralizar width="10%" Prioridade th.centralizar width="10%" Modalidade do Processo - if @relatorio_da_licitacao&.relatorio == 'valores_estimados' p style="text-align: center; font-size: 20px; margin-bottom: 20px;" VALORES ESTIMADOS table.brbr width="100%" thead tr - if @relatorio_da_licitacao.unidade_orcamentaria != "consolidado" th width="15%" Unidade Orçamentária th width="35%" Elemento th width="30%" Subelemento th width="5%" % th width="15%" Valor Estimado - else th width="35%" Elemento th width="40%" Subelemento th width="10%" % th width="15%" Valor Estimado - if @relatorio_da_licitacao&.relatorio == 'valores_estimados_por_prefeitura' p style="text-align: center; font-size: 20px; margin-bottom: 20px;" VALORES ESTIMADOS POR PREFEITURA table.brbr width="100%" thead tr - if @relatorio_da_licitacao.unidade_orcamentaria != "consolidado" th Unidade Orçamentária th Elemento th Subelemento th % th Valor Estimado - else th width="35%" Elemento th width="30%" Subelemento th width="10%" % th width="25%" Valor Estimado