Add invoice and customer API methods
This commit is contained in:
@@ -62,4 +62,12 @@ 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`.
|
||||
- `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.
|
||||
- `eingangsrechnungImDateieingangVorhanden(suchstring)` checks whether file inbox search has rows.
|
||||
- `getRechnungsdaten(rechnungId)` reads editable invoice fields.
|
||||
- `setRechnungsdaten(rechnungId, daten)` updates editable invoice fields.
|
||||
- `setLieferscheinNummer(rechnungId, nummer)` updates only the delivery note number.
|
||||
- `setEingangsdatum(rechnungId, datum)` updates the received date.
|
||||
- `saveSession()` explicitly persists the current cookie jar.
|
||||
|
||||
Reference in New Issue
Block a user