├── .gitignore ├── .ruby-version ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── lib ├── base_breakdown.rb ├── budget.rb ├── budget_summary_view.rb ├── entity_breakdown.rb ├── generic_breakdown.rb ├── income_breakdown.rb └── programme_breakdown.rb ├── output ├── 2007 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2008 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2009 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2010 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2011 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2012 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2013 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2014 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2015 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2016 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2017 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2018 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2021 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2022 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2023 │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2014P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2015P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2016P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2017P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2018P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2019P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2021P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2022P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv ├── 2023P │ ├── README.md │ ├── estructura_economica.csv │ ├── estructura_funcional.csv │ ├── estructura_organica.csv │ ├── gastos.csv │ └── ingresos.csv └── README.md ├── parse_budget.rb └── render_budget_summary.rb /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /20* -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.6.5 -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gem 'nokogiri' 4 | gem 'mustache' 5 | gem 'unicode_utils' -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | mini_portile2 (2.8.0) 5 | mustache (1.1.1) 6 | nokogiri (1.13.4) 7 | mini_portile2 (~> 2.8.0) 8 | racc (~> 1.4) 9 | racc (1.6.0) 10 | unicode_utils (1.4.0) 11 | 12 | PLATFORMS 13 | ruby 14 | 15 | DEPENDENCIES 16 | mustache 17 | nokogiri 18 | unicode_utils 19 | 20 | BUNDLED WITH 21 | 1.17.3 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Los Presupuestos 2 | ================ 3 | 4 | Los Presupuestos Generales del Estado del año 2010 se encuentran disponibles en la web del [Ministerio de Hacienda y Administraciones Públicas][1]. Antes de comenzar a trabajar con los Presupuestos es muy recomendable leer el [Libro Azul][2], que da una visión general de la estructura de los mismos. 5 | 6 | Ejecutando los scripts 7 | ====================== 8 | 9 | Preparación: descargando los Presupuestos 10 | ----------------------------------------- 11 | 12 | Los Presupuestos Generales del Estado están disponibles en la web del Ministerio tanto en su versión aprobada (la que nos interesa por ahora) como en la versión del proyecto de ley. Cada una de estas versiones se puede visualizar en línea o se puede descargar. En nuestro caso, estamos interesados en descargar la información para trabajar localmente, mucho más cómoda y rápidamente. 13 | 14 | Las descargas se pueden hacer "por tomos", donde un fichero PDF representa cada uno de los tomos que componen la versión física del Presupuesto, pero para procesar la información automáticamente es mucho mejor la versión "normal", que incluye una versión HTML de cada uno de los artículos del Presupuesto. 15 | 16 | [1]: http://www.sepg.pap.hacienda.gob.es/sitios/sepg/es-ES/Presupuestos/Paginas/MenuSitio.aspx 17 | [2]: http://www.sepg.pap.hacienda.gob.es/sitios/sepg/es-ES/Presupuestos/PresupuestosEjerciciosAnteriores/Documents/EJERCICIO%202018/LIBRO%20AZUL%202018%20%28con%20marcadores%29.pdf 18 | 19 | Entendiendo la estructura de ficheros 20 | ------------------------------------- 21 | 22 | La versión de los Presupuestos que nos hemos descargado consiste en un enorme conjunto de ficheros .HTM con nombres aparentemente crípticos. Una pequeña explicación del significado de los nombres de los ficheros se encuentra en [`budget.rb`][3]. 23 | 24 | [3]: https://github.com/civio/pge-parser/blob/master/lib/budget.rb 25 | 26 | Extracción de gastos presupuestados 27 | ----------------------------------- 28 | 29 | Existen tareas Rake para ejecutar las tareas relacionadas con los presupuestos: 30 | 31 | $ rake -T 32 | rake "budget:parse[year]" # Extract all information from budget files 33 | rake "budget:summary[year]" # Generate a summary with budget key figures 34 | 35 | Para extraer los datos de gastos de los Presupuestos, ejecutar por ejemplo: 36 | 37 | $ mkdir output/2014 38 | $ rake "budget:parse[2014]" 39 | 40 | Los datos extraídos se redirigen a ficheros en la carpeta `output/[año]/`. 41 | 42 | Para generar un resumen con las principales cifras del presupuesto, así como verificar su validez comparándolas con las cifras oficiales, ejecutar: 43 | 44 | $ rake "budget:summary[2014]" 45 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | 2 | namespace 'budget' do 3 | 4 | desc "Extract all information from budget files" 5 | task :parse, [:year] do |t, args| 6 | puts "Parsing budget for year #{args.year}." 7 | puts `ruby "#{File.dirname(__FILE__)}/parse_budget.rb" "#{args.year}"` 8 | end 9 | 10 | desc "Generate a summary with budget key figures" 11 | task :summary, [:year] do |t, args| 12 | puts "Rendering budget summary for year #{args.year}." 13 | puts `ruby "#{File.dirname(__FILE__)}/render_budget_summary.rb" "#{args.year}"` 14 | end 15 | end -------------------------------------------------------------------------------- /lib/base_breakdown.rb: -------------------------------------------------------------------------------- 1 | class BaseBreakdown 2 | 3 | # Returns a list of budget items and subtotals. Because of the convoluted format of the 4 | # input file, with subtotals being split across two lines, some massaging is needed. 5 | def merge_subtotals(data_grid, year, section, open_subtotals=[]) 6 | lines = [] 7 | data_grid.each do |row| 8 | partial_line = { 9 | year: year, 10 | section: section, 11 | service: row[:service], 12 | programme: row[:programme], 13 | economic_concept: row[:expense_concept], 14 | description: row[:description] 15 | } 16 | 17 | if ( row[:amount].empty? ) # opening heading 18 | open_subtotals << partial_line 19 | elsif ( row[:expense_concept].empty? ) # closing heading 20 | last_heading = open_subtotals.pop() 21 | lines.push( last_heading.merge({ amount: row[:amount] }) ) unless last_heading.nil? 22 | else # standard data row 23 | lines.push( partial_line.merge({ amount: row[:amount] }) ) 24 | end 25 | end 26 | lines 27 | end 28 | 29 | end -------------------------------------------------------------------------------- /lib/budget.rb: -------------------------------------------------------------------------------- 1 | =begin 2 | Parte general del nombre 3 | N_10[Año]_E[2008+: A=proyecto,E=aprobado / -2007: P=proyecto,S=aprobado]_V[Color]_1[Serie]_ 4 | más parte específica, como: 5 | 102[O Autonomos]_2_2[Gastos]_2[Detalle]_115[Seccion MEH]_1_2[Detalle]_1105[INE]_1 6 | 7 | N_10_E_A_3_ Memorias: variación respecto a ejercicio anterior 8 | Presupuesto consolidado (debería ser A.4) 9 | N_10_E_G_5_ Consorcios con participación no mayoritaria del Sector Público 10 | N_10_E_R_2_ Ingresos 11 | 1[Ámbito]_1_ 12 | 01 Estado 13 | 02 Organismos Autónomos 14 | 03 Agencias Estatales 15 | 04 Otros Organismos Públicos 16 | 05 Seguridad Social 17 | 2_ Presupuesto de ingresos 18 | . 1[Sección]_1_ Desglose por sección 19 | . 1[Organismo]_1 Detalle por organismo 20 | . 2 Resumen por organismos y artículos 21 | . 4 Resumen por capítulos 22 | 6 Resumen por capítulos 23 | A Resumen por organismos y capítulos 24 | B Resumen por artículos y secciones 25 | N_10_E_R_31_ Gastos. Presupuestos por programas (R.3) 26 | 1[Sección]_1_ Organismos del estado (Casa Real, Ministerios, Fondos de compensación CCAA...) 27 | . 1_ Presupuesto de gastos 28 | . . 1_ Por programa 29 | . . . 1[Programa]_ 30 | . . . . 2 Presupuesto gastos (Detalle) 31 | . . . . 3 Presupuesto gastos (Resumen orgánico/económico) 32 | . . . T_ 33 | . . . 1 Transferencias internas (Detalle) 34 | . . . 2 Transferencias internas (Resumen orgánico/económico) 35 | . . 2 Presupuesto agregado organismo 36 | . 2 Anexo inversiones/personal (por programa) 37 | 2_1_ Seguridad Social 38 | G_1_ Gastos 39 | . 1_ 40 | . . 1[Programa]_ 41 | . . . O Presupuesto gastos (Resumen orgánico/económico) 42 | . . . P Presupuesto gastos (Detalle) 43 | . . T_ 44 | . . . 1 Transferencias internas (Detalle) 45 | . . . 2 Transferencias internas (Resumen orgánico/económico) 46 | . 2 Resumen orgánico por programas y capítulos 47 | . 7 Resumen económico por programas 48 | I_ Ingresos 49 | N_10_E_R_4_ Estados financieros y cuentas de Organismos Autónomos (debería ser R.5/6/7?) 50 | N_10_E_R_5_ Estados financieros y cuentas de Organismos Autónomos (debería ser R.6/7?) 51 | N_10_E_R_6_ Resúmenes Ingresos y Gastos (debería ser R.8) 52 | N_10_E_R_7_ Cuentas fondos y consorcios? (R.6?) 53 | N_10_E_V_1_ Ingresos y gastos. Anexos de desarrollo orgánico y económico 54 | 1[Ámbito]_2_ 55 | 01 Estado 56 | 02 Organismos Autónomos 57 | 03 Agencias Estatales 58 | 04 Otros Organismos Públicos 59 | 1_ Ingresos 60 | . 1 Resumen general por organismos y capítulos (agregado) 61 | . 2_1[Sección]_1_ Desglose por sección 62 | . 1[Organismo]_1 Detalle por organismo 63 | . 3 Resumen por artículos 64 | . 4 Resumen por capítulos 65 | . 3 Resumen general por artículos y secciones (agregado) 66 | . 5_1 Resumen general por artículos 67 | 2_ Gastos 68 | . 1 Resumen general por organismos y capítulos (agregado) 69 | . 2_1[Sección]_1_ Desglose por sección 70 | . 1_1 Detalle por seccion 71 | . 2_1[Organismo]_1 Detalle por organismo 72 | . 3 Resumen por artículos 73 | . 4 Resumen por capítulos 74 | 3_ Cuentas de explotación y balances (no para todos?) 75 | N_10_E_V_2_ Anexos de inversiones reales y programación plurianual (estructura por CCAA y organismo) 76 | N_10_E_V_3_ Anexos de personal 77 | 1 Estructura orgánica 78 | 2 Por programa 79 | 80 | =end 81 | 82 | require 'bigdecimal' 83 | 84 | # TODO: Actually, we could probably remove this class and move the methods below into the 85 | # breakdown classes, as class methods. 86 | 87 | require_relative 'entity_breakdown' 88 | require_relative 'programme_breakdown' 89 | require_relative 'income_breakdown' 90 | require_relative 'generic_breakdown' 91 | 92 | class Budget 93 | def initialize(path, is_final) 94 | @path = path || '' 95 | @is_final = is_final 96 | end 97 | 98 | def entity_breakdowns 99 | Dir[@path+'/doc/HTM/*.HTM']. 100 | select {|f| EntityBreakdown.entity_breakdown? f }. 101 | map {|f| EntityBreakdown.new(f) } 102 | end 103 | 104 | def programme_breakdowns 105 | Dir[@path+'/doc/HTM/*.HTM']. 106 | select {|f| ProgrammeBreakdown.programme_breakdown? f }. 107 | map {|f| ProgrammeBreakdown.new(f) } 108 | end 109 | 110 | def income_breakdowns 111 | Dir[@path+'/doc/HTM/*.HTM']. 112 | select {|f| IncomeBreakdown.income_breakdown? f }. 113 | map {|f| IncomeBreakdown.new(f) } 114 | end 115 | 116 | def generic_breakdown(year, breakdown_id) 117 | budget_letter = @is_final ? (year.to_i < 2008 ? 'S': 'E') : 'A' 118 | filename = "N_#{(year.to_s)[-2..-1]}_#{budget_letter}_#{breakdown_id}.HTM" 119 | full_path = File.join(@path, 'doc', 'HTM', filename) 120 | GenericBreakdown.new(full_path) 121 | end 122 | 123 | # Reads a number in spanish notation. Also note input number is in thousands of euros. 124 | def self.convert_number(amount) 125 | return '' if amount.nil? or amount.empty? or amount.delete('.').nil? 126 | (BigDecimal( amount.delete('.').tr(',','.') ) * 1000).to_int 127 | end 128 | end 129 | -------------------------------------------------------------------------------- /lib/budget_summary_view.rb: -------------------------------------------------------------------------------- 1 | # Class containing the summary data for the Mustache template 2 | 3 | require 'mustache' 4 | 5 | class BudgetSummaryView < Mustache 6 | def initialize(budget, year) 7 | @budget = budget 8 | @year = year 9 | @income = { 10 | estado: {}, 11 | ooaa: {}, 12 | agencias: {}, 13 | otros: {}, 14 | seg_social: {}, 15 | consolidado: {} 16 | } 17 | @expenses = { 18 | estado: {}, 19 | ooaa: {}, 20 | agencias: {}, 21 | otros: {}, 22 | seg_social: {}, 23 | consolidado: {} 24 | } 25 | end 26 | 27 | def year; @year end 28 | 29 | def ingresos_estado; summary_line(@income, :estado) end 30 | def ingresos_ooaa; summary_line(@income, :ooaa) end 31 | def ingresos_agencias; summary_line(@income, :agencias) end 32 | def ingresos_otros; summary_line(@income, :otros) end 33 | def ingresos_seg_social; summary_line(@income, :seg_social) end 34 | def ingresos_transferencias; transfer_line(@income) end 35 | def ingresos_consolidado; total_line(@income) end 36 | 37 | def gastos_estado; summary_line(@expenses, :estado) end 38 | def gastos_ooaa; summary_line(@expenses, :ooaa) end 39 | def gastos_agencias; summary_line(@expenses, :agencias) end 40 | def gastos_otros; summary_line(@expenses, :otros) end 41 | def gastos_seg_social; summary_line(@expenses, :seg_social) end 42 | def gastos_transferencias; transfer_line(@expenses) end 43 | def gastos_consolidado; total_line(@expenses) end 44 | 45 | def add_item(item) 46 | # Extract basic details 47 | is_income = (item.size == 7) 48 | root_breakdown = is_income ? @income : @expenses 49 | concept = item[is_income ? 2 : 3] 50 | entity = item[1] 51 | section = entity[0..1] 52 | amount = item[is_income ? 6 : 7].to_i 53 | 54 | # Find out which sector the item belongs to 55 | if section == '60' 56 | category = :seg_social 57 | else 58 | # There were some changes in 2018, where Agencies and Other Bodies were joined. E.g. 59 | # 2017: 60 | # 12001 Ministerio de Asuntos Exteriores 61 | # 13101 Centro de Estudios Jurídicos 62 | # 12301 Instituto Cervantes 63 | # 12401 AECID 64 | # 65 | # 2018: 66 | # 12001 Ministerio de Asuntos Exteriores 67 | # 13101 Centro de Estudios Jurídicos 68 | # 12301 Instituto Cervantes 69 | # 12302 AECID 70 | 71 | case entity[2] 72 | when '1', '2' 73 | category = :ooaa 74 | when '3' 75 | category = :otros 76 | when '4' 77 | category = :agencias 78 | else # 0 79 | category = :estado 80 | end 81 | end 82 | breakdown = root_breakdown[category] 83 | 84 | # Add it up 85 | if concept.length == 1 # We add only chapters, i.e. top-level concepts 86 | breakdown[concept] = (breakdown[concept]||0) + amount 87 | root_breakdown[:consolidado][concept] = (root_breakdown[:consolidado][concept]||0) + amount 88 | end 89 | 90 | # Is it an internal transfer? 91 | if is_income 92 | is_internal_transfer = (concept.length == 2 and ['40', '41', '42', '43', '70', '71', '72', '73'].include? concept) 93 | else 94 | is_internal_transfer = (concept.length == 1 and item[2] == '000X') 95 | end 96 | if is_internal_transfer 97 | chapter = concept[0] 98 | breakdown[:transferencias] = (breakdown[:transferencias]||0) - amount 99 | root_breakdown[:consolidado][chapter] = (root_breakdown[:consolidado][chapter]||0) - amount 100 | root_breakdown[:consolidado][:transferencias] = (root_breakdown[:consolidado][:transferencias]||0) - amount 101 | end 102 | end 103 | 104 | # Performs a series of tests comparing our aggregated figures with the summary 105 | # ones published as part of the official budget. Automated testing for budget parsing! 106 | # 107 | # Note: I considered using as valid the global summaries published in the Yellow series [1]. 108 | # But they are NOT correct. That's correct: some of the summaries included in the budget 109 | # are incorrect! Just compare f.ex. the total expense for 'other bodies' in [1] with the 110 | # corresponding detailed breakdown at [2]. The sums in [1] are being done using ROUNDED 111 | # numbers, and the totals never corrected, so they are WRONG! 112 | # 113 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014proyecto/MaestroDocumentos/PGE-ROM/N_14_A_A_3.htm 114 | # [2]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_102_1_4_1.HTM 115 | def check_budget 116 | checks = [] 117 | 118 | # Internal consistency 119 | checks << check_equal("Transferencias internas ingresos = gastos", 120 | beautify(@income[:consolidado][:transferencias]), 121 | beautify(@expenses[:consolidado][:transferencias]) ) 122 | 123 | # Expenses 124 | checks.concat check_expenses('R_6_2_801_1_3', "Estado", :estado) 125 | checks.concat check_expenses('R_6_2_802_1_3', "Organismos Autónomos", :ooaa) 126 | if @year.to_i < 2018 127 | checks.concat check_expenses('R_6_2_803_1_3', "Agencias estatales", :agencias) 128 | checks.concat check_expenses('R_6_2_804_1_3', "Otros organismos", :otros) 129 | else 130 | checks.concat check_expenses('R_6_2_803_1_3', "Otros organismos", :otros) 131 | end 132 | checks.concat check_expenses('R_6_2_805_1_3', "Seguridad Social", :seg_social) 133 | 134 | # Income 135 | checks.concat check_income('R_6_1_101_1_5_1', "Estado", :estado) 136 | checks.concat check_income('R_6_1_102_1_4_1', "Organismos Autónomos", :ooaa) 137 | if @year.to_i < 2018 138 | checks.concat check_income('R_6_1_103_1_4_1', "Agencias estatales", :agencias) 139 | checks.concat check_income('R_6_1_104_1_4_1', "Otros organismos", :otros) 140 | else 141 | checks.concat check_income('R_6_1_103_1_4_1', "Otros organismos", :otros) 142 | end 143 | checks.concat check_income('R_6_1_105_1_5_1', "Seguridad Social", :seg_social) 144 | 145 | # Return results 146 | checks.join("\n") 147 | end 148 | 149 | private 150 | 151 | def summary_line(breakdown, type) 152 | "#{beautify sum(breakdown[type], 7)}|" \ 153 | "#{beautify sum(breakdown[type], 8)}|" \ 154 | "#{beautify sum(breakdown[type], 9)}|" \ 155 | "#{beautify( sum(breakdown[type], 9)+(breakdown[type][:transferencias]||0) )}" 156 | end 157 | 158 | def transfer_line(breakdown) 159 | total_transfers = beautify(breakdown[:consolidado][:transferencias]) 160 | "#{total_transfers}|#{total_transfers}|#{total_transfers}|" 161 | end 162 | 163 | def total_line(breakdown) 164 | "**#{beautify sum(breakdown[:consolidado], 7)}**|" \ 165 | "**#{beautify sum(breakdown[:consolidado], 8)}**|" \ 166 | "**#{beautify sum(breakdown[:consolidado], 9)}**|" \ 167 | "**#{beautify sum(breakdown[:consolidado], 9)}**" 168 | end 169 | 170 | def sum(breakdown, limit) 171 | (1..limit).inject(0) {|sum, chapter| sum + (breakdown[chapter.to_s]||0) } 172 | end 173 | 174 | def get_official_value(breakdown, description) 175 | beautify(Budget.convert_number(breakdown.get_value_by_description(description))) 176 | end 177 | 178 | def beautify(i) 179 | # See http://stackoverflow.com/questions/6458990/how-to-format-a-number-1000-as-1-000 180 | i.to_s.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1,") 181 | end 182 | 183 | # Convenience 184 | def check_expenses(breakdown_id, entity_description, entity_id) 185 | checks = [] 186 | 187 | # Does the official budget summary substract the internal transfers at the end, after 188 | # adding up gross figures for the different chapters? Or does it add net figures, and 189 | # add the transfers at the end to get the overall gross figure. Well, it depends on the 190 | # year of the budget! Oh yeah! 191 | add_gross_figures = (@year.to_i >= 2014) 192 | if add_gross_figures 193 | gross_total_name = "TOTAL PRESUPUESTO" 194 | else 195 | gross_total_name = "TOTAL" 196 | end 197 | 198 | expenses = @budget.generic_breakdown(@year, breakdown_id) 199 | # We know that all transfers sit in chapters <= 7, so we just use the total everywhere 200 | transfers = @expenses[entity_id][:transferencias]||0 201 | url = expenses.get_url() 202 | checks << check_equal("Gastos #{entity_description} - operaciones no financieros", 203 | get_official_value(expenses, "TOTAL OPERACIONES NO FINANCIERAS"), 204 | beautify(sum(@expenses[entity_id], 7) + (add_gross_figures ? 0 : transfers)), 205 | url ) 206 | checks << check_equal("Gastos #{entity_description} - capítulos I-VIII", 207 | get_official_value(expenses, "TOTAL Capítulos 1-8"), 208 | beautify(sum(@expenses[entity_id], 8) + (add_gross_figures ? 0 : transfers)), 209 | url ) unless entity_id==:otros 210 | checks << check_equal("Gastos #{entity_description} - presupuesto total", 211 | get_official_value(expenses, gross_total_name), 212 | beautify(sum(@expenses[entity_id], 9)), 213 | url ) 214 | 215 | if transfers != 0 or @year.to_i >= 2014 # snif 216 | checks << check_equal("Gastos #{entity_description} - presupuesto consolidado", 217 | get_official_value(expenses, "TOTAL CONSOLIDADO"), 218 | beautify(sum(@expenses[entity_id], 9)+transfers), 219 | url ) 220 | else 221 | # If there are no internal transfers we check the consolidated figure 222 | # in the official documentation is missing 223 | checks << check_equal("Gastos #{entity_description} - presupuesto consolidado", 224 | get_official_value(expenses, "TOTAL CONSOLIDADO"), 225 | '', 226 | url ) 227 | end 228 | 229 | checks 230 | end 231 | 232 | # Compared to the expense checks: 233 | # - the sum of chapters I-VIII is not there, so we can't test it 234 | # - we don't have consolidated figures, i.e. without internal transfers 235 | def check_income(breakdown_id, entity_description, entity_id) 236 | checks = [] 237 | 238 | income = @budget.generic_breakdown(@year, breakdown_id) 239 | url = income.get_url() 240 | checks << check_equal("Ingresos #{entity_description} - operaciones no financieros", 241 | get_official_value(income, "TOTAL OPERACIONES NO FINANCIERAS"), 242 | beautify(sum(@income[entity_id], 7)), 243 | url ) 244 | checks << check_equal("Ingresos #{entity_description} - presupuesto total", 245 | get_official_value(income, "TOTAL"), 246 | beautify(sum(@income[entity_id], 9)), 247 | url ) 248 | 249 | checks 250 | end 251 | 252 | # Poor man's unit test... for budgets 253 | def check_equal(message, a, b, source=nil) 254 | if a==b 255 | output = " * #{message}: OK (#{a})" 256 | else 257 | output = " * **#{message}: ERROR #{a} != #{b}**" 258 | end 259 | output = output + " [fuente](#{source})" unless source.nil? 260 | output 261 | end 262 | end 263 | -------------------------------------------------------------------------------- /lib/entity_breakdown.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nokogiri' 4 | require 'open-uri' 5 | require_relative 'base_breakdown' 6 | 7 | # Parser for entity expense breakdowns (Serie Verde / Green books), i.e. pages like [1]. 8 | # 9 | # About the entity type: 10 | # - State: ministries and their parts (departments, for example) are marked as type 1 11 | # - Non-state: autonomus bodies (type 2), dependent agencies (3) and other bodies (4) 12 | # 13 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_V_1_101_1_1_2_2_118_1_2.HTM 14 | # 15 | class EntityBreakdown < BaseBreakdown 16 | attr_reader :year, :section, :entity, :filename 17 | 18 | def initialize(filename) 19 | # The filename structure changed in 2012, so we need to start by finding out the year 20 | @year = EntityBreakdown.get_year(filename) 21 | 22 | # Once the year is known, we can extract additional details from the filename 23 | @filename = filename 24 | filename =~ EntityBreakdown.get_expense_breakdown_filename_regex(@year, is_state_entity?) 25 | @section = $3 # Parent section 26 | @entity = $4 unless is_state_entity? # Id of the non-state entity 27 | 28 | # Not used anymore, but since it was implemented already... 29 | # (Doesn't combine well with ProgrammeBreakdown, with different entities sitting 30 | # in the same page.) 31 | # @entity_type = $2 # Always 1 for state entities, 2-4 for non-state 32 | end 33 | 34 | # We know whether an entity is state or not by trying to match the filename against 35 | # the regex for state entities. If it works, we were right. 36 | def is_state_entity? 37 | @filename =~ EntityBreakdown.get_expense_breakdown_filename_regex(@year, true) 38 | end 39 | 40 | # This bit always breaks every year, so I'm using brute force... 41 | def name 42 | items = doc.at('td') ? doc.css('td') : doc.css('span') # Tables before 2019, divs afterwards 43 | 44 | # Note: the name may include accented characters, so '\w' doesn't work in regex 45 | if is_state_entity? 46 | items.each do |item| # Brute force 47 | # Also, in 2018 there are some weird new line characters at the end, so we `strip` 48 | # the result. See ProgrammeBreakdown::get_section_id_and_name for a longer 49 | # explanation. 50 | return $1.strip if item.text =~ /^\s*Sección: \d\d (.+)$/ # Careful with leading whitespace (2018 budget) 51 | end 52 | else 53 | items.each do |item| # Brute force 54 | return $1.strip if item.text =~ /^\s*Organismo: \d\d\d (.+)$/ # Careful with leading whitespace (2018 budget) 55 | end 56 | end 57 | end 58 | 59 | def children 60 | is_state_entity? ? 61 | expenses.map {|row| {:id=>row[:service], :name=>row[:description]} if row[:programme].empty? }.compact : 62 | [{:id => @entity, :name => name}] 63 | end 64 | 65 | # XXX: Refactor all this messy filename handling logic! :/ 66 | def self.entity_breakdown? (filename) 67 | year = EntityBreakdown.get_year(filename) 68 | filename =~ get_expense_breakdown_filename_regex(year, true) || filename =~ get_expense_breakdown_filename_regex(year, false) 69 | end 70 | 71 | # Returns a list of budget items and subtotals. Because of the convoluted format of the 72 | # input file, with subtotals being split across two lines, some massaging is needed. 73 | def expenses 74 | # The total amounts for service/programme/chapter headings is shown when the subtotal is closed, 75 | # not opened, so we need to keep track of the open ones, and print them when closed. 76 | # Note: there is an unmatched closing amount, without an opening subtotal header, at the end 77 | # of the page, containing the amount for the whole section/entity, so we don't start with 78 | # an empty vector here, we add the 'missing' opening line 79 | open_subtotals = [{ 80 | year: year, 81 | section: section, 82 | service: is_state_entity? ? '' : entity, 83 | description: name 84 | }] 85 | 86 | merge_subtotals(data_grid, year, section, open_subtotals) 87 | end 88 | 89 | private 90 | 91 | def get_data_rows 92 | # Up to 2018, included, data came in a table... 93 | if doc.at('table') 94 | rows = doc.css('table.S0ESTILO9 tr')[1..-1] # 2008 (and earlier?) 95 | rows = doc.css('table.S0ESTILO8 tr')[1..-1] if rows.nil? # 2009 onwards 96 | if rows.nil? 97 | # 2014 is the year of the autogenerated messy CSS: we look for a table header 98 | header = doc.css('table > thead')[0] 99 | rows = header.parent.css('tr')[1..-1] 100 | end 101 | 102 | # But then they switched to some ass-ugly divs with no semantic structure 103 | else 104 | rows = doc.css('body > div > div:nth-child(3) > div:nth-child(2) > div') 105 | end 106 | 107 | rows 108 | end 109 | 110 | # Returns a list of column arrays containing all the information in the input data table, 111 | # basically unmodified, apart from two columns (service, programme) filled in, since 112 | # in the input grid they are only shown when they change 113 | def data_grid 114 | # Breakdowns for state entities contain many sub-entities, whose id is contained in the rows. 115 | # Breakdowns for non-state entities apply to only one child entity, which we know in advance. 116 | last_service = is_state_entity? ? '' : entity 117 | last_programme = '' 118 | 119 | # Iterate through HTML table, skipping header 120 | data_grid = [] 121 | get_data_rows.each do |row| 122 | # Up to 2018, included, data came in a table... Then it didn't. :/ 123 | data_element_name = row.at('td') ? 'td' : 'span' 124 | columns = row.css(data_element_name).map{|el| el.text.strip} 125 | columns.shift if year.to_i >= 2012 126 | columns.insert(0,'') unless is_state_entity? # They lack the first column, 'service' 127 | 128 | # There's a typo in 2017P that threatens to screw up our unfolding of conflicting ids 129 | # later on, so we make sure the description is correct. If more typos were found in the 130 | # future, we'd need to have a more general typo-fixing mechanism, but for now will do. 131 | description = columns[3] 132 | if description == 'Inversión nueva en infraestruras y bienes destinados al uso general' 133 | description = 'Inversión nueva en infraestructuras y bienes destinados al uso general' 134 | end 135 | 136 | item = { 137 | :service => columns[0], 138 | :programme => columns[1], 139 | :expense_concept => columns[2], 140 | :description => description, 141 | :amount => (columns[4] != '') ? columns[4] : columns[5] 142 | } 143 | next if item[:description].empty? # Skip empty lines (no description) 144 | 145 | # Fill blanks in row and save result 146 | if item[:service].empty? 147 | item[:service] = last_service 148 | else 149 | last_service = item[:service] 150 | last_programme = '' 151 | end 152 | 153 | if item[:programme].empty? 154 | item[:programme] = last_programme 155 | else 156 | last_programme = item[:programme] 157 | end 158 | 159 | data_grid << item 160 | end 161 | data_grid 162 | end 163 | 164 | def self.get_year(filename) 165 | filename =~ /N_(\d\d)_[ASE]/ 166 | # 2021 introduces a new HTML file that doesn't fit the pattern: 'Accesibilidad.htm' 167 | return $1 ? '20'+$1 : nil 168 | end 169 | 170 | def self.get_expense_breakdown_filename_regex(year, is_state_entity) 171 | if year.to_i >= 2017 172 | # 2017P grouped the agencies and other bodies kind of a 'level down' in the hierarchy, 173 | # so the filenames are affected. Since the regex catches all those from 2012-2016 174 | # we could replace the old one, but didn't have to test the change when parsing 175 | # the new data, so this was safer. 176 | is_state_entity ? 177 | /N_(\d\d)_[AE]_V_1_10([1234])_1_1_2_2_[1234](\d\d)_1_2.HTM/ : 178 | /N_(\d\d)_[AE]_V_1_(?:2_)?10([1234])_2_1_[1234](\d\d)_1_1(\d\d\d)_2_2_1.HTM/; 179 | elsif ['2012', '2013', '2014', '2015', '2016'].include? year 180 | is_state_entity ? 181 | /N_(\d\d)_[AE]_V_1_10([1234])_1_1_2_2_[1234](\d\d)_1_2.HTM/ : 182 | /N_(\d\d)_[AE]_V_1_10([1234])_2_1_[1234](\d\d)_1_1(\d\d\d)_2_2_1.HTM/; 183 | else 184 | is_state_entity ? 185 | /N_(\d\d)_[ASE]_V_1_10([1234])_2_2_2_1(\d\d)_1_[12]_1.HTM/ : 186 | /N_(\d\d)_[ASE]_V_1_10([1234])_2_2_2_1(\d\d)_1_[12]_1(\d\d\d)_1.HTM/; 187 | end 188 | end 189 | 190 | def doc 191 | @doc = Nokogiri::HTML(open(@filename)) if @doc.nil? # Lazy parsing of doc, only when needed 192 | @doc 193 | end 194 | end -------------------------------------------------------------------------------- /lib/generic_breakdown.rb: -------------------------------------------------------------------------------- 1 | require 'nokogiri' 2 | require 'open-uri' 3 | 4 | # Basic parser for any sort of breakdowns that we don't need to parse fully, i.e. pages like [1]. 5 | # It supports getting a particular cell by position or text description. 6 | # 7 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_801_1_3.HTM 8 | # 9 | class GenericBreakdown < BaseBreakdown 10 | def initialize(filename) 11 | @filename = filename 12 | end 13 | 14 | def year 15 | @filename =~ /N_(\d\d)_/ 16 | $1 17 | end 18 | 19 | def is_final 20 | @filename =~ /N_(\d\d)_([ASE])_/ 21 | return $2 != 'A' # S is final for 2007 and before; E for 2008+ 22 | end 23 | 24 | # Retrieve a cell given its row and column position (-1 means last, as in Ruby) 25 | def get_item_by_position(row_position, column_position) 26 | # Get the row we want 27 | row = get_data_rows[row_position] 28 | 29 | # Return the column we want 30 | columns = row.css('td').map{|td| td.text.strip} 31 | columns[column_position] 32 | end 33 | 34 | # Retrieve the right-most column for the row with the given description 35 | def get_value_by_description(description, description_position=1) 36 | # Get rows in HTML table, skipping header 37 | get_data_rows.map do |row| 38 | # Up to 2018, included, data came in a table... Then it didn't. :/ 39 | data_element_name = row.at('td') ? 'td' : 'span' 40 | columns = row.css(data_element_name).map{|el| el.text.strip} 41 | next if columns[description_position]!=description 42 | 43 | # We got to the right row, just return the rightmost column 44 | return columns[-1] 45 | end 46 | end 47 | 48 | # Let's see how long this lasts :/ 49 | def get_url() 50 | # URLs for years 2008- are inconsistent with later years in the ministry's site 51 | "http://www.sepg.pap.minhap.gob.es/Presup/PGE20#{year}#{is_final ? 'Ley' : 'Proyecto'}/" \ 52 | "#{year.to_i<=8 ? '' : 'MaestroDocumentos/'}" \ 53 | "PGE-ROM/doc/HTM/#{File.basename(@filename)}" 54 | end 55 | 56 | private 57 | 58 | def get_data_rows 59 | # Up to 2018, included, data came in a table... 60 | if doc.at('table') 61 | rows = doc.css('table.S0ESTILO8 tr')[1..-1] # 2008 onwards (earlier?) 62 | if rows.nil? 63 | # 2014 is the year of the autogenerated messy CSS: we look for a table header 64 | header = doc.css('table > thead')[0] 65 | rows = header.parent.css('tr')[1..-1] 66 | end 67 | 68 | # But then they switched to some ass-ugly divs with no semantic structure 69 | else 70 | rows = doc.css('body > div > div:nth-child(3) > div:nth-child(2) > div') 71 | end 72 | 73 | rows 74 | end 75 | 76 | def doc 77 | @doc = Nokogiri::HTML(open(@filename)) if @doc.nil? # Lazy parsing of doc, only when needed 78 | @doc 79 | end 80 | end -------------------------------------------------------------------------------- /lib/income_breakdown.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nokogiri' 4 | require 'open-uri' 5 | require_relative 'base_breakdown' 6 | 7 | # Parser for income breakdowns (Serie Roja / Red books), i.e. pages like [1], [2] or [3]. 8 | # Note: the Red and Green books contain, as far as I've seen, the same amount of detail; 9 | # but the Red book includes Social Security data, so that's the one we're using. 10 | # 11 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_2_104_1_2_112_1_1301_1.HTM 12 | # [2]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_2_105_1_2_160_1_104_1.HTM 13 | # [3]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_2_101_1_2_198_1_101_1.HTM 14 | # 15 | class IncomeBreakdown < BaseBreakdown 16 | attr_reader :year, :entity_type, :section, :entity_id 17 | 18 | def initialize(filename) 19 | filename =~ INCOME_BKDOWN 20 | 21 | @year = '20'+$1 22 | @entity_type = $2 # 1 for state, 2-4 for non-state, 5 Social Security 23 | @section = $3 # Parent section 24 | @entity_id = $4 # Id of the service/department of the section 25 | @filename = filename 26 | end 27 | 28 | # This bit always breaks every year, so I'm using brute force... 29 | def section_name 30 | items = doc.at('td') ? doc.css('td') : doc.css('span') # Tables before 2019, divs afterwards 31 | items.each do |item| # Brute force 32 | # Careful with leading whitespace. 33 | # Also, in 2018 there are some weird new line characters at the end, so we `strip` 34 | # the result. See ProgrammeBreakdown::get_section_id_and_name for a longer 35 | # explanation. 36 | return $1.strip if item.text =~ /^\s*Sección: \d\d (.+)$/ 37 | end 38 | end 39 | 40 | def entity_name 41 | items = doc.at('td') ? doc.css('td') : doc.css('span') # Tables before 2019, divs afterwards 42 | items.each do |item| # Brute force 43 | return $1.strip if item.text =~ /^(?:Servicio|Organismo|Entidad): \d+ (.+)$/ 44 | end 45 | end 46 | 47 | # Returns a list of budget items and subtotals. Because of the convoluted format of the 48 | # input file, with subtotals being split across two lines, some massaging is needed. 49 | def income 50 | merge_subtotals(data_grid, year, section) 51 | end 52 | 53 | def self.income_breakdown? (filename) 54 | filename =~ INCOME_BKDOWN 55 | end 56 | 57 | # Returns the list of institutions/departments described in this breakdown 58 | def institutions 59 | [ 60 | { section: section, service: nil, description: section_name }, 61 | { section: section, service: entity_id, description: entity_name }, 62 | ] 63 | end 64 | 65 | private 66 | 67 | def get_data_rows 68 | # Up to 2018, included, data came in a table... 69 | if doc.at('table') 70 | rows = doc.css('table.S0ESTILO8 tr')[1..-1] # 2008 onwards (earlier?) 71 | if rows.nil? 72 | # 2014 is the year of the autogenerated messy CSS: we look for a table header 73 | header = doc.css('table > thead')[0] 74 | rows = header.parent.css('tr')[1..-1] 75 | end 76 | 77 | # But then they switched to some ass-ugly divs with no semantic structure 78 | else 79 | rows = doc.css('body > div > div:nth-child(3) > div:nth-child(2) > div') 80 | end 81 | 82 | rows 83 | end 84 | 85 | # Returns a list of column arrays containing all the information in the input data table, 86 | # basically unmodified (income breakdowns are simpler than expense ones) 87 | def data_grid 88 | data_grid = [] 89 | 90 | # Iterate through HTML table, skipping header 91 | get_data_rows.map do |row| 92 | # Up to 2018, included, data came in a table... Then it didn't. :/ 93 | data_element_name = row.at('td') ? 'td' : 'span' 94 | columns = row.css(data_element_name).map{|el| el.text.strip} 95 | item = { 96 | :expense_concept => columns[0], 97 | :description => columns[1], 98 | :service => entity_id, 99 | :amount => (columns[2] != '') ? columns[2] : columns[3] 100 | } 101 | next if item[:description].empty? # Skip empty lines (no description) 102 | data_grid << item 103 | end 104 | data_grid 105 | end 106 | 107 | INCOME_BKDOWN = /N_(\d\d)_[ASE]_R_2_10(\d)_1_2_1(\d\d)_1_1(\d\d+)_1.HTM/ 108 | 109 | def doc 110 | @doc = Nokogiri::HTML(open(@filename)) if @doc.nil? # Lazy parsing of doc, only when needed 111 | @doc 112 | end 113 | end -------------------------------------------------------------------------------- /lib/programme_breakdown.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'nokogiri' 4 | require 'open-uri' 5 | require_relative 'base_breakdown' 6 | 7 | # Parser for programme expense breakdowns (Serie Roja / Red books), i.e. pages like [1]. 8 | # 9 | # Note: for some unknown reason, chapter 6 items are not broken down into articles. This 10 | # seems to happen everywhere, not just for Social Security or for a particular programme 11 | # (f.ex. [2]). Bizarrely, the 'programme summaries' [3] do contain the chapter 6 breakdown, 12 | # but many other details are missing: compare [3] with [1]. At the moment we do not try 13 | # to combine [1] and [3] to get the full picture, we learn to live with [1] instead, 14 | # and thank our burocratic overlords. 15 | # 16 | # XXX: This parser will only work -now- with Social Security (section 60) programmes. See below. 17 | # 18 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_31_2_1_G_1_1_1312B_P.HTM 19 | # [2]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_31_116_1_1_1_1131M_2.HTM 20 | # [3]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_31_2_1_G_1_1_1312B_O.HTM 21 | # 22 | class ProgrammeBreakdown < BaseBreakdown 23 | attr_reader :year, :programme 24 | 25 | def initialize(filename) 26 | filename =~ PROGRAMME_EXPENSES_BKDOWN 27 | @year = '20'+$1 28 | @filename = filename 29 | end 30 | 31 | def get_section_id_and_name 32 | # Try to go for the exact CSS class first... 33 | cell = doc.css('.S0ESTILO3').first 34 | 35 | # ...but the 2014 and 2018 approved budgets are auto-generated CSS mess pieces of shit. 36 | if cell.nil? 37 | items = doc.at('td') ? doc.css('td') : doc.css('span') # Tables before 2019, divs afterwards 38 | items.each do |item| # Brute force 39 | if item.text =~ /^\s*Secci/ # Careful with shitty whitespace at the beginning 40 | cell = item 41 | break 42 | end 43 | end 44 | end 45 | 46 | # Finally 47 | cell.text.strip =~ /^\s*Sección: (\d\d) (.+)$/ 48 | # 2018 approved budget has some weird new-line character which I couldn't get the regex 49 | # to ignore. I tried adding /\s*/ at the end, didn't work. I would expect the existing `strip` 50 | # on the left-hand-side to take care of it, but didn't. Since I don't have time to find 51 | # out what exactly they've added in there, I'm adding a second `strip` call on the result. 52 | # It shouldn't be necessary, but it is, in order to return a clean string. 53 | [$1, $2.strip] 54 | end 55 | 56 | def get_programme_id_and_name 57 | # Try to go for the exact CSS class first... 58 | cell = doc.css('.S0ESTILO3').last 59 | 60 | # ...but the 2014 and 2018 approved budgets are auto-generated CSS mess pieces of shit. 61 | if cell.nil? 62 | items = doc.at('td') ? doc.css('td') : doc.css('span') # Tables before 2019, divs afterwards 63 | items.each do |item| # Brute force 64 | if item.text =~ /^\s*Programa/ # Careful with shitty whitespace at the beginning (2018 budget) 65 | cell = item 66 | break 67 | end 68 | end 69 | end 70 | 71 | # Finally 72 | cell.text.strip =~ /^\s*Programa: (\d\d\d\w) (.+)$/ 73 | [$1, $2] 74 | end 75 | 76 | # Returns a list of budget items and subtotals. Because of the convoluted format of the 77 | # input file, with subtotals being split across two lines, some massaging is needed. 78 | def expenses 79 | section, section_name = get_section_id_and_name 80 | merge_subtotals(data_grid, year, section) 81 | end 82 | 83 | # Because of the way programme breakdowns are structured, we can't get institutional 84 | # subtotals in the expense list, but these subtotals are useful when building the 85 | # hierarchy. Hence the need for this method, who returns the list of institutions/ 86 | # services in the breakdown, together with their names. 87 | def institutions 88 | # Start with the top-level section... 89 | section, section_name = get_section_id_and_name 90 | institutions = [{ section: section, service: nil, description: section_name }] 91 | 92 | # ...and then add the services, i.e. its departments 93 | data_grid.each do |row| 94 | if !row[:service_name].nil? 95 | institutions.push({ 96 | section: section, 97 | service: row[:service], 98 | description: row[:service_name] 99 | }) 100 | end 101 | end 102 | institutions 103 | end 104 | 105 | def self.programme_breakdown? (filename) 106 | filename=~PROGRAMME_EXPENSES_BKDOWN 107 | end 108 | 109 | private 110 | 111 | # section.service comes in the form xx.xxx 112 | def get_section_and_service(service_id) 113 | service_id.split('.') 114 | end 115 | 116 | def get_data_rows 117 | # Up to 2018, included, data came in a table... 118 | if doc.at('table') 119 | rows = doc.css('table.S0ESTILO8 tr')[1..-1] # 2008 onwards (earlier?) 120 | if rows.nil? 121 | # 2014 is the year of the autogenerated messy CSS: we look for a table header 122 | header = doc.css('table > thead')[0] 123 | rows = header.parent.css('tr')[1..-1] 124 | end 125 | 126 | # But then they switched to some ass-ugly divs with no semantic structure 127 | else 128 | rows = doc.css('body > div > div:nth-child(3) > div:nth-child(2) > div') 129 | end 130 | 131 | rows 132 | end 133 | 134 | # Returns a list of column arrays containing all the information in the input data table, 135 | # basically unmodified, apart from two columns (service, programme) filled in, since 136 | # in the input grid they are only shown when they change 137 | def data_grid 138 | data_grid = [] 139 | last_service = '' 140 | 141 | # Iterate through HTML table, skipping header 142 | get_data_rows.map do |row| 143 | # Up to 2018, included, data came in a table... Then it didn't. :/ 144 | data_element_name = row.at('td') ? 'td' : 'span' 145 | columns = row.css(data_element_name).map{|el| el.text.strip} 146 | section, service = get_section_and_service(columns[0]) 147 | programme, programme_name = get_programme_id_and_name 148 | item = { 149 | :service => service, 150 | :programme => programme, 151 | :expense_concept => columns[1], 152 | :description => columns[2], 153 | :amount => (columns[3] != '') ? columns[3] : columns[4] 154 | } 155 | next if item[:description].empty? # Skip empty lines (no description) 156 | 157 | # Fill blanks in row and save result 158 | if item[:service].nil? 159 | item[:service] = last_service 160 | else 161 | last_service = item[:service] 162 | 163 | # Bit of a hack (again). We want the subtotals from this breakdown to look like 164 | # the ones extracted from an EntityBreakdown, but here the data is presented 165 | # as programme>entity>item, while there they look like entity>programme>item. 166 | # So we need to change the subtotal description to include the programme name. 167 | # (Ironically this stops us from getting the service subtotal, that would be 168 | # useful to build the institutional hierarchy. Hence the need for the `institutions` 169 | # method, above.) 170 | item[:description] = programme_name 171 | item[:service_name] = columns[2] 172 | end 173 | data_grid << item 174 | end 175 | data_grid 176 | end 177 | 178 | PROGRAMME_EXPENSES_BKDOWN = /N_(\d\d)_[ASE]_R_31_2_1_G_1_1_(?:1\d\d[\d\w]\w_P|T_1).HTM/; 179 | # Note: ^ 180 | # This will catch only Social Security programme breakdowns (see Budget class for info). 181 | # It's what I need for now. 182 | # Stupidly, the internal transfers are shown in a file with a different name scheme, 183 | # despite the fact they are also clearly identified by belonging to programme 000X, 184 | # so we are forced to have two options at the end of the file, and we can't get 185 | # the programme id from the filename, we have to scrape it from inside the content. 186 | 187 | def doc 188 | @doc = Nokogiri::HTML(open(@filename)) if @doc.nil? # Lazy parsing of doc, only when needed 189 | @doc 190 | end 191 | end -------------------------------------------------------------------------------- /output/2007/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2007 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|146,547,100,000|147,545,089,810|147,545,089,810|147,063,359,250 8 | **Organismos autónomos**|38,335,389,810|40,766,856,510|41,127,678,330|36,064,723,420 9 | **Agencias estatales**|4,901,350|4,901,350|4,901,350|132,020 10 | **Otros organismos**|1,793,222,860|1,865,784,430|1,865,784,430|182,998,460 11 | **Seguridad Social**|109,870,382,960|110,502,540,820|110,502,540,820|100,780,139,170 12 | (- transferencias internas)|-16,954,642,420|-16,954,642,420|-16,954,642,420| 13 | **TOTAL**|**279,596,354,560**|**283,730,530,500**|**284,091,352,320**|**284,091,352,320** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|142,927,390,000|155,039,461,700|188,417,352,980|175,767,509,750 20 | **Organismos autónomos**|40,236,669,310|40,810,437,190|41,127,678,330|40,673,645,130 21 | **Agencias estatales**|4,901,350|4,901,350|4,901,350|4,901,350 22 | **Otros organismos**|1,864,056,890|1,865,784,430|1,865,784,430|1,865,784,430 23 | **Seguridad Social**|102,118,514,390|110,425,224,050|110,502,540,820|106,651,774,830 24 | (- transferencias internas)|-16,954,642,420|-16,954,642,420|-16,954,642,420| 25 | **TOTAL**|**270,196,889,520**|**291,191,166,300**|**324,963,615,490**|**324,963,615,490** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-16,954,642,420) 30 | * Gastos Estado - operaciones no financieros: OK (130,277,546,770) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (142,389,618,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (188,417,352,980) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (175,767,509,750) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (39,782,636,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (40,356,403,990) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (41,127,678,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (40,673,645,130) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (4,901,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_803_1_3.HTM) 39 | * **Gastos Agencias estatales - capítulos I-VIII: ERROR != 4,901,350** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (4,901,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,864,056,890) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,865,784,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (98,267,748,400) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (106,574,458,060) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (110,502,540,820) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (106,651,774,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (146,547,100,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (147,545,089,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (38,335,389,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (41,127,678,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (4,901,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (4,901,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,793,222,860) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,865,784,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (109,870,382,960) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (110,502,540,820) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2007Ley/PGE-ROM/doc/HTM/N_07_S_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2008/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2008 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|158,757,219,900|161,554,909,400|161,554,909,400|161,033,498,500 8 | **Organismos autónomos**|40,650,810,910|43,796,556,890|44,186,712,210|39,532,794,010 9 | **Agencias estatales**|5,151,870|5,151,870|5,151,870|132,020 10 | **Otros organismos**|1,893,324,740|1,978,730,940|1,978,730,940|211,265,680 11 | **Seguridad Social**|118,360,382,420|119,276,598,470|119,276,598,470|108,171,463,950 12 | (- transferencias internas)|-18,052,948,730|-18,052,948,730|-18,052,948,730| 13 | **TOTAL**|**301,613,941,110**|**308,558,998,840**|**308,949,154,160**|**308,949,154,160** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|152,331,104,940|167,312,388,050|201,820,992,350|188,681,057,130 20 | **Organismos autónomos**|42,961,052,870|43,802,676,730|44,186,712,210|43,684,435,400 21 | **Agencias estatales**|5,151,870|5,151,870|5,151,870|5,151,870 22 | **Otros organismos**|1,977,142,470|1,978,730,940|1,978,730,940|1,978,730,940 23 | **Seguridad Social**|110,327,825,690|119,276,268,050|119,276,598,470|114,865,861,770 24 | (- transferencias internas)|-18,052,948,730|-18,052,948,730|-18,052,948,730| 25 | **TOTAL**|**289,549,329,110**|**314,322,266,910**|**349,215,237,110**|**349,215,237,110** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-18,052,948,730) 30 | * Gastos Estado - operaciones no financieros: OK (139,191,169,720) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (154,172,452,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (201,820,992,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (188,681,057,130) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (42,458,776,060) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (43,300,399,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (44,186,712,210) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (43,684,435,400) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (5,151,870) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_803_1_3.HTM) 39 | * **Gastos Agencias estatales - capítulos I-VIII: ERROR != 5,151,870** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (5,151,870) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,977,142,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,978,730,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (105,917,088,990) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (114,865,531,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (119,276,598,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (114,865,861,770) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (158,757,219,900) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (161,554,909,400) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (40,650,810,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (44,186,712,210) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (5,151,870) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (5,151,870) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,893,324,740) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,978,730,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (118,360,382,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (119,276,598,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2008Ley/PGE-ROM/doc/HTM/N_08_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2009/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2009 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|141,109,805,350|143,449,969,350|143,449,969,350|143,122,830,070 8 | **Organismos autónomos**|43,330,508,030|45,897,614,020|46,263,281,840|40,501,645,440 9 | **Agencias estatales**|1,823,109,380|2,030,166,840|2,030,166,840|385,713,840 10 | **Otros organismos**|1,871,630,820|1,937,972,950|1,937,972,950|198,098,250 11 | **Seguridad Social**|128,678,185,440|129,995,790,940|129,995,790,940|117,592,583,840 12 | (- transferencias internas)|-21,876,310,480|-21,876,310,480|-21,876,310,480| 13 | **TOTAL**|**294,936,928,540**|**301,435,203,620**|**301,800,871,440**|**301,800,871,440** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|157,904,270,000|192,196,543,900|226,169,195,110|209,741,355,040 20 | **Organismos autónomos**|45,000,086,570|45,937,349,680|46,263,281,840|45,962,639,100 21 | **Agencias estatales**|2,021,291,310|2,022,241,110|2,030,166,840|1,997,728,920 22 | **Otros organismos**|1,936,302,630|1,937,972,950|1,937,972,950|1,937,972,950 23 | **Seguridad Social**|119,428,318,090|129,995,484,350|129,995,790,940|124,880,401,190 24 | (- transferencias internas)|-21,876,310,480|-21,876,310,480|-21,876,310,480| 25 | **TOTAL**|**304,413,958,120**|**350,213,281,510**|**384,520,097,200**|**384,520,097,200** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-21,876,310,480) 30 | * Gastos Estado - operaciones no financieros: OK (141,476,429,930) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (175,768,703,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (226,169,195,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (209,741,355,040) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (44,699,443,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (45,636,706,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (46,263,281,840) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (45,962,639,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,988,853,390) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,989,803,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (2,030,166,840) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,997,728,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,936,302,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,937,972,950) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (114,312,928,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (124,880,094,600) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (129,995,790,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (124,880,401,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (141,109,805,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (143,449,969,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (43,330,508,030) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (46,263,281,840) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,823,109,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (2,030,166,840) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,871,630,820) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,937,972,950) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (128,678,185,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (129,995,790,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2009Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_09_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2010/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2010 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|121,205,934,480|124,397,850,300|124,397,850,300|124,070,331,900 8 | **Organismos autónomos**|55,675,223,410|57,328,324,380|57,672,267,200|37,401,182,530 9 | **Agencias estatales**|1,655,185,740|1,905,619,370|1,906,619,370|434,560,480 10 | **Otros organismos**|1,752,787,680|1,821,565,810|1,821,565,810|196,730,380 11 | **Seguridad Social**|123,527,826,000|124,622,418,040|124,628,671,600|112,252,035,750 12 | (- transferencias internas)|-36,072,133,240|-36,072,133,240|-36,072,133,240| 13 | **TOTAL**|**267,744,824,070**|**274,003,644,660**|**274,354,841,040**|**274,354,841,040** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|185,035,637,450|201,033,829,150|236,442,610,160|204,906,672,550 20 | **Organismos autónomos**|56,921,695,010|57,377,801,040|57,672,267,200|57,373,064,650 21 | **Agencias estatales**|1,905,334,940|1,906,597,850|1,906,619,370|1,874,253,370 22 | **Otros organismos**|1,819,829,910|1,821,565,810|1,821,565,810|1,821,565,810 23 | **Seguridad Social**|120,647,931,690|124,628,205,170|124,628,671,600|120,424,044,520 24 | (- transferencias internas)|-36,072,133,240|-36,072,133,240|-36,072,133,240| 25 | **TOTAL**|**330,258,295,760**|**350,695,865,780**|**386,399,600,900**|**386,399,600,900** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-36,072,133,240) 30 | * Gastos Estado - operaciones no financieros: OK (153,499,699,840) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (169,497,891,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (236,442,610,160) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (204,906,672,550) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (56,622,492,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (57,078,598,490) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (57,672,267,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (57,373,064,650) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,872,968,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,874,231,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,906,619,370) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,874,253,370) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,819,829,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,821,565,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (116,443,304,610) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (120,423,578,090) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (124,628,671,600) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (120,424,044,520) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (121,205,934,480) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (124,397,850,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (55,675,223,410) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (57,672,267,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,655,185,740) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,906,619,370) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,752,787,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,821,565,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (123,527,826,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (124,628,671,600) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2010Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_10_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2011/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2011 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|106,020,294,390|119,390,390,080|119,390,390,080|119,081,201,520 8 | **Organismos autónomos**|53,712,008,480|55,557,268,390|55,754,495,380|36,667,881,440 9 | **Agencias estatales**|1,652,234,520|1,817,286,540|1,817,286,540|344,833,310 10 | **Otros organismos**|1,657,976,910|1,724,163,290|1,724,163,290|188,652,820 11 | **Seguridad Social**|127,527,277,040|128,534,024,270|128,540,277,830|116,284,202,160 12 | (- transferencias internas)|-34,659,841,870|-34,659,841,870|-34,659,841,870| 13 | **TOTAL**|**255,909,949,470**|**272,363,290,700**|**272,566,771,250**|**272,566,771,250** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|150,056,000,000|163,016,470,880|209,611,669,760|179,536,395,740 20 | **Organismos autónomos**|55,542,394,380|55,554,147,020|55,754,495,380|55,466,943,270 21 | **Agencias estatales**|1,816,141,800|1,816,774,710|1,817,286,540|1,785,382,040 22 | **Otros organismos**|1,722,348,530|1,724,163,290|1,724,163,290|1,724,163,290 23 | **Seguridad Social**|122,948,228,210|128,539,811,080|128,540,277,830|124,275,166,590 24 | (- transferencias internas)|-34,659,841,870|-34,659,841,870|-34,659,841,870| 25 | **TOTAL**|**297,425,271,050**|**315,991,525,110**|**362,788,050,930**|**362,788,050,930** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-34,659,841,870) 30 | * Gastos Estado - operaciones no financieros: OK (119,980,725,980) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (132,941,196,860) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (209,611,669,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (179,536,395,740) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (55,254,842,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (55,266,594,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (55,754,495,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (55,466,943,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,784,237,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,784,870,210) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,817,286,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,785,382,040) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,722,348,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,724,163,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (118,683,116,970) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (124,274,699,840) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (128,540,277,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (124,275,166,590) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (106,020,294,390) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (119,390,390,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (53,712,008,480) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (55,754,495,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,652,234,520) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,817,286,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,657,976,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,724,163,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (127,527,277,040) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (128,540,277,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2011Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_11_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2012/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2012 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|119,232,995,430|129,325,932,540|129,325,932,540|128,926,242,630 8 | **Organismos autónomos**|49,448,407,110|50,844,886,560|51,144,316,560|35,302,361,560 9 | **Agencias estatales**|1,062,604,420|1,306,550,630|1,306,550,630|497,399,260 10 | **Otros organismos**|1,488,720,300|1,515,318,740|1,515,318,740|157,228,320 11 | **Seguridad Social**|124,124,806,680|124,938,993,940|124,938,993,940|111,806,643,170 12 | (- transferencias internas)|-31,541,237,470|-31,541,237,470|-31,541,237,470| 13 | **TOTAL**|**263,816,296,470**|**276,390,444,940**|**276,689,874,940**|**276,689,874,940** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|152,629,759,180|164,651,336,730|214,701,868,290|187,885,246,200 20 | **Organismos autónomos**|50,898,401,410|50,909,705,210|51,144,316,560|50,835,802,830 21 | **Agencias estatales**|1,301,837,720|1,302,550,630|1,306,550,630|1,274,930,490 22 | **Otros organismos**|1,513,824,200|1,515,318,740|1,515,318,740|1,515,318,740 23 | **Seguridad Social**|124,104,806,680|124,938,963,740|124,938,993,940|120,554,512,430 24 | (- transferencias internas)|-31,541,237,470|-31,541,237,470|-31,541,237,470| 25 | **TOTAL**|**298,907,391,720**|**311,776,637,580**|**362,065,810,690**|**362,065,810,690** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-31,541,237,470) 30 | * Gastos Estado - operaciones no financieros: OK (125,813,137,090) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (137,834,714,640) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (214,701,868,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (187,885,246,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (50,589,887,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (50,601,191,480) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (51,144,316,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (50,835,802,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,270,217,580) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,270,930,490) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,306,550,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,274,930,490) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,513,824,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,515,318,740) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (119,720,325,170) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (120,554,482,230) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (124,938,993,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (120,554,512,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (119,232,995,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (129,325,932,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (49,448,407,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (51,144,316,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,062,604,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,306,550,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,488,720,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,515,318,740) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (124,124,806,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (124,938,993,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2012Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_12_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2013/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2013 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|127,024,720,100|128,544,530,100|128,544,530,100|128,135,675,340 8 | **Organismos autónomos**|44,539,897,990|45,575,500,420|45,816,874,420|33,199,751,970 9 | **Agencias estatales**|926,124,960|1,119,703,530|1,119,703,530|485,068,800 10 | **Otros organismos**|1,350,799,440|1,392,801,810|1,392,801,810|189,958,770 11 | **Seguridad Social**|129,286,998,170|131,841,302,240|131,841,302,240|112,682,468,860 12 | (- transferencias internas)|-34,022,288,360|-34,022,288,360|-34,022,288,360| 13 | **TOTAL**|**269,106,252,300**|**274,451,549,740**|**274,692,923,740**|**274,692,923,740** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|165,087,323,110|199,565,289,600|261,885,524,570|231,945,341,100 20 | **Organismos autónomos**|45,541,687,000|45,552,915,590|45,816,874,420|45,521,949,580 21 | **Agencias estatales**|1,114,990,620|1,115,703,530|1,119,703,530|1,088,287,530 22 | **Otros organismos**|1,391,444,350|1,392,801,810|1,392,801,810|1,392,801,810 23 | **Seguridad Social**|129,404,468,700|131,841,271,740|131,841,302,240|128,085,538,190 24 | (- transferencias internas)|-34,022,288,360|-34,022,288,360|-34,022,288,360| 25 | **TOTAL**|**308,517,625,420**|**345,445,693,910**|**408,033,918,210**|**408,033,918,210** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-34,022,288,360) 30 | * Gastos Estado - operaciones no financieros: OK (135,147,139,640) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (169,625,106,130) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (261,885,524,570) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (231,945,341,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (45,246,762,160) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (45,257,990,750) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (45,816,874,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (45,521,949,580) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,083,574,620) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,084,287,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,119,703,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,088,287,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,391,444,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,392,801,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK () [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (125,648,704,650) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (128,085,507,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (131,841,302,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (128,085,538,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (127,024,720,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (128,544,530,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (44,539,897,990) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (45,816,874,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (926,124,960) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,119,703,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,350,799,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,392,801,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (129,286,998,170) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (131,841,302,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2014/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2014 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|128,159,431,660|130,026,033,530|130,026,033,530|129,611,740,130 8 | **Organismos autónomos**|48,097,426,250|49,448,464,380|49,707,132,460|32,846,544,330 9 | **Agencias estatales**|967,757,230|1,106,769,100|1,106,769,100|424,152,250 10 | **Otros organismos**|1,416,357,580|1,460,879,690|1,460,879,690|225,969,560 11 | **Seguridad Social**|123,454,738,660|135,581,854,360|135,584,154,360|118,830,972,260 12 | (- transferencias internas)|-35,945,590,610|-35,945,590,610|-35,945,590,610| 13 | **TOTAL**|**266,150,120,770**|**281,678,410,450**|**281,939,378,530**|**281,939,378,530** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|164,848,690,230|202,984,314,510|271,317,986,730|239,603,986,510 20 | **Organismos autónomos**|49,426,491,460|49,439,598,380|49,707,132,460|49,415,912,970 21 | **Agencias estatales**|1,102,206,190|1,102,769,100|1,106,769,100|1,075,413,100 22 | **Otros organismos**|1,459,531,530|1,460,879,690|1,460,879,690|1,460,879,690 23 | **Seguridad Social**|133,199,644,380|135,584,106,110|135,584,154,360|131,675,139,460 24 | (- transferencias internas)|-35,945,590,610|-35,945,590,610|-35,945,590,610| 25 | **TOTAL**|**314,090,973,180**|**354,626,077,180**|**423,231,331,730**|**423,231,331,730** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-35,945,590,610) 30 | * Gastos Estado - operaciones no financieros: OK (164,848,690,230) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (202,984,314,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (271,317,986,730) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (239,603,986,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (49,426,491,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (49,439,598,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (49,707,132,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (49,415,912,970) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,102,206,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,102,769,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,106,769,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,075,413,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,459,531,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,460,879,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (1,460,879,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (133,199,644,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (135,584,106,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (135,584,154,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (131,675,139,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (128,159,431,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (130,026,033,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (48,097,426,250) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (49,707,132,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (967,757,230) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,106,769,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,416,357,580) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,460,879,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (123,454,738,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (135,584,154,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2014P/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2014 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|128,159,431,660|130,026,033,530|130,026,033,530|129,611,740,130 8 | **Organismos autónomos**|48,094,181,250|49,445,219,380|49,703,887,460|32,846,544,330 9 | **Agencias estatales**|968,572,230|1,107,584,100|1,107,584,100|424,152,250 10 | **Otros organismos**|1,411,873,160|1,456,395,270|1,456,395,270|221,985,140 11 | **Seguridad Social**|123,454,738,660|135,581,854,360|135,584,154,360|118,830,972,260 12 | (- transferencias internas)|-35,942,660,610|-35,942,660,610|-35,942,660,610| 13 | **TOTAL**|**266,146,136,350**|**281,674,426,030**|**281,935,394,110**|**281,935,394,110** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|164,848,690,230|202,984,314,510|271,317,986,730|239,606,916,510 20 | **Organismos autónomos**|49,423,246,460|49,436,353,380|49,703,887,460|49,412,667,970 21 | **Agencias estatales**|1,103,021,190|1,103,584,100|1,107,584,100|1,076,228,100 22 | **Otros organismos**|1,455,047,110|1,456,395,270|1,456,395,270|1,456,395,270 23 | **Seguridad Social**|133,199,644,380|135,584,106,110|135,584,154,360|131,675,139,460 24 | (- transferencias internas)|-35,942,660,610|-35,942,660,610|-35,942,660,610| 25 | **TOTAL**|**314,086,988,760**|**354,622,092,760**|**423,227,347,310**|**423,227,347,310** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-35,942,660,610) 30 | * Gastos Estado - operaciones no financieros: OK (164,848,690,230) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (202,984,314,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (271,317,986,730) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (239,606,916,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (49,423,246,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (49,436,353,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (49,703,887,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (49,412,667,970) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,103,021,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,103,584,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,107,584,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,076,228,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (1,455,047,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (1,456,395,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (1,456,395,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (133,199,644,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (135,584,106,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (135,584,154,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (131,675,139,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (128,159,431,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (130,026,033,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (48,094,181,250) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (49,703,887,460) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (968,572,230) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,107,584,100) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (1,411,873,160) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (1,456,395,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (123,454,738,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (135,584,154,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2015/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2015 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|133,711,666,500|141,416,166,820|141,416,166,820|140,753,827,560 8 | **Organismos autónomos**|45,826,650,560|46,474,572,300|46,728,718,440|33,945,672,950 9 | **Agencias estatales**|1,041,462,330|1,390,698,920|1,390,698,920|675,942,550 10 | **Otros organismos**|5,715,583,000|5,755,648,510|5,755,648,510|228,795,210 11 | **Seguridad Social**|130,371,182,620|140,206,565,810|140,208,202,760|122,970,795,450 12 | (- transferencias internas)|-36,924,401,730|-36,924,401,730|-36,924,401,730| 13 | **TOTAL**|**279,742,143,280**|**298,319,250,630**|**298,575,033,720**|**298,575,033,720** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|161,992,252,380|190,919,166,770|282,917,608,620|250,887,128,780 20 | **Organismos autónomos**|46,486,439,110|46,498,669,270|46,728,718,440|46,349,889,790 21 | **Agencias estatales**|1,386,121,010|1,386,698,920|1,390,698,920|1,129,165,780 22 | **Otros organismos**|5,754,252,350|5,755,648,510|5,755,648,510|5,755,648,510 23 | **Seguridad Social**|136,815,574,180|140,207,559,110|140,208,202,760|135,954,642,660 24 | (- transferencias internas)|-36,924,401,730|-36,924,401,730|-36,924,401,730| 25 | **TOTAL**|**315,510,237,300**|**347,843,340,850**|**440,076,475,520**|**440,076,475,520** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-36,924,401,730) 30 | * Gastos Estado - operaciones no financieros: OK (161,992,252,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (190,919,166,770) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (282,917,608,620) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (250,887,128,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (46,486,439,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (46,498,669,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (46,728,718,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (46,349,889,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,386,121,010) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,386,698,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,390,698,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,129,165,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (5,754,252,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (5,755,648,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (5,755,648,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (136,815,574,180) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (140,207,559,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (140,208,202,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (135,954,642,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (133,711,666,500) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (141,416,166,820) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (45,826,650,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (46,728,718,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,041,462,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,390,698,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (5,715,583,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (5,755,648,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (130,371,182,620) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (140,208,202,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2015P/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2015 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|133,711,666,500|141,416,166,820|141,416,166,820|140,753,827,560 8 | **Organismos autónomos**|45,825,551,190|46,473,472,930|46,727,619,070|33,943,685,140 9 | **Agencias estatales**|1,039,512,330|1,388,998,920|1,388,998,920|676,192,550 10 | **Otros organismos**|5,714,893,000|5,754,958,510|5,754,958,510|228,795,210 11 | **Seguridad Social**|130,371,682,620|140,207,065,810|140,208,702,760|122,970,795,450 12 | (- transferencias internas)|-36,923,150,170|-36,923,150,170|-36,923,150,170| 13 | **TOTAL**|**279,740,155,470**|**298,317,512,820**|**298,573,295,910**|**298,573,295,910** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|161,992,253,380|190,919,167,770|282,917,608,620|250,888,380,340 20 | **Organismos autónomos**|46,480,339,740|46,497,569,900|46,727,619,070|46,348,790,420 21 | **Agencias estatales**|1,384,421,010|1,384,998,920|1,388,998,920|1,127,465,780 22 | **Otros organismos**|5,753,562,350|5,754,958,510|5,754,958,510|5,754,958,510 23 | **Seguridad Social**|136,816,074,180|140,208,059,110|140,208,702,760|135,955,142,660 24 | (- transferencias internas)|-36,923,150,170|-36,923,150,170|-36,923,150,170| 25 | **TOTAL**|**315,503,500,490**|**347,841,604,040**|**440,074,737,710**|**440,074,737,710** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-36,923,150,170) 30 | * Gastos Estado - operaciones no financieros: OK (161,992,253,380) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (190,919,167,770) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (282,917,608,620) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (250,888,380,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (46,480,339,740) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (46,497,569,900) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (46,727,619,070) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (46,348,790,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,384,421,010) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,384,998,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,388,998,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,127,465,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (5,753,562,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (5,754,958,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (5,754,958,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (136,816,074,180) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (140,208,059,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (140,208,702,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (135,955,142,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (133,711,666,500) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (141,416,166,820) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (45,825,551,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (46,727,619,070) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,039,512,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,388,998,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (5,714,893,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (5,754,958,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (130,371,682,620) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (140,208,702,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2015Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_15_A_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2016/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2016 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 134,773,000,000|137,546,731,000|137,546,731,000|137,011,761,090 8 | | **Organismos autónomos** | 39,541,337,220|40,104,948,640|40,256,513,730|33,676,958,120 9 | | **Agencias estatales** | 1,097,231,920|1,268,621,910|1,268,621,910|495,623,520 10 | | **Otros organismos** | 5,441,230,730|5,468,941,630|5,468,941,630|214,294,040 11 | | **Seguridad Social** | 137,521,505,200|145,384,958,290|145,385,958,290|127,786,273,280 12 | | (- transferencias internas) | -30,741,856,510|-30,741,856,510|-30,741,856,510| 13 | | **TOTAL** | **287,632,448,560**|**299,032,344,960**|**299,184,910,050**|**299,184,910,050** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 157,189,222,850|190,429,125,530|274,731,844,040|249,034,234,130 20 | | **Organismos autónomos** | 40,038,981,950|40,050,150,560|40,256,513,730|39,911,220,060 21 | | **Agencias estatales** | 1,264,033,420|1,264,621,910|1,268,621,910|1,174,863,070 22 | | **Otros organismos** | 5,467,545,470|5,468,941,630|5,468,941,630|5,468,623,690 23 | | **Seguridad Social** | 141,266,071,630|145,385,311,640|145,385,958,290|140,781,082,140 24 | | (- transferencias internas) | -30,741,856,510|-30,741,856,510|-30,741,856,510| 25 | | **TOTAL** | **314,483,998,810**|**351,856,294,760**|**436,370,023,090**|**436,370,023,090** 26 | 27 | ### Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-30,741,856,510) 30 | * Gastos Estado - operaciones no financieros: OK (157,189,222,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (190,429,125,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (274,731,844,040) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (249,034,234,130) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (40,038,981,950) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (40,050,150,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (40,256,513,730) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (39,911,220,060) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,264,033,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,264,621,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,268,621,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,174,863,070) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (5,467,545,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (5,468,941,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (5,468,623,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (141,266,071,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (145,385,311,640) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (145,385,958,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (140,781,082,140) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (134,773,000,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (137,546,731,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (39,541,337,220) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (40,256,513,730) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,097,231,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,268,621,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (5,441,230,730) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (5,468,941,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (137,521,505,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (145,385,958,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2016P/README.md: -------------------------------------------------------------------------------- 1 | ##Presupuesto 2016 2 | 3 | ###Ingresos 4 | 5 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 6 | :--|---------------------:|-------:|-------------:|------------: 7 | **Estado**|134,773,000,000|137,546,731,000|137,546,731,000|137,011,761,090 8 | **Organismos autónomos**|39,856,793,710|40,423,200,440|40,574,765,530|33,679,753,430 9 | **Agencias estatales**|1,097,367,270|1,268,757,260|1,268,757,260|495,623,520 10 | **Otros organismos**|5,441,230,730|5,468,941,630|5,468,941,630|214,294,040 11 | **Seguridad Social**|137,521,505,200|145,384,958,290|145,385,958,290|127,786,273,280 12 | (- transferencias internas)|-31,057,448,350|-31,057,448,350|-31,057,448,350| 13 | **TOTAL**|**287,632,448,560**|**299,035,140,270**|**299,187,705,360**|**299,187,705,360** 14 | 15 | ###Gastos 16 | 17 | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado 18 | :--|---------------------:|-------:|-------------:|------------: 19 | **Estado**|157,190,722,850|190,429,125,530|274,731,844,040|248,718,642,290 20 | **Organismos autónomos**|40,357,233,750|40,368,402,360|40,574,765,530|40,229,471,860 21 | **Agencias estatales**|1,264,168,770|1,264,757,260|1,268,757,260|1,174,998,420 22 | **Otros organismos**|5,467,545,470|5,468,941,630|5,468,941,630|5,468,623,690 23 | **Seguridad Social**|141,266,071,630|145,385,311,640|145,385,958,290|140,781,082,140 24 | (- transferencias internas)|-31,057,448,350|-31,057,448,350|-31,057,448,350| 25 | **TOTAL**|**314,488,294,120**|**351,859,090,070**|**436,372,818,400**|**436,372,818,400** 26 | 27 | ###Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-31,057,448,350) 30 | * Gastos Estado - operaciones no financieros: OK (157,190,722,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (190,429,125,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (274,731,844,040) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (248,718,642,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (40,357,233,750) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (40,368,402,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (40,574,765,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (40,229,471,860) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,264,168,770) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,264,757,260) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,268,757,260) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,174,998,420) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (5,467,545,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (5,468,941,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (5,468,623,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (141,266,071,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (145,385,311,640) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (145,385,958,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (140,781,082,140) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (134,773,000,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (137,546,731,000) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (39,856,793,710) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (40,574,765,530) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,097,367,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,268,757,260) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (5,441,230,730) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (5,468,941,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (137,521,505,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (145,385,958,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2016Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_16_A_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2017/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2017 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 133,055,013,940|135,423,639,750|135,423,639,750|134,844,769,680 8 | | **Organismos autónomos** | 38,462,980,860|39,015,186,940|39,136,039,920|34,950,606,730 9 | | **Agencias estatales** | 1,730,939,290|1,906,495,850|1,906,495,850|542,889,060 10 | | **Otros organismos** | 5,371,471,960|5,405,864,300|5,405,864,300|232,406,030 11 | | **Seguridad Social** | 130,065,119,940|138,813,429,790|149,006,429,790|131,834,043,510 12 | | (- transferencias internas) | -28,473,754,600|-28,473,754,600|-28,473,754,600| 13 | | **TOTAL** | **280,211,771,390**|**292,090,862,030**|**302,404,715,010**|**302,404,715,010** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 153,852,493,780|188,248,064,260|276,152,254,240|252,431,892,340 20 | | **Organismos autónomos** | 39,020,375,080|39,028,113,110|39,136,039,920|38,749,943,540 21 | | **Agencias estatales** | 1,895,910,360|1,896,495,850|1,906,495,850|1,812,221,110 22 | | **Otros organismos** | 5,404,511,780|5,405,864,300|5,405,864,300|5,405,536,360 23 | | **Seguridad Social** | 146,744,165,660|149,006,396,290|149,006,429,790|144,733,736,150 24 | | (- transferencias internas) | -28,473,754,600|-28,473,754,600|-28,473,754,600| 25 | | **TOTAL** | **318,443,702,060**|**355,111,179,210**|**443,133,329,500**|**443,133,329,500** 26 | 27 | ### Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-28,473,754,600) 30 | * Gastos Estado - operaciones no financieros: OK (153,852,493,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (188,248,064,260) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (276,152,254,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (252,431,892,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (39,020,375,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (39,028,113,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (39,136,039,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (38,749,943,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,895,910,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,896,495,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,906,495,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,812,221,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (5,404,511,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (5,405,864,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (5,405,536,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (146,744,165,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (149,006,396,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (149,006,429,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (144,733,736,150) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (133,055,013,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (135,423,639,750) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (38,462,980,860) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (39,136,039,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,730,939,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,906,495,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (5,371,471,960) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (5,405,864,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (130,065,119,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (149,006,429,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_E_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2017P/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2017 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 133,055,013,940|135,423,639,750|135,423,639,750|134,844,769,680 8 | | **Organismos autónomos** | 38,459,980,860|39,012,186,940|39,133,039,920|34,950,606,730 9 | | **Agencias estatales** | 1,736,939,290|1,912,495,850|1,912,495,850|542,889,060 10 | | **Otros organismos** | 5,371,471,960|5,405,864,300|5,405,864,300|232,406,030 11 | | **Seguridad Social** | 130,054,419,940|138,802,729,790|148,995,729,790|131,834,043,510 12 | | (- transferencias internas) | -28,466,054,600|-28,466,054,600|-28,466,054,600| 13 | | **TOTAL** | **280,211,771,390**|**292,090,862,030**|**302,404,715,010**|**302,404,715,010** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 153,852,493,780|188,248,064,260|276,152,254,240|252,439,592,340 20 | | **Organismos autónomos** | 39,017,375,080|39,025,113,110|39,133,039,920|38,746,943,540 21 | | **Agencias estatales** | 1,901,910,360|1,902,495,850|1,912,495,850|1,818,221,110 22 | | **Otros organismos** | 5,404,511,780|5,405,864,300|5,405,864,300|5,405,536,360 23 | | **Seguridad Social** | 146,733,465,660|148,995,696,290|148,995,729,790|144,723,036,150 24 | | (- transferencias internas) | -28,466,054,600|-28,466,054,600|-28,466,054,600| 25 | | **TOTAL** | **318,443,702,060**|**355,111,179,210**|**443,133,329,500**|**443,133,329,500** 26 | 27 | ### Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-28,466,054,600) 30 | * Gastos Estado - operaciones no financieros: OK (153,852,493,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (188,248,064,260) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (276,152,254,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (252,439,592,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (39,017,375,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (39,025,113,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (39,133,039,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (38,746,943,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_802_1_3.HTM) 38 | * Gastos Agencias estatales - operaciones no financieros: OK (1,901,910,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_803_1_3.HTM) 39 | * Gastos Agencias estatales - capítulos I-VIII: OK (1,902,495,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_803_1_3.HTM) 40 | * Gastos Agencias estatales - presupuesto total: OK (1,912,495,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_803_1_3.HTM) 41 | * Gastos Agencias estatales - presupuesto consolidado: OK (1,818,221,110) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_803_1_3.HTM) 42 | * Gastos Otros organismos - operaciones no financieros: OK (5,404,511,780) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_804_1_3.HTM) 43 | * Gastos Otros organismos - presupuesto total: OK (5,405,864,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_804_1_3.HTM) 44 | * Gastos Otros organismos - presupuesto consolidado: OK (5,405,536,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_804_1_3.HTM) 45 | * Gastos Seguridad Social - operaciones no financieros: OK (146,733,465,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_805_1_3.HTM) 46 | * Gastos Seguridad Social - capítulos I-VIII: OK (148,995,696,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_805_1_3.HTM) 47 | * Gastos Seguridad Social - presupuesto total: OK (148,995,729,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_805_1_3.HTM) 48 | * Gastos Seguridad Social - presupuesto consolidado: OK (144,723,036,150) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_2_805_1_3.HTM) 49 | * Ingresos Estado - operaciones no financieros: OK (133,055,013,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_101_1_5_1.HTM) 50 | * Ingresos Estado - presupuesto total: OK (135,423,639,750) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_101_1_5_1.HTM) 51 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (38,459,980,860) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_102_1_4_1.HTM) 52 | * Ingresos Organismos Autónomos - presupuesto total: OK (39,133,039,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_102_1_4_1.HTM) 53 | * Ingresos Agencias estatales - operaciones no financieros: OK (1,736,939,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_103_1_4_1.HTM) 54 | * Ingresos Agencias estatales - presupuesto total: OK (1,912,495,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_103_1_4_1.HTM) 55 | * Ingresos Otros organismos - operaciones no financieros: OK (5,371,471,960) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_104_1_4_1.HTM) 56 | * Ingresos Otros organismos - presupuesto total: OK (5,405,864,300) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_104_1_4_1.HTM) 57 | * Ingresos Seguridad Social - operaciones no financieros: OK (130,054,419,940) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_105_1_5_1.HTM) 58 | * Ingresos Seguridad Social - presupuesto total: OK (148,995,729,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2017Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_17_A_R_6_1_105_1_5_1.HTM) 59 | -------------------------------------------------------------------------------- /output/2018/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2018 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 141,306,776,950|143,086,000,710|143,086,000,710|142,489,236,470 8 | | **Organismos autónomos** | 38,105,094,910|38,769,402,000|38,841,958,080|36,402,050,890 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 7,286,422,150|7,481,029,030|7,481,029,030|839,299,500 11 | | **Seguridad Social** | 135,252,534,590|140,319,348,540|154,149,438,540|135,075,270,380 12 | | (- transferencias internas) | -28,752,569,120|-28,752,569,120|-28,752,569,120| 13 | | **TOTAL** | **293,198,259,480**|**300,903,211,160**|**314,805,857,240**|**314,805,857,240** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 157,934,519,220|196,754,213,790|278,065,227,440|254,179,873,400 20 | | **Organismos autónomos** | 38,739,251,050|38,746,949,120|38,841,958,080|38,450,009,350 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 7,469,073,020|7,471,029,030|7,481,029,030|7,375,343,170 23 | | **Seguridad Social** | 152,564,538,640|154,149,405,040|154,149,438,540|149,779,858,050 24 | | (- transferencias internas) | -28,752,569,120|-28,752,569,120|-28,752,569,120| 25 | | **TOTAL** | **327,954,812,810**|**368,369,027,860**|**449,785,083,970**|**449,785,083,970** 26 | 27 | ### Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-28,752,569,120) 30 | * Gastos Estado - operaciones no financieros: OK (157,934,519,220) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (196,754,213,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (278,065,227,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (254,179,873,400) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (38,739,251,050) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (38,746,949,120) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (38,841,958,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (38,450,009,350) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_802_1_3.HTM) 38 | * **Gastos Agencias estatales - operaciones no financieros: ERROR 7,469,073,020 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_803_1_3.HTM) 39 | * **Gastos Agencias estatales - capítulos I-VIII: ERROR 7,471,029,030 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_803_1_3.HTM) 40 | * **Gastos Agencias estatales - presupuesto total: ERROR 7,481,029,030 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_803_1_3.HTM) 41 | * **Gastos Agencias estatales - presupuesto consolidado: ERROR 7,375,343,170 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_803_1_3.HTM) 42 | * Gastos Seguridad Social - operaciones no financieros: OK (152,564,538,640) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - capítulos I-VIII: OK (154,149,405,040) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto total: OK (154,149,438,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_805_1_3.HTM) 45 | * Gastos Seguridad Social - presupuesto consolidado: OK (149,779,858,050) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_2_805_1_3.HTM) 46 | * Ingresos Estado - operaciones no financieros: OK (141,306,776,950) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Estado - presupuesto total: OK (143,086,000,710) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_101_1_5_1.HTM) 48 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (38,105,094,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Organismos Autónomos - presupuesto total: OK (38,841,958,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_102_1_4_1.HTM) 50 | * **Ingresos Agencias estatales - operaciones no financieros: ERROR 7,286,422,150 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_103_1_4_1.HTM) 51 | * **Ingresos Agencias estatales - presupuesto total: ERROR 7,481,029,030 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_103_1_4_1.HTM) 52 | * Ingresos Seguridad Social - operaciones no financieros: OK (135,252,534,590) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_105_1_5_1.HTM) 53 | * Ingresos Seguridad Social - presupuesto total: OK (154,149,438,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_E_R_6_1_105_1_5_1.HTM) 54 | -------------------------------------------------------------------------------- /output/2018P/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2018 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 141,306,776,950|143,086,000,710|143,086,000,710|142,489,236,470 8 | | **Organismos autónomos** | 38,066,391,550|38,730,698,640|38,803,254,720|36,402,050,890 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 7,287,866,620|7,481,029,030|7,481,029,030|839,299,500 11 | | **Seguridad Social** | 133,916,469,760|138,983,283,710|154,147,283,710|136,409,180,380 12 | | (- transferencias internas) | -27,377,800,930|-27,377,800,930|-27,377,800,930| 13 | | **TOTAL** | **293,199,703,950**|**300,903,211,160**|**316,139,767,240**|**316,139,767,240** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 156,600,609,220|196,754,213,790|278,065,227,440|255,554,641,590 20 | | **Organismos autónomos** | 38,700,547,690|38,708,245,760|38,803,254,720|38,411,305,990 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 7,469,073,020|7,471,029,030|7,481,029,030|7,375,343,170 23 | | **Seguridad Social** | 152,562,383,810|154,147,250,210|154,147,283,710|149,777,703,220 24 | | (- transferencias internas) | -27,377,800,930|-27,377,800,930|-27,377,800,930| 25 | | **TOTAL** | **327,954,812,810**|**369,702,937,860**|**451,118,993,970**|**451,118,993,970** 26 | 27 | ### Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-27,377,800,930) 30 | * Gastos Estado - operaciones no financieros: OK (156,600,609,220) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (196,754,213,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (278,065,227,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (255,554,641,590) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (38,700,547,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (38,708,245,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (38,803,254,720) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (38,411,305,990) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_802_1_3.HTM) 38 | * **Gastos Agencias estatales - operaciones no financieros: ERROR 7,469,073,020 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_803_1_3.HTM) 39 | * **Gastos Agencias estatales - capítulos I-VIII: ERROR 7,471,029,030 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_803_1_3.HTM) 40 | * **Gastos Agencias estatales - presupuesto total: ERROR 7,481,029,030 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_803_1_3.HTM) 41 | * **Gastos Agencias estatales - presupuesto consolidado: ERROR 7,375,343,170 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_803_1_3.HTM) 42 | * Gastos Seguridad Social - operaciones no financieros: OK (152,562,383,810) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - capítulos I-VIII: OK (154,147,250,210) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto total: OK (154,147,283,710) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_805_1_3.HTM) 45 | * Gastos Seguridad Social - presupuesto consolidado: OK (149,777,703,220) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_2_805_1_3.HTM) 46 | * Ingresos Estado - operaciones no financieros: OK (141,306,776,950) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Estado - presupuesto total: OK (143,086,000,710) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_101_1_5_1.HTM) 48 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (38,066,391,550) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Organismos Autónomos - presupuesto total: OK (38,803,254,720) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_102_1_4_1.HTM) 50 | * **Ingresos Agencias estatales - operaciones no financieros: ERROR 7,287,866,620 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_103_1_4_1.HTM) 51 | * **Ingresos Agencias estatales - presupuesto total: ERROR 7,481,029,030 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_103_1_4_1.HTM) 52 | * Ingresos Seguridad Social - operaciones no financieros: OK (133,916,469,760) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_105_1_5_1.HTM) 53 | * Ingresos Seguridad Social - presupuesto total: OK (154,147,283,710) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2018Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_18_A_R_6_1_105_1_5_1.HTM) 54 | -------------------------------------------------------------------------------- /output/2019P/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2019 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 154,674,608,170|157,387,426,920|157,387,426,920|156,779,458,950 8 | | **Organismos autónomos** | 39,243,292,510|40,053,284,510|40,071,797,010|37,513,040,890 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 7,564,441,600|7,770,941,240|7,790,941,240|884,541,170 11 | | **Seguridad Social** | 144,707,334,960|149,509,773,660|164,673,773,660|144,738,419,330 12 | | (- transferencias internas) | -30,008,478,490|-30,008,478,490|-30,008,478,490| 13 | | **TOTAL** | **316,181,198,750**|**324,712,947,840**|**339,915,460,340**|**339,915,460,340** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 164,197,084,820|198,196,918,660|290,131,728,470|265,285,145,210 20 | | **Organismos autónomos** | 40,032,721,190|40,040,382,490|40,071,797,010|39,658,966,690 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 7,778,969,230|7,780,941,240|7,790,941,240|7,685,909,220 23 | | **Seguridad Social** | 163,358,149,010|164,673,740,160|164,673,773,660|160,029,740,770 24 | | (- transferencias internas) | -30,008,478,490|-30,008,478,490|-30,008,478,490| 25 | | **TOTAL** | **345,358,445,760**|**380,683,504,060**|**472,659,761,890**|**472,659,761,890** 26 | 27 | ### Comprobaciones 28 | 29 | * Transferencias internas ingresos = gastos: OK (-30,008,478,490) 30 | * Gastos Estado - operaciones no financieros: OK (164,197,084,820) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (198,196,918,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (290,131,728,470) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (265,285,145,210) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (40,032,721,190) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (40,040,382,490) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (40,071,797,010) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (39,658,966,690) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_802_1_3.HTM) 38 | * **Gastos Agencias estatales - operaciones no financieros: ERROR 7,778,969,230 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_803_1_3.HTM) 39 | * **Gastos Agencias estatales - capítulos I-VIII: ERROR 7,780,941,240 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_803_1_3.HTM) 40 | * **Gastos Agencias estatales - presupuesto total: ERROR 7,790,941,240 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_803_1_3.HTM) 41 | * **Gastos Agencias estatales - presupuesto consolidado: ERROR 7,685,909,220 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_803_1_3.HTM) 42 | * Gastos Seguridad Social - operaciones no financieros: OK (163,358,149,010) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - capítulos I-VIII: OK (164,673,740,160) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto total: OK (164,673,773,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_805_1_3.HTM) 45 | * Gastos Seguridad Social - presupuesto consolidado: OK (160,029,740,770) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_2_805_1_3.HTM) 46 | * Ingresos Estado - operaciones no financieros: OK (154,674,608,170) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Estado - presupuesto total: OK (157,387,426,920) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_101_1_5_1.HTM) 48 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (39,243,292,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Organismos Autónomos - presupuesto total: OK (40,071,797,010) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_102_1_4_1.HTM) 50 | * **Ingresos Agencias estatales - operaciones no financieros: ERROR 7,564,441,600 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_103_1_4_1.HTM) 51 | * **Ingresos Agencias estatales - presupuesto total: ERROR 7,790,941,240 != 0** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_103_1_4_1.HTM) 52 | * Ingresos Seguridad Social - operaciones no financieros: OK (144,707,334,960) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_105_1_5_1.HTM) 53 | * Ingresos Seguridad Social - presupuesto total: OK (164,673,773,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2019Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_19_A_R_6_1_105_1_5_1.HTM) 54 | -------------------------------------------------------------------------------- /output/2021/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2021 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 155,293,823,090|157,114,530,880|157,114,530,880|156,616,334,550 8 | | **Organismos autónomos** | 47,178,224,660|47,931,516,060|47,968,837,880|39,155,201,800 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 7,705,394,030|7,861,629,310|7,890,629,310|870,191,900 11 | | **Seguridad Social** | 161,318,911,430|162,355,332,440|176,185,422,440|141,251,391,800 12 | | (- transferencias internas) | -51,266,300,460|-51,266,300,460|-51,266,300,460| 13 | | **TOTAL** | **320,230,052,750**|**323,996,708,230**|**337,893,120,050**|**337,893,120,050** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 236,330,915,880|289,161,639,430|383,542,623,240|322,903,624,080 20 | | **Organismos autónomos** | 47,930,936,550|47,938,081,090|47,968,837,880|47,592,807,670 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 7,888,097,900|7,890,104,910|7,890,629,310|7,760,469,510 23 | | **Seguridad Social** | 175,612,154,070|176,185,402,440|176,185,422,440|172,226,973,510 24 | | (- transferencias internas) | -65,103,638,100|-65,103,638,100|-65,103,638,100| 25 | | **TOTAL** | **416,495,803,940**|**456,073,237,410**|**550,483,874,770**|**550,483,874,770** 26 | 27 | ### Comprobaciones 28 | 29 | * **Transferencias internas ingresos = gastos: ERROR -51,266,300,460 != -65,103,638,100** 30 | * Gastos Estado - operaciones no financieros: OK (236,330,915,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (289,161,639,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (383,542,623,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (322,903,624,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (47,930,936,550) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (47,938,081,090) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (47,968,837,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (47,592,807,670) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_802_1_3.HTM) 38 | * Gastos Otros organismos - operaciones no financieros: OK (7,888,097,900) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_803_1_3.HTM) 39 | * Gastos Otros organismos - presupuesto total: OK (7,890,629,310) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_803_1_3.HTM) 40 | * Gastos Otros organismos - presupuesto consolidado: OK (7,760,469,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_803_1_3.HTM) 41 | * Gastos Seguridad Social - operaciones no financieros: OK (175,612,154,070) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_805_1_3.HTM) 42 | * Gastos Seguridad Social - capítulos I-VIII: OK (176,185,402,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - presupuesto total: OK (176,185,422,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto consolidado: OK (172,226,973,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_2_805_1_3.HTM) 45 | * Ingresos Estado - operaciones no financieros: OK (155,293,823,090) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_101_1_5_1.HTM) 46 | * Ingresos Estado - presupuesto total: OK (157,114,530,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (47,178,224,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_102_1_4_1.HTM) 48 | * Ingresos Organismos Autónomos - presupuesto total: OK (47,968,837,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Otros organismos - operaciones no financieros: OK (7,705,394,030) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_103_1_4_1.HTM) 50 | * Ingresos Otros organismos - presupuesto total: OK (7,890,629,310) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_103_1_4_1.HTM) 51 | * Ingresos Seguridad Social - operaciones no financieros: OK (161,318,911,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_105_1_5_1.HTM) 52 | * Ingresos Seguridad Social - presupuesto total: OK (176,185,422,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_E_R_6_1_105_1_5_1.HTM) 53 | -------------------------------------------------------------------------------- /output/2021P/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2021 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 155,293,823,090|157,114,530,880|157,114,530,880|156,616,334,550 8 | | **Organismos autónomos** | 47,175,245,660|47,928,537,060|47,965,858,880|39,155,201,800 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 7,705,394,030|7,861,629,310|7,890,629,310|870,191,900 11 | | **Seguridad Social** | 161,318,911,430|162,355,332,440|176,185,422,440|141,251,391,800 12 | | (- transferencias internas) | -51,263,321,460|-51,263,321,460|-51,263,321,460| 13 | | **TOTAL** | **320,230,052,750**|**323,996,708,230**|**337,893,120,050**|**337,893,120,050** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 236,330,915,880|289,161,639,430|383,542,623,240|322,906,603,080 20 | | **Organismos autónomos** | 47,927,957,550|47,935,102,090|47,965,858,880|47,589,828,670 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 7,888,097,900|7,890,104,910|7,890,629,310|7,760,469,510 23 | | **Seguridad Social** | 175,612,154,070|176,185,402,440|176,185,422,440|172,226,973,510 24 | | (- transferencias internas) | -65,100,659,100|-65,100,659,100|-65,100,659,100| 25 | | **TOTAL** | **416,495,803,940**|**456,073,237,410**|**550,483,874,770**|**550,483,874,770** 26 | 27 | ### Comprobaciones 28 | 29 | * **Transferencias internas ingresos = gastos: ERROR -51,263,321,460 != -65,100,659,100** 30 | * Gastos Estado - operaciones no financieros: OK (236,330,915,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (289,161,639,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (383,542,623,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (322,906,603,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (47,927,957,550) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (47,935,102,090) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (47,965,858,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (47,589,828,670) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_802_1_3.HTM) 38 | * Gastos Otros organismos - operaciones no financieros: OK (7,888,097,900) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_803_1_3.HTM) 39 | * Gastos Otros organismos - presupuesto total: OK (7,890,629,310) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_803_1_3.HTM) 40 | * Gastos Otros organismos - presupuesto consolidado: OK (7,760,469,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_803_1_3.HTM) 41 | * Gastos Seguridad Social - operaciones no financieros: OK (175,612,154,070) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_805_1_3.HTM) 42 | * Gastos Seguridad Social - capítulos I-VIII: OK (176,185,402,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - presupuesto total: OK (176,185,422,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto consolidado: OK (172,226,973,510) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_2_805_1_3.HTM) 45 | * Ingresos Estado - operaciones no financieros: OK (155,293,823,090) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_101_1_5_1.HTM) 46 | * Ingresos Estado - presupuesto total: OK (157,114,530,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (47,175,245,660) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_102_1_4_1.HTM) 48 | * Ingresos Organismos Autónomos - presupuesto total: OK (47,965,858,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Otros organismos - operaciones no financieros: OK (7,705,394,030) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_103_1_4_1.HTM) 50 | * Ingresos Otros organismos - presupuesto total: OK (7,890,629,310) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_103_1_4_1.HTM) 51 | * Ingresos Seguridad Social - operaciones no financieros: OK (161,318,911,430) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_105_1_5_1.HTM) 52 | * Ingresos Seguridad Social - presupuesto total: OK (176,185,422,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2021Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_21_A_R_6_1_105_1_5_1.HTM) 53 | -------------------------------------------------------------------------------- /output/2022/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2022 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 182,903,613,990|197,460,014,850|197,460,014,850|196,927,553,530 8 | | **Organismos autónomos** | 45,471,988,670|46,174,318,890|46,235,966,560|41,216,820,630 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 8,637,707,480|8,923,516,200|8,952,516,200|1,121,683,890 11 | | **Seguridad Social** | 177,708,174,340|178,152,401,540|185,133,991,540|144,804,769,910 12 | | (- transferencias internas) | -53,711,661,190|-53,711,661,190|-53,711,661,190| 13 | | **TOTAL** | **361,009,823,290**|**376,998,590,290**|**384,070,827,960**|**384,070,827,960** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 241,716,552,390|279,396,687,910|347,486,096,540|291,549,271,790 20 | | **Organismos autónomos** | 46,179,525,860|46,186,452,130|46,235,966,560|45,821,186,480 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 8,949,142,880|8,951,338,560|8,952,516,200|8,859,278,900 23 | | **Seguridad Social** | 183,878,878,270|185,133,981,540|185,133,991,540|180,878,026,050 24 | | (- transferencias internas) | -60,700,807,620|-60,700,807,620|-60,700,807,620| 25 | | **TOTAL** | **427,012,438,210**|**458,969,567,590**|**527,107,763,220**|**527,107,763,220** 26 | 27 | ### Comprobaciones 28 | 29 | * **Transferencias internas ingresos = gastos: ERROR -53,711,661,190 != -60,700,807,620** 30 | * Gastos Estado - operaciones no financieros: OK (241,716,552,390) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (279,396,687,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (347,486,096,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (291,549,271,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (46,179,525,860) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (46,186,452,130) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (46,235,966,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (45,821,186,480) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_802_1_3.HTM) 38 | * Gastos Otros organismos - operaciones no financieros: OK (8,949,142,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_803_1_3.HTM) 39 | * Gastos Otros organismos - presupuesto total: OK (8,952,516,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_803_1_3.HTM) 40 | * Gastos Otros organismos - presupuesto consolidado: OK (8,859,278,900) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_803_1_3.HTM) 41 | * Gastos Seguridad Social - operaciones no financieros: OK (183,878,878,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_805_1_3.HTM) 42 | * Gastos Seguridad Social - capítulos I-VIII: OK (185,133,981,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - presupuesto total: OK (185,133,991,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto consolidado: OK (180,878,026,050) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_2_805_1_3.HTM) 45 | * Ingresos Estado - operaciones no financieros: OK (182,903,613,990) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_101_1_5_1.HTM) 46 | * Ingresos Estado - presupuesto total: OK (197,460,014,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (45,471,988,670) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_102_1_4_1.HTM) 48 | * Ingresos Organismos Autónomos - presupuesto total: OK (46,235,966,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Otros organismos - operaciones no financieros: OK (8,637,707,480) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_103_1_4_1.HTM) 50 | * Ingresos Otros organismos - presupuesto total: OK (8,952,516,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_103_1_4_1.HTM) 51 | * Ingresos Seguridad Social - operaciones no financieros: OK (177,708,174,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_105_1_5_1.HTM) 52 | * Ingresos Seguridad Social - presupuesto total: OK (185,133,991,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_E_R_6_1_105_1_5_1.HTM) 53 | -------------------------------------------------------------------------------- /output/2022P/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2022 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 182,903,613,990|197,460,014,850|197,460,014,850|196,927,553,530 8 | | **Organismos autónomos** | 45,470,513,670|46,172,843,890|46,234,491,560|41,216,820,630 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 8,637,707,480|8,923,516,200|8,952,516,200|1,121,683,890 11 | | **Seguridad Social** | 177,708,174,340|178,152,401,540|185,133,991,540|144,804,769,910 12 | | (- transferencias internas) | -53,710,186,190|-53,710,186,190|-53,710,186,190| 13 | | **TOTAL** | **361,009,823,290**|**376,998,590,290**|**384,070,827,960**|**384,070,827,960** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 241,716,552,390|279,396,687,910|347,486,096,540|291,549,271,790 20 | | **Organismos autónomos** | 46,179,525,860|46,186,452,130|46,235,966,560|45,821,186,480 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 8,949,142,880|8,951,338,560|8,952,516,200|8,859,278,900 23 | | **Seguridad Social** | 183,878,878,270|185,133,981,540|185,133,991,540|180,878,026,050 24 | | (- transferencias internas) | -60,700,807,620|-60,700,807,620|-60,700,807,620| 25 | | **TOTAL** | **427,012,438,210**|**458,969,567,590**|**527,107,763,220**|**527,107,763,220** 26 | 27 | ### Comprobaciones 28 | 29 | * **Transferencias internas ingresos = gastos: ERROR -53,710,186,190 != -60,700,807,620** 30 | * Gastos Estado - operaciones no financieros: OK (241,716,552,390) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (279,396,687,910) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (347,486,096,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_801_1_3.HTM) 33 | * **Gastos Estado - presupuesto consolidado: ERROR 291,550,746,790 != 291,549,271,790** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_801_1_3.HTM) 34 | * **Gastos Organismos Autónomos - operaciones no financieros: ERROR 46,178,050,860 != 46,179,525,860** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_802_1_3.HTM) 35 | * **Gastos Organismos Autónomos - capítulos I-VIII: ERROR 46,184,977,130 != 46,186,452,130** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_802_1_3.HTM) 36 | * **Gastos Organismos Autónomos - presupuesto total: ERROR 46,234,491,560 != 46,235,966,560** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_802_1_3.HTM) 37 | * **Gastos Organismos Autónomos - presupuesto consolidado: ERROR 45,819,711,480 != 45,821,186,480** [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_802_1_3.HTM) 38 | * Gastos Otros organismos - operaciones no financieros: OK (8,949,142,880) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_803_1_3.HTM) 39 | * Gastos Otros organismos - presupuesto total: OK (8,952,516,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_803_1_3.HTM) 40 | * Gastos Otros organismos - presupuesto consolidado: OK (8,859,278,900) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_803_1_3.HTM) 41 | * Gastos Seguridad Social - operaciones no financieros: OK (183,878,878,270) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_805_1_3.HTM) 42 | * Gastos Seguridad Social - capítulos I-VIII: OK (185,133,981,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - presupuesto total: OK (185,133,991,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto consolidado: OK (180,878,026,050) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_2_805_1_3.HTM) 45 | * Ingresos Estado - operaciones no financieros: OK (182,903,613,990) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_101_1_5_1.HTM) 46 | * Ingresos Estado - presupuesto total: OK (197,460,014,850) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (45,470,513,670) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_102_1_4_1.HTM) 48 | * Ingresos Organismos Autónomos - presupuesto total: OK (46,234,491,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Otros organismos - operaciones no financieros: OK (8,637,707,480) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_103_1_4_1.HTM) 50 | * Ingresos Otros organismos - presupuesto total: OK (8,952,516,200) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_103_1_4_1.HTM) 51 | * Ingresos Seguridad Social - operaciones no financieros: OK (177,708,174,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_105_1_5_1.HTM) 52 | * Ingresos Seguridad Social - presupuesto total: OK (185,133,991,540) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2022Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_22_A_R_6_1_105_1_5_1.HTM) 53 | -------------------------------------------------------------------------------- /output/2023/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2023 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 189,005,001,290|192,544,166,330|192,544,166,330|191,751,444,690 8 | | **Organismos autónomos** | 44,997,601,560|45,818,337,880|45,866,232,680|41,776,508,380 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 9,183,805,630|9,479,413,310|9,507,587,120|1,177,564,450 11 | | **Seguridad Social** | 197,070,735,790|199,173,456,180|209,177,262,330|165,303,766,950 12 | | (- transferencias internas) | -57,085,963,990|-57,085,963,990|-57,085,963,990| 13 | | **TOTAL** | **383,171,180,280**|**389,929,409,710**|**400,009,284,470**|**400,009,284,470** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 248,210,686,830|288,566,141,440|386,088,074,320|324,974,257,630 20 | | **Organismos autónomos** | 45,822,699,310|45,829,943,080|45,866,232,680|45,445,063,240 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 9,504,220,030|9,506,409,480|9,507,587,120|9,391,082,870 23 | | **Seguridad Social** | 204,269,900,340|209,177,252,330|209,177,262,330|203,732,903,360 24 | | (- transferencias internas) | -67,095,849,350|-67,095,849,350|-67,095,849,350| 25 | | **TOTAL** | **450,721,542,520**|**485,985,812,220**|**583,543,307,100**|**583,543,307,100** 26 | 27 | ### Comprobaciones 28 | 29 | * **Transferencias internas ingresos = gastos: ERROR -57,085,963,990 != -67,095,849,350** 30 | * Gastos Estado - operaciones no financieros: OK (248,210,686,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (288,566,141,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (386,088,074,320) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (324,974,257,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (45,822,699,310) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (45,829,943,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (45,866,232,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (45,445,063,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_802_1_3.HTM) 38 | * Gastos Otros organismos - operaciones no financieros: OK (9,504,220,030) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_803_1_3.HTM) 39 | * Gastos Otros organismos - presupuesto total: OK (9,507,587,120) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_803_1_3.HTM) 40 | * Gastos Otros organismos - presupuesto consolidado: OK (9,391,082,870) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_803_1_3.HTM) 41 | * Gastos Seguridad Social - operaciones no financieros: OK (204,269,900,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_805_1_3.HTM) 42 | * Gastos Seguridad Social - capítulos I-VIII: OK (209,177,252,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - presupuesto total: OK (209,177,262,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto consolidado: OK (203,732,903,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_2_805_1_3.HTM) 45 | * Ingresos Estado - operaciones no financieros: OK (189,005,001,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_101_1_5_1.HTM) 46 | * Ingresos Estado - presupuesto total: OK (192,544,166,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (44,997,601,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_102_1_4_1.HTM) 48 | * Ingresos Organismos Autónomos - presupuesto total: OK (45,866,232,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Otros organismos - operaciones no financieros: OK (9,183,805,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_103_1_4_1.HTM) 50 | * Ingresos Otros organismos - presupuesto total: OK (9,507,587,120) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_103_1_4_1.HTM) 51 | * Ingresos Seguridad Social - operaciones no financieros: OK (197,070,735,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_105_1_5_1.HTM) 52 | * Ingresos Seguridad Social - presupuesto total: OK (209,177,262,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_E_R_6_1_105_1_5_1.HTM) 53 | -------------------------------------------------------------------------------- /output/2023P/README.md: -------------------------------------------------------------------------------- 1 | ## Presupuesto 2023 2 | 3 | ### Ingresos 4 | 5 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 6 | | :-------------------------- | ---------------------: | -----: | -----------: | ----------: | 7 | | **Estado** | 189,005,001,290|192,544,166,330|192,544,166,330|191,751,444,690 8 | | **Organismos autónomos** | 44,979,382,560|45,800,118,880|45,848,013,680|41,776,508,380 9 | | **Agencias estatales** | 0|0|0|0 10 | | **Otros organismos** | 9,174,585,630|9,470,193,310|9,498,367,120|1,177,564,450 11 | | **Seguridad Social** | 197,058,735,790|199,161,456,180|209,165,262,330|165,303,766,950 12 | | (- transferencias internas) | -57,046,524,990|-57,046,524,990|-57,046,524,990| 13 | | **TOTAL** | **383,171,180,280**|**389,929,409,710**|**400,009,284,470**|**400,009,284,470** 14 | 15 | ### Gastos 16 | 17 | | | No Financieros (I-VII) | I-VIII | Total (I-IX) | Consolidado | 18 | | :-------------------------- |----------------------: | -----: | -----------: | ----------: | 19 | | **Estado** | 248,210,686,830|288,566,141,440|386,088,074,320|325,013,696,630 20 | | **Organismos autónomos** | 45,804,480,310|45,811,724,080|45,848,013,680|45,426,844,240 21 | | **Agencias estatales** | 0|0|0|0 22 | | **Otros organismos** | 9,495,000,030|9,497,189,480|9,498,367,120|9,381,862,870 23 | | **Seguridad Social** | 204,257,900,340|209,165,252,330|209,165,262,330|203,720,903,360 24 | | (- transferencias internas) | -67,056,410,350|-67,056,410,350|-67,056,410,350| 25 | | **TOTAL** | **450,721,542,520**|**485,985,812,220**|**583,543,307,100**|**583,543,307,100** 26 | 27 | ### Comprobaciones 28 | 29 | * **Transferencias internas ingresos = gastos: ERROR -57,046,524,990 != -67,056,410,350** 30 | * Gastos Estado - operaciones no financieros: OK (248,210,686,830) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_801_1_3.HTM) 31 | * Gastos Estado - capítulos I-VIII: OK (288,566,141,440) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_801_1_3.HTM) 32 | * Gastos Estado - presupuesto total: OK (386,088,074,320) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_801_1_3.HTM) 33 | * Gastos Estado - presupuesto consolidado: OK (325,013,696,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_801_1_3.HTM) 34 | * Gastos Organismos Autónomos - operaciones no financieros: OK (45,804,480,310) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_802_1_3.HTM) 35 | * Gastos Organismos Autónomos - capítulos I-VIII: OK (45,811,724,080) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_802_1_3.HTM) 36 | * Gastos Organismos Autónomos - presupuesto total: OK (45,848,013,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_802_1_3.HTM) 37 | * Gastos Organismos Autónomos - presupuesto consolidado: OK (45,426,844,240) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_802_1_3.HTM) 38 | * Gastos Otros organismos - operaciones no financieros: OK (9,495,000,030) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_803_1_3.HTM) 39 | * Gastos Otros organismos - presupuesto total: OK (9,498,367,120) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_803_1_3.HTM) 40 | * Gastos Otros organismos - presupuesto consolidado: OK (9,381,862,870) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_803_1_3.HTM) 41 | * Gastos Seguridad Social - operaciones no financieros: OK (204,257,900,340) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_805_1_3.HTM) 42 | * Gastos Seguridad Social - capítulos I-VIII: OK (209,165,252,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_805_1_3.HTM) 43 | * Gastos Seguridad Social - presupuesto total: OK (209,165,262,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_805_1_3.HTM) 44 | * Gastos Seguridad Social - presupuesto consolidado: OK (203,720,903,360) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_2_805_1_3.HTM) 45 | * Ingresos Estado - operaciones no financieros: OK (189,005,001,290) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_101_1_5_1.HTM) 46 | * Ingresos Estado - presupuesto total: OK (192,544,166,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_101_1_5_1.HTM) 47 | * Ingresos Organismos Autónomos - operaciones no financieros: OK (44,979,382,560) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_102_1_4_1.HTM) 48 | * Ingresos Organismos Autónomos - presupuesto total: OK (45,848,013,680) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_102_1_4_1.HTM) 49 | * Ingresos Otros organismos - operaciones no financieros: OK (9,174,585,630) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_103_1_4_1.HTM) 50 | * Ingresos Otros organismos - presupuesto total: OK (9,498,367,120) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_103_1_4_1.HTM) 51 | * Ingresos Seguridad Social - operaciones no financieros: OK (197,058,735,790) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_105_1_5_1.HTM) 52 | * Ingresos Seguridad Social - presupuesto total: OK (209,165,262,330) [fuente](http://www.sepg.pap.minhap.gob.es/Presup/PGE2023Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_23_A_R_6_1_105_1_5_1.HTM) 53 | -------------------------------------------------------------------------------- /output/README.md: -------------------------------------------------------------------------------- 1 | Las carpetas con una P al final del nombre, como '2017P', contienen información sobre el Proyecto de PGE enviado por el Gobierno al Congreso. 2 | 3 | Las carpetas sin P al final contienen la información de los PGE aprobados por el Congreso. -------------------------------------------------------------------------------- /parse_budget.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | # Notes: 4 | # 5 | # The output includes both line items and subtotals. We expect whoever is using this data 6 | # to take care of avoiding double counting. In order to deduplicate the data here we would 7 | # need to guess what the consumer wants to do with the data (does it care about details 8 | # or just chapter subtotals? ...) 9 | # 10 | # We do however remove the programme-level (could be convinced about changing this) and 11 | # public-body-level subtotals (because they don't fit well with the output file structure). 12 | # 13 | # This is also related to the fact that the budget breakdown doesn't go to the same level 14 | # of detail for all bodies or chapters, so the output is less consistent that we'd like: 15 | # budget expenses are organized in chapters > articles > headings > items. When looking at 16 | # an expense breakdown, the sum of all the chapters (codes of the form 'n') equals the sum of all 17 | # articles (codes 'nn') and the sum of all expenses (codes 'nnn'). I.e. the breakdown is exhaustive 18 | # down to that level. Note however that not all headings are broken into items (codes 'nnnnn'); 19 | # hence, just adding up all the items will result in a much smaller amount. 20 | # 21 | # To keep things interesting, in some cases (at least chapter 6 for Social Security, see 22 | # ProgrammeBreakdown notes) a chapter is not even broken down into articles. 23 | # 24 | require 'csv' 25 | require 'unicode_utils' 26 | 27 | require_relative 'lib/budget' 28 | 29 | budget_id = ARGV[0] 30 | year = budget_id[0..3] # Sometimes there's a P for 'Proposed' at the end. Ignore that bit 31 | is_final = (budget_id.length == 4) 32 | output_path = File.join(".", "output", budget_id) 33 | 34 | 35 | # RETRIEVE BUDGET LINES 36 | # 37 | # Note: the breakdowns in the Green books (Serie Verde) have more detail on the line 38 | # items, but they do not include the Social Security programmes. So we need to 39 | # combine both in order to get the full budget. (Or we could use only the Red ones, 40 | # but we'd lose quite a bit of detail. Compare f.ex. the chapter 1/2 detail for 41 | # programme 333A in the green [1] vs red [2] pages.) 42 | # 43 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_V_1_101_1_1_2_2_118_1_2.HTM 44 | # [2]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2013Ley/MaestroDocumentos/PGE-ROM/doc/HTM/N_13_E_R_31_118_1_1_1_1333A_2.HTM 45 | # 46 | income = [] 47 | expenses = [] 48 | additional_institutions = [] 49 | 50 | Budget.new(budget_id, is_final).entity_breakdowns.each do |bkdown| 51 | expenses.concat bkdown.expenses 52 | end 53 | Budget.new(budget_id, is_final).programme_breakdowns.each do |bkdown| 54 | expenses.concat bkdown.expenses 55 | 56 | # Because of the way we're extracting Social Security budget (from programme breakdowns, 57 | # not entity ones), we don't get the list of organization subtotals in the main list, 58 | # and these subtotals are the ones we use to recreate the insititutional hierarchy. 59 | # So we have to go and explicitely search for them, and add them later on. 60 | # (Alternatively, we could get the whole insitutional hierarchy from programme 61 | # breakdowns, but I see no point in changing what's already working.) 62 | additional_institutions.concat bkdown.institutions 63 | end 64 | 65 | Budget.new(budget_id, is_final).income_breakdowns.each do |bkdown| 66 | income.concat bkdown.income 67 | 68 | additional_institutions.concat bkdown.institutions 69 | end 70 | 71 | 72 | # 73 | # OUTPUT DATA SPREAD ACROSS A NUMBER OF FILES 74 | # 75 | 76 | # These policy ids and names don't change, at least since 2009 77 | def get_default_policies_and_programmes 78 | { 79 | "0" => { description: "Transferencias internas" }, 80 | "1" => { description: "Servicios públicos básicos" }, 81 | "2" => { description: "Protección y promoción social" }, 82 | "3" => { description: "Bienes públicos de carácter preferente" }, 83 | "4" => { description: "Actuaciones de carácter económico" }, 84 | "9" => { description: "Actuaciones de carácter general" }, 85 | "00" => { description: "Transferencias internas" }, 86 | "11" => { description: "Justicia" }, 87 | "12" => { description: "Defensa" }, 88 | "13" => { description: "Seguridad ciudadana e instituciones penitenciarias" }, 89 | "14" => { description: "Política exterior" }, 90 | "21" => { description: "Pensiones" }, 91 | "22" => { description: "Otras prestaciones económicas" }, 92 | "23" => { description: "Servicios sociales y promoción social" }, 93 | "24" => { description: "Fomento del empleo" }, 94 | "25" => { description: "Desempleo" }, 95 | "26" => { description: "Acceso a la vivienda y fomento de la edificación" }, 96 | "28" => { description: "Gestión y administración de Trabajo y Economía Social" }, 97 | "29" => { description: "Gestión y administración de la Seguridad Social" }, 98 | "31" => { description: "Sanidad" }, 99 | "32" => { description: "Educación" }, 100 | "33" => { description: "Cultura" }, 101 | "41" => { description: "Agricultura, pesca y alimentación" }, 102 | "42" => { description: "Industria y energía" }, 103 | "43" => { description: "Comercio, turismo y PYMES" }, 104 | "44" => { description: "Subvenciones al transporte" }, 105 | "45" => { description: "Infraestructuras" }, 106 | "46" => { description: "Investigación, desarrollo e innovación" }, 107 | "49" => { description: "Otras actuaciones de carácter económico" }, 108 | "91" => { description: "Alta dirección" }, 109 | "92" => { description: "Servicios de carácter general" }, 110 | "93" => { description: "Administración financiera y tributaria" }, 111 | "94" => { description: "Transferencias a otras admones. públicas" }, 112 | "95" => { description: "Deuda pública" } 113 | } 114 | end 115 | 116 | # The entity id is now five digits: section(2)+service(3, zero filled) 117 | def get_entity_id(section, service) 118 | return section if service.nil? or service.empty? 119 | section+service.rjust(3, '0') 120 | end 121 | 122 | # Capitalize (initial uppercase, rest lowercase) a string if it's all uppercase. 123 | # That way we beautify the result a bit when needed, but don't lose any data 124 | # for strings that already have valid mixed case. 125 | def capitalize_description_if_needed(description) 126 | return description if description.match(/\p{Lower}/) # Some lowercase in there, do nothing 127 | description = UnicodeUtils.downcase(description) # There's no capitalize method!? 128 | description[0] = UnicodeUtils.upcase(description[0]) 129 | description 130 | end 131 | 132 | # Collect categories first, then output, to avoid duplicated chapters and articles. 133 | # Important note: descriptions are consistent across the PGE budgets for chapters (x) 134 | # and articles (xx), but not headings (xxx), which vary _a lot_ across different programmes. 135 | # So we are forced to do some gymnastics, and include the entity id (i.e. section plus 136 | # department/service) in the category id. 137 | # Note: I initially thought income headings were consistent, but they are not: see for 138 | # example, [1][2]; code 398. They are _almost_ consistent, but nope. Then I thought 139 | # programme would be enough on the expense side. It's not. I thought section would be 140 | # enough on both sides... It is not. We need section and department/service. 141 | # Note: I also thought that I could start tagging items once a conflict was detected, 142 | # leaving the previous items with the original short code. Wrong. Because which item gets 143 | # the short code would depend on the particular data of each year's budget, and that 144 | # did mess the descriptions on the web (code 753 in year 2011 is not the same as code 145 | # 753 in year 2012). So, if there's a conflict _all_ items get tagged. 146 | # 147 | # [1]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_2_105_1_2_160_1_104_1.HTM 148 | # [2]: http://www.sepg.pap.minhap.gob.es/Presup/PGE2014Proyecto/MaestroDocumentos/PGE-ROM/doc/HTM/N_14_A_R_2_104_1_2_115_1_1302_1.HTM 149 | # 150 | def get_economic_categories_from_budget_items_list(items) 151 | def count_different_descriptions(items) 152 | items.map{|i| i[:description]}.uniq.count 153 | end 154 | 155 | # First, group items by economic concept 156 | buckets = {} 157 | items.each do |item| 158 | concept = item[:economic_concept] 159 | next if concept.nil? or concept.empty? 160 | next if concept.length > 4 # Budget item 161 | # Note: We don't need economic categories for budget items (concept length==5), they are 162 | # just items belonging to a heading. At one point the obstacle to this was distinguishing 163 | # heading subtotals from the items themselves in the output files, but we've sorted that 164 | # out through a new 'budget item' column in the output (see below). 165 | 166 | buckets[concept] = [] if buckets[concept].nil? 167 | buckets[concept].push item 168 | end 169 | 170 | # Then, for each bucket, decide whether we need to tag the economic concept 171 | categories = {} 172 | buckets.each do |concept, items| 173 | if count_different_descriptions(items) > 1 # We need to tag the concept 174 | # We expect this to happen only for headings 175 | if concept.length < 3 176 | puts "Warning: inconsistent descriptions for article or chapter #{concept}!" 177 | end 178 | 179 | # Create a category for each item, and modify the items to point to them 180 | items.each do |item| 181 | tagged_concept = "#{concept}/#{get_entity_id(item[:section], item[:service])}" 182 | item[:economic_concept] = tagged_concept 183 | categories[tagged_concept] = item[:description] 184 | end 185 | else 186 | categories[concept] = items.first[:description] # Pick the first, they're all the same 187 | end 188 | end 189 | categories 190 | end 191 | 192 | expense_categories = get_economic_categories_from_budget_items_list(expenses) 193 | income_categories = get_economic_categories_from_budget_items_list(income) 194 | CSV.open(File.join(output_path, "estructura_economica.csv"), "w", col_sep: ';') do |csv| 195 | csv << ["EJERCICIO", "GASTO/INGRESO", "CAPITULO", "ARTICULO", "CONCEPTO", "SUBCONCEPTO", "DESCRIPCION CORTA", "DESCRIPCION LARGA"] 196 | expense_categories.sort.each do |concept, description| 197 | csv << [year, 198 | "G", 199 | concept[0], 200 | concept.length >= 2 ? concept[0..1] : nil, 201 | concept.length >= 3 ? concept : nil, 202 | nil, # We don't use subheadings 203 | nil, # Short description, not used 204 | capitalize_description_if_needed(description) ] 205 | end 206 | 207 | income_categories.sort.each do |concept, description| 208 | csv << [year, 209 | "I", 210 | concept[0], 211 | concept.length >= 2 ? concept[0..1] : nil, 212 | concept.length >= 3 ? concept : nil, 213 | nil, # We don't use subheadings 214 | nil, # Short description, not used 215 | capitalize_description_if_needed(description) ] 216 | end 217 | end 218 | 219 | # Collect programmes first, then output, to avoid duplicates 220 | CSV.open(File.join(output_path, "estructura_funcional.csv"), "w", col_sep: ';') do |csv| 221 | programmes = get_default_policies_and_programmes 222 | expenses.each do |line| 223 | programme = line[:programme] 224 | next if programme.nil? or programme.empty? 225 | next unless line[:economic_concept].nil? or line[:economic_concept].empty? 226 | programmes[programme] = line 227 | end 228 | 229 | csv << ["EJERCICIO","GRUPO","FUNCION","SUBFUNCION","PROGRAMA","DESCRIPCION CORTA","DESCRIPCION LARGA"] 230 | programmes.sort.each do |programme, line| 231 | csv << [year, 232 | programme[0], 233 | programme.length >= 2 ? programme[0..1] : nil, 234 | programme.length >= 3 ? programme[0..2] : nil, 235 | programme.length >= 4 ? programme : nil, 236 | nil, # Short description, not used 237 | line[:description] ] 238 | end 239 | end 240 | 241 | CSV.open(File.join(output_path, "estructura_organica.csv"), "w", col_sep: ';') do |csv| 242 | bodies = {} 243 | expenses.each do |line| 244 | next unless line[:programme].nil? or line[:programme].empty? 245 | bodies[get_entity_id(line[:section], line[:service])] = line 246 | end 247 | additional_institutions.each do |line| 248 | entity_id = get_entity_id(line[:section], line[:service]) 249 | if !bodies[entity_id].nil? and bodies[entity_id][:description] != line[:description] 250 | puts "Warning: different descriptions for institution #{entity_id}: had #{bodies[entity_id][:description]}, now got #{line[:description]}" 251 | end 252 | bodies[entity_id] = line 253 | end 254 | 255 | csv << ["EJERCICIO","CENTRO GESTOR","DESCRIPCION CORTA","DESCRIPCION LARGA"] 256 | bodies.sort.each do |body_id, line| 257 | csv << [year, 258 | body_id, 259 | nil, # Short description, not used 260 | # The data is all uppercase; title case looks better 261 | UnicodeUtils.titlecase(line[:description])] 262 | end 263 | end 264 | 265 | def gather_budget_items(lines) 266 | budget_items = [] 267 | lines.each do |line| 268 | next if line[:economic_concept].nil? or line[:economic_concept].empty? 269 | line[:body_id] = get_entity_id(line[:section], line[:service]) # Convenient 270 | budget_items.push line 271 | end 272 | budget_items 273 | end 274 | 275 | def break_down_economic_code(line, economic_categories) 276 | concept = line[:economic_concept] 277 | item_number = nil 278 | 279 | # Pick the first 3 digits of the economic concept (i.e. ignore the last two digits of a 280 | # subheading=budget item), unless it's a tagged heading, in which case we need the full code. 281 | # Note that a five-digit economic code (xxxxx) is actually a budget item belonging to a 282 | # heading (xxx or xxx/sssss). We don't discard the last two digits in the output file, we 283 | # put them in the 'item number' column as it's useful (basically) to distinguish the items 284 | # from the heading subtotal. 285 | if concept.include?('/') 286 | # We have a heading, a tagged one; nothing to do 287 | 288 | else 289 | if concept.length == 5 # We have a budget item 290 | item_number = concept[3..4] 291 | concept = concept[0..2] 292 | 293 | # We may have been forced to tag the parent economic code to work around inconsitencies. 294 | # Find out, and if so, use the tagged economic code instead. 295 | extended_concept = "#{concept}/#{get_entity_id(line[:section], line[:service])}" 296 | concept = extended_concept if !economic_categories[extended_concept].nil? 297 | 298 | else 299 | concept = concept[0..2] 300 | 301 | end 302 | end 303 | 304 | [concept, item_number] 305 | end 306 | 307 | CSV.open(File.join(output_path, "gastos.csv"), "w", col_sep: ';') do |csv| 308 | csv << ["EJERCICIO","CENTRO GESTOR","FUNCIONAL","ECONOMICA","FINANCIACION","ITEM","DESCRIPCION","IMPORTE"] 309 | gather_budget_items(expenses).sort do |a,b| 310 | [a[:programme], a[:body_id], a[:economic_concept]] <=> [b[:programme], b[:body_id], b[:economic_concept]] 311 | end.each do |expense| 312 | concept, item_number = break_down_economic_code(expense, expense_categories) 313 | csv << [year, 314 | expense[:body_id], 315 | expense[:programme], 316 | concept, 317 | nil, 318 | item_number, 319 | expense[:description], 320 | Budget.convert_number(expense[:amount]) ] 321 | end 322 | end 323 | 324 | CSV.open(File.join(output_path, "ingresos.csv"), "w", col_sep: ';') do |csv| 325 | csv << ["EJERCICIO","CENTRO GESTOR","ECONOMICA","FINANCIACION","ITEM","DESCRIPCION","IMPORTE"] 326 | gather_budget_items(income).sort do |a,b| 327 | [a[:economic_concept], a[:body_id]] <=> [b[:economic_concept], b[:body_id]] 328 | end.each do |item| 329 | concept, item_number = break_down_economic_code(item, income_categories) 330 | csv << [year, 331 | item[:body_id], 332 | concept, 333 | nil, 334 | item_number, 335 | item[:description], 336 | Budget.convert_number(item[:amount]) ] 337 | end 338 | end 339 | 340 | -------------------------------------------------------------------------------- /render_budget_summary.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | # Generate a summary with the key figures of a budget, in Markdown, so it can be 4 | # explored more easily in Github, f.ex. 5 | 6 | require 'csv' 7 | require 'mustache' 8 | 9 | require_relative 'lib/budget' 10 | require_relative 'lib/budget_summary_view' 11 | 12 | # XXX: This command line stuff is duplicated in the parser, should clean up 13 | budget_id = ARGV[0] 14 | year = budget_id[0..3] # Sometimes there's a P for 'Proposed' at the end. Ignore that bit 15 | is_final = (budget_id.length == 4) 16 | output_path = File.join(".", "output", budget_id) 17 | 18 | 19 | # Do the calculations 20 | budget = Budget.new(budget_id, is_final) 21 | summary = BudgetSummaryView.new(budget, year) 22 | CSV.foreach(File.join(output_path, "ingresos.csv"), col_sep: ';') do |row| 23 | summary.add_item row 24 | end 25 | CSV.foreach(File.join(output_path, "gastos.csv"), col_sep: ';') do |row| 26 | summary.add_item row 27 | end 28 | 29 | # Inline template 30 | template = <