Liefert eine Liste von Material Definitionen inkl. der Anzahl Bestellungen in einem Zeitraum mit Status
Request
/api/v1/material-definition/list?from={fromDateTime}&to={toDateTime}
Parameter
Daten
Attribut | Datentyp | Beschreibung |
fromDateTime | ISO Date / Time | Von Datum der Abfrage |
toDateTime | ISO Date / Time | Bis Datum der Abfrage |
Antwort
Daten
Attribut | Datentyp | Beschreibung |
id | Long | Material Bestellung-ID |
status | String | Status der Material Bestellung |
created | ISO Date / Time | Erstellt am |
closed | ISO Date / Time | Abgeschlossen am |
creatorId | Long | Ersteller-ID |
creatorName | String | Ersteller Name |
executorId | Long | Ausführende-ID |
executorName | String | Ausführende-Name |
cleaningTourId | Long | Tour-ID sofern in Tour Modus |
cleaningTourName | String | Tour-Name sofern im Tour Modus |
buildingId | Long | Gebäude-ID sofern im Gebäude Modus |
buildingName | String | Gebäude-Name sofern im Gebäude Modus |
materialOrderPositions | [] | Bestellte Positionen |
Positionen
Attribut | Datentyp | Beschreibung |
id | Long | Material Position ID |
materialDefinitionId | Long | Material Definition ID |
materialDefinitionName | String | Material Definition Name |
amount | Integer | Bestellte Menge |
packed | boolean | Gepackt |
unit | String | Einheit |
status | String | Status von der Material Defintiion |
Beispiel Antwort
[{
"id": 70,
"status": "DONE",
"created": "2023-12-21T10:25:41Z",
"closed": "2023-12-21T10:27:02Z",
"comment": null,
"creatorId": 1496,
"creatorName": "Andreas Mock",
"executorId": 1496,
"executorName": "sadasdas",
"cleaningTourId": null,
"cleaningTourName": null,
"buildingId": null,
"buildingName": null,
"materialOrderPositions": [{
"id": 186,
"materialDefinitionId": 1,
"materialDefinitionName": "WC Papier, 3-lagig weiss, 100 Zellstoff",
"amount": 1,
"packed": true,
"unit": "Sack",
"status": "ACTIVE"
}]
Kommentare
0 Kommentare
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.