Load invoices files

Gobierto Budgets module implements a Rake task to load a CSV with invoices data in Elastic Search.

The format of the CSV is documented here

Loading CSV data files

Log into the server where Gobierto is hosted (you can use it even in your computer for the development environment) and call this rake task with the csv file path as the only argument:

rails gobierto_budgets:data:import_gobierto_invoices_data[csv_path,organization_id]

The argument organization_id corresponds with the INE code of the organization configured in Gobierto.

The file may raise errors calling the task if the code contains non numerical chars. At the end returns a summary with the number of records updated.