Add normalized kunden2 lookup

This commit is contained in:
2026-06-07 14:11:57 +02:00
parent 020d36a0a1
commit 2b5481f7e2
9 changed files with 188 additions and 4 deletions
+1
View File
@@ -64,6 +64,7 @@ The store can read both the connector format and the older Telefonbuch cookie-ar
- `checkRegistriert()` checks whether the page still contains `Neues Gerät registrieren`.
- `registerDevice({ agrarmonitorId, pcName })` loads `/freischaltung/`, extracts the nonce, and posts the registration request.
- `fetchCustomers()` loads customers from `https://api.agrarmonitor.de/v1/kunden`.
- `getKunden2()` loads all customer pages and returns normalized customer/supplier fields.
- `getCustomerById(id)` loads one customer from the token-based Agrarmonitor API.
- `eingangsrechnungenLivesearch(suchstring)` searches invoice files and enriches matching Eingangsrechnungen with edit/detail metadata.
- `eingangsrechnungVorhanden(suchstring)` checks whether invoice file search has rows.