- configuracao = Configuracao.last - if @unidade_orcamentaria.present? && @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 br br br br - if @relatorio_da_contabilidade == 'balancete_orcamentario' table style="border: none; border-top: 1px solid black; border-bottom: 1px solid black" thead tr th style="border: none; width: 25%; border-top: 1px solid black; border-bottom: 1px solid black" Código th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Fixada th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Créditos Adicionais th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Reduções th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Anulação do Empenho no mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada no mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Saldo orçamentário - if @relatorio_da_contabilidade == 'balancete_receita' table style="border: none; border-top: 1px solid black; border-bottom: 1px solid black" thead tr th style="border: none; width: 40%; border-top: 1px solid black; border-bottom: 1px solid black" Detalhamento da Receita Orçamentária th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Previsão th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Arrecadação Anterior th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Anulado no mês / th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Anulado até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Arrecadado no mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Arrecadado até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Diferença - if @relatorio_da_contabilidade == 'balancete_despesa' table style="border: none; border-top: 1px solid black; border-bottom: 1px solid black" thead tr th style="border: none; width: 25%; border-top: 1px solid black; border-bottom: 1px solid black; width: 25%" Código th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Estorno de pagto no mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Pago no Mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Pago até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada e a Pagar - if @relatorio_da_contabilidade == 'resumo_balancete' table style="border: none; border-top: 1px solid black; border-bottom: 1px solid black" thead tr th style="border: none; width: 25%; border-top: 1px solid black; border-bottom: 1px solid black" Código th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Fixada th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Dotação Atualizada th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada até o Mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Liquidado até o Mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Pago até o Mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Saldo orçamentário - if @relatorio_da_contabilidade == 'balancete_despesa_liquidacao' table style="border: none; border-top: 1px solid black; border-bottom: 1px solid black" thead tr th style="border: none; width: 25%; border-top: 1px solid black; border-bottom: 1px solid black;" Código th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Estorno de liq. no mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Liquidado no mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Liquidado até o mês th align="center" style="border: none; width: 10%; border-top: 1px solid black; border-bottom: 1px solid black" Empenhada e a Liquidar - if params[:relatorio] == 'relatorio_rp_funcao' - if params[:processado] == "true" table style="border: none;" thead th(colspan="6" align='center' style='border:none; font-size:12px;' class="quadro-titulo") Quadro de RP Processado tr th style="border: none; text-transform: none;font-size:12px" width="10%" Despesas por função th colspan="2" style="border: none; text-transform: none;font-size:12px" width="15%" Inscritos th align='center' style="border: none; text-transform: none;font-size:12px" width="15%" Liquidados (c) th align='center' style="border: none; text-transform: none;font-size:12px" width="15%" Pagos (d) th style="border: none; text-transform: none;font-size:12px" width="15%" Cancelados (e) tr style="border: none;" th style="border: none; text-transform: none;font-size:12px" width="10%" th style="border: none; text-transform: none;font-size:12px" width="15%" Em Exercícios Anteriores(a) th style="text-transform: none; border: none;font-size:12px" width="15%" Em 31 de Dezembro do Exercício Anterior(b) th style="border: none; text-transform: none;font-size:12px" width="15%" th style="border: none; text-transform: none;font-size:12px" width="15%" th style="border: none; text-transform: none;font-size:12px" width="15%" - else table style="border: none;" thead th(colspan="6" align='center' style='border:none; font-size:12px;' class="quadro-titulo") Quadro de RP Não Processado tr th style="border: none; text-transform: none;font-size:12px" width="10%" Despesas por função th colspan="2" style="border: none; text-transform: none;font-size:12px" width="15%" Inscritos th align='center' style="border: none; text-transform: none;font-size:12px" width="15%" Liquidados (c) th align='center' style="border: none; text-transform: none;font-size:12px" width="15%" Pagos (d) th style="border: none; text-transform: none;font-size:12px" width="15%" Cancelados (e) tr style="border: none;" th style="border: none; text-transform: none;font-size:12px" width="10%" th style="border: none; text-transform: none;font-size:12px" width="15%" Em Exercícios Anteriores(a) th style="text-transform: none; border: none;font-size:12px" width="15%" Em 31 de Dezembro do Exercício Anterior(b) th style="border: none; text-transform: none;font-size:12px" width="15%" th style="border: none; text-transform: none;font-size:12px" width="15%" th style="border: none; text-transform: none;font-size:12px" width="15%" - if params[:relatorio] == 'relatorio_rp_classificacao' table style="border: none;" thead - if params[:processado] == "true" th(colspan="6" align='center' style='border:none; font-size:12px;' class="quadro-titulo") Quadro de RP Processado - elsif params[:nao_processado] == "true" th(colspan="6" align='center' style='border:none; font-size:12px;' class="quadro-titulo") Quadro de RP Não Processado - else th(colspan="6" align='center' style='border:none; font-size:12px;' class="quadro-titulo") Quadro de RP (Processado e Não Processado) tr th style="border: none; text-transform: none;font-size:12px" width="30%" Despesas por Classificação th colspan="2" style="border: none; text-transform: none;font-size:12px" width="40%" Inscritos th align='center' style="border: none; text-transform: none;font-size:12px" width="10%" Liquidados (c) th align='center' style="border: none; text-transform: none;font-size:12px" width="10%" Pagos (d) th style="border: none; text-transform: none;font-size:12px" width="10%" Cancelados (e) tr style="border: none;" th style="border: none; text-transform: none;font-size:12px" width="30%" th style="border: none; text-transform: none;font-size:12px" width="20%" Em Exercícios Anteriores(a) th style="text-transform: none; border: none;font-size:12px" width="20%" Em 31 de Dezembro do Exercício Anterior(b) th style="border: none; text-transform: none;font-size:12px" width="10%" th style="border: none; text-transform: none;font-size:12px" width="10%" th style="border: none; text-transform: none;font-size:12px" width="10%"