This code is used for generating electricity invoices.
More information can be found in the following paper:
[1] Javier Sánchez, Agustín Salgado, Alejandro García, and Nelson Monzón, "IDSEM, an invoices database of the Spanish electricity market", Sci. Data (2022).