# dodavatelia-mesta: invoices the town received, per year and supplier (companies only)

One row per calendar year and supplier: the invoices received by Mesto Senec (fakturované mestu) from that
supplier in that year, summed from `faktury-mesta` (the town's register of received invoices,
`https://www.senec.sk/urad/povinne-zverejnovanie/faktury/`). Built by `scripts/harvest_trimel.py` with the
three register datasets, since 9 Nov 2026. On the site since the same day: the search's card „Kto fakturoval
mestu najviac“ (the top ten of a year) and the download on `/data`.

3,614 rows: 1,306 suppliers (9 of them without an IČO) over 2017 – 2026, from 23,341 of the register's 26,884
invoices (received 2 Jan 2017 – 15 Oct 2026), Σ `suma` 69,987,067.42 €. Built from the town's list downloaded on
30 Oct 2026 (`retrieved_at`).

The publisher decided on 5 Nov 2026 (D5) that the site may show who the town's invoices came from, for companies
only; **sole traders and other natural persons are never named**, so they are not in this dataset at all, not even
as a masked line. A supplier is kept only by the rule under "Who is in it".

## What the amounts are

- `suma` is the register's amount, invoice by invoice, added up exactly (in cents). The register gives the date an
  invoice was received (`prijata`), **not the date it was paid**: these are amounts invoiced to the town, not
  payments. A year is the year of `prijata`.
- An invoice with a negative amount is read as a credit note (dobropis) or a correction. The register does not say
  which: its `typ_dokladu` is `FD` (faktúra došlá) on every row. `suma` includes them, `suma_bez_dobropisov` leaves
  them out (only invoices with a positive amount), `pocet_dobropisov` counts them. Invoices of 0.00 € are counted
  in `pocet_faktur` and add nothing.
- VAT: the register's `dph` flag on each invoice is not documented (`zmluvy-mesta-README.md`), so the sums are as
  published and are not split by VAT.
- 2026 is a part year: the list of 30 Oct 2026 holds invoices received up to 15 Oct 2026; the register publishes an
  invoice after it was received.
- 6 invoices (5 suppliers) are dated after the supplier's only RPO entry ended: the town's IČO for a merged company's
  successor that kept using it, or a typo (not checked). They stay under RPO's name for that IČO.

## Who is in it

A supplier is an invoice's partner in `faktury-mesta` with `partner_typ` `PO` (a legal person, by RPO or by
name), kept when one of these holds (`zaradenie`):

| `zaradenie` | Rule |
|---|---|
| `RPO` | RPO's legal-form code for the IČO is a legal person's: 002, 111, 112, 113, 117–121, 125, 205, 301, 321, 331, 381, 382, 701, 711, 721, 741, 751, 801, 803, 921 (companies, cooperatives, state enterprises, budget and contributory bodies, towns and regions, associations, foundations, non-profits, churches, foreign persons and their branches) |
| `RPO a názov` | RPO's code is 995 („Nešpecifikovaná právna forma“) or one outside that list, and the name carries a legal form (s.r.o., a.s., o.z., GmbH, Kft., pobočka zahraničnej banky, …) or starts like a public body („Mesto“, „Ministerstvo“, „Slovenská …“, „Základná škola“, …) |
| `názov` | RPO has no legal-form code for the IČO or no entry (foreign suppliers, rows without an IČO): the name carries a legal form or starts like a public body, and no academic title (Ing., Mgr., …) stands before it |

Always left out: RPO's codes of natural persons (001, 101–109) under any of the IČO's entries, every partner the
register datasets mask (`fyzická osoba`, `fyzická osoba – podnikateľ`), a name with a masked part
(`[meno vynechané]`), and brass bands and folk groups named after a person or a family (an ensemble's name with a
given name, a surname or a family plural in -ovci; those named after a place stay).

In the list of 30 Oct 2026 that leaves out 3,529 invoices of natural persons and 14 of legal persons: 5 whose name
has a masked part, 1 of an ensemble named after a family, 2 with RPO's code 995 and no legal form or public lead in
the name (Tlačová agentúra Slovenskej republiky, 112.80 €) and 6 without an RPO code or a legal form in the name
(folk and brass bands, a professional chamber, a holiday facility; 3,921.00 €).

The name is RPO's current name for the IČO (the entry in force; see `zmluvy-mesta-README.md`, section „9 Nov
2026“), else the register's text; for a supplier without an IČO the row is keyed by that text. The name is the one on the year's
latest invoice.

## Fields

| Field | Meaning |
|---|---|
| `record_id` | `<rok>-<partner_ico>`, or `<rok>-n-<the name in ASCII>` for a supplier without an IČO; derived from the source's identifiers, stable across rebuilds |
| `rok` | Calendar year of `prijata` (received) |
| `partner` | The supplier's name (RPO's current name; else the register's text) |
| `partner_ico` | IČO, 8 digits; null for a supplier the register lists without one |
| `pravna_forma` | RPO's legal form; null without an RPO code |
| `zaradenie` | Why the supplier is kept: `RPO`, `RPO a názov`, `názov` (see above) |
| `pocet_faktur` | Invoices received that year, credit notes included |
| `pocet_dobropisov` | Of them, invoices with a negative amount |
| `suma` | Σ `suma` of the year's invoices, credit notes included, EUR |
| `suma_bez_dobropisov` | Σ of the invoices with a positive amount only, EUR |
| `source_url` | The town's invoice register page. It has no page per supplier or per year: search it by the IČO |
| `retrieved_at` | The day the town's list of invoices was downloaded |
| `last_update` | The day this row last changed in this dataset, kept from build to build while it is the same, by `record_id`; a new or changed row takes the day the town's list was downloaded |

## Check figures (9 Nov 2026)

2025 (`rok` 2025): 463 suppliers, 2,927 invoices, Σ `suma` 8,739,242.68 € (8,781,037.97 € without the 80 credit
notes). The two largest:

| `partner` | `partner_ico` | `pocet_faktur` | `suma` |
|---|---|---|---|
| Doprastav, a.s. | 31333320 | 3 | 1,121,479.65 € |
| AVE SK odpadové hospodárstvo s.r.o. | 36357065 | 62 (1 credit note) | 1,078,434.03 € (1,078,607.00 € without it) |

The research of 8 Nov 2026 counted 2,931 invoices, 8,739,470.27 € and 465 suppliers for 2025 by the same rule on the
data before the masking fixes. The difference is 3 invoices (227.59 €) the town filed under its own IČO, which made
„Mesto Senec“ a supplier (the partners are two foreign software firms and a Hungarian bookshop company, whose legal
form the name rules don't read; masked now, as the rules do when unsure), and 1 invoice of 0.00 € of a company
outside RPO whose name has a masked part.

Every supplier was checked after the build: none has an RPO entry of a natural person under any of its IČO's hits,
none has a masked part in its name, and the 9 names that read like two or three proper names are associations (code
701) and a state enterprise by RPO. Kept by the rule and worth knowing: 18 suppliers' names contain what reads as a
person's name, 9 of them with an academic title (companies named after their owner, „Ing. … - … s.r.o.“, and schools
named after a person); they are legal persons by RPO, so D5 allows them.

## Single bids in the town's procurements (`uvo-senec`)

The publisher's D5 also allows the procedures with a single bid. They are not a field of this dataset or of
`uvo-senec`: `uvo-senec` is frozen at its harvest of 10 Oct 2026 (ÚVO's robots.txt disallows crawling) and already
gives the tenders per lot in `tenders_received`, so this summary is all that was added. Counted lot by lot from
`uvo-senec`, rows with `source` `profil` or `vestnik` and a non-empty `tenders_received` (the 477
`vestnik_suhrnna_sprava` rows are lines of the summary reports on low-value contracts, not procedures, and are
left out):

- **13 of the 61 procedures** with tender counts had exactly one tender on a lot; **15 of their 73 lots**. In each of
  the 13 every lot had one tender. The 61 procedures were published 2009 – 2026.
- **3 of the 13 are direct negotiations**, which have one bidder by design: `uvo-z-156632` („Výzva na
  rokovanie/priame rokovacie konanie“), `uvo-z-423266` and `uvo-z-551420` („Priame rokovacie konanie“). Without
  them, 10 of 58 procedures.
- The figure of 5 Nov 2026 (12, 19.7 %) missed `uvo-z-475002`, three lots with one tender each. 13 of 61 is
  21.3 %.
- Every winner of the 13 is a company: RPO's code is 112 (s.r.o.) or 121 (a.s.) for each winner's IČO, and none is
  `fyzická osoba` in `uvo-senec`.

| `record_id` | Year | Procedure | Kind | Lots | Winner |
|---|---|---|---|---|---|
| `uvo-z-156632` | 2015 | Výzva na rokovanie/priame rokovacie konanie | Práce | 1 | CS, s.r.o. |
| `uvo-z-402720` | 2016 | Výzva na predkladanie ponúk | Služby | 1 | GMG.SC, spol. s r.o. |
| `uvo-z-407297` | 2017 | Výzva na predkladanie ponúk | Práce | 1 | CS, s.r.o. |
| `uvo-z-410070` | 2017 | Verejná súťaž | Služby | 1 | Slovak Lines, a.s. |
| `uvo-z-423266` | 2019 | Priame rokovacie konanie | Služby | 1 | DKLN, s. r. o. |
| `uvo-z-427644` | 2020 | Verejná súťaž | Služby | 1 | CMT Group s. r. o. |
| `uvo-z-435019` | 2021 | Verejná súťaž | Služby | 1 | AVE SK odpadové hospodárstvo s.r.o. |
| `uvo-z-475002` | 2023 | Verejná súťaž | Tovary | 3 | REWA-TECH s. r. o.; TERRASTROJ spol. s r.o.; HANES Slovakia, s.r.o. |
| `uvo-z-476216` | 2023 | Verejná súťaž | Služby | 1 | ARRIVA Mobility Solutions, s.r.o. |
| `uvo-z-486393` | 2023 | Verejná súťaž | Služby | 1 | AVE SK odpadové hospodárstvo s.r.o. |
| `uvo-z-529165` | 2025 | Iný jednofázový postup | Práce | 1 | CS, s.r.o. |
| `uvo-z-551420` | 2026 | Priame rokovacie konanie | Tovary | 1 | MABONEX SLOVAKIA spol. s r.o. |
| `uvo-z-560307` | 2026 | Koncesia | Služby | 1 | ZSE Energetické služby, s. r. o. |

The year is the profile's publication date, else the first notice's. Each `record_id` is a row of `uvo-senec`,
whose `source_url` is the procurement's page on uvo.gov.sk.

## Rebuild

```bash
.venv/bin/python -I scripts/harvest_trimel.py              # with the three register datasets
.venv/bin/python -I scripts/harvest_trimel.py --no-fetch   # from the town's lists already downloaded
```

## License

Published by Som Senec under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. You may use it for any purpose, commercial use included, if you credit "Som Senec, somsenec.sk". The source documents that each record links to keep their own terms.
