GET https://restoranas.kitchenforce.lt/api/accountinginventories/{inventoryId}
{
"id": 367,
"date": "2024-06-06",
"description": "Inventorizacija datai 2024-06-06",
"warehouses": [
{
"id": 1,
"name": "Pagrindinis"
},
{
"id": 2,
"name": "Gamyba"
}
],
"amountBefore": 167.21,
"amountAfter": 114.8,
"amountDifference": 52.41,
"items": [
{
"product": {
"id": 102,
"name": "ALYVUOGĖS",
"unit": "kg"
},
"quantityBefore": 8.625,
"quantityAfter": 8,
"quantityDifference": -0.625,
"unitPrice": 3,
"amountBefore": 25.875,
"amountAfter": 24,
"amountDifference": -1.875,
"comment": ""
},
{
"product": {
"id": 1628,
"name": "Balandeliai",
"unit": "vnt"
},
"quantityBefore": 10,
"quantityAfter": 12,
"quantityDifference": 2,
"unitPrice": 5.4,
"amountBefore": 54,
"amountAfter": 64.8,
"amountDifference": 10.8,
"comment": ""
},
{
"product": {
"id": 1625,
"name": "Baltijos kepsnys",
"unit": "vnt"
},
"quantityBefore": 10,
"quantityAfter": 10,
"quantityDifference": 0,
"unitPrice": 2.6,
"amountBefore": 26,
"amountAfter": 26,
"amountDifference": 0,
"comment": ""
},
{
"product": {
"id": 101,
"name": "BALZAMIKAS",
"unit": "kg"
},
"quantityBefore": 7,
"quantityAfter": 0,
"quantityDifference": -7,
"unitPrice": 8.7625,
"amountBefore": 61.3375,
"amountAfter": 0,
"amountDifference": -61.3375,
"comment": ""
}
]
}
| Parametras | Tipas | Aprašymas |
|---|---|---|
| id | integer | Inventorizacijos ID |
| date | string | Inventorizacijos atidarymo data |
| description | string | Inventorizacijos aprašymas |
| warehouses | array | Inventorizuoti sandėliai |
| - id | integer | Sandėlio ID |
| - name | string | Sandėlio pavadinimas |
| amountBefore | double | Produktų likučių suma prieš inventorizaciją |
| amountAfter | double | Produktų likučių suma po inventorizacijos |
| amountDifference | double | Inventorizuotų produktų sumų skirtumas |
| items | array | Inventorizuoti produktai |
| - product | array | Produktas |
| - - id | integer | Produkto ID |
| - - name | string | Produkto pavadinimas |
| - - unit | string | Produkto mato vienetas |
| - quantityBefore | double | Produkto kiekis prieš inventorizaciją |
| - quantityAfter | double | Produkto kiekis po inventorizacijos |
| - quantityDifference | double | Produkto kiekio pokytis |
| - unitPrice | double | Produkto mato vieneto kaina inventorizacijos metu |
| - amountBefore | double | Produkto likučio suma prieš inventorizaciją |
| - amountAfter | double | Produkto likučio suma po inventorizacijos |
| - amountDifference | double | Produkto likučio sumos pokytis |
| - comment | double | Inventorizuoto produkto komentaras |
{
"errorCode": 5,
"errorDescription": "Inventorizacija nerasta"
}
Žemiau pateikiami tik su inventorizacijos peržiūra susiję klaidų kodai. Klaidų kodai susiję su API raktu ir jo leidimais aprašyti skyriuje naudojimas.
| Kodas | Aprašymas |
|---|---|
| 5 | Inventorizacija nerasta |