This commit is contained in:
seb
2026-09-26 07:34:35 +02:00
parent 67758d5ec2
commit f0176e0fe0
19 changed files with 106 additions and 8 deletions

View File

@@ -8173,6 +8173,16 @@
}
}
}
},
"409": {
"description": "SKU already exists",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
@@ -10444,6 +10454,24 @@
"date": {
"type": "string",
"format": "date-time"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"ledger": {
"type": "object",
"description": "Ledger booking summary for this delivery",
"properties": {
"totalPositions": {
"type": "integer",
"description": "Total number of position lines on this manifest"
},
"completelyOnLedgerPositions": {
"type": "integer",
"description": "Number of positions whose quantity is fully transacted in the ledger"
}
}
}
}
},
@@ -10818,6 +10846,10 @@
"type": "string",
"format": "date-time",
"description": "Document date / valid-until"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
@@ -10873,6 +10905,10 @@
"type": "string",
"format": "date-time",
"description": "Document date / expected delivery"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},

View File

@@ -42,6 +42,7 @@ Created
| 401 | Unauthorized — `{"error":"…"}` |
| 403 | Not authorized for parent category — `{"error":"…"}` |
| 404 | Parent not found — `{"error":"…"}` |
| 409 | SKU already exists — `{"error":"…"}` |
---

View File

@@ -59,6 +59,11 @@ Created delivery
"supplierId": 1,
"externalNumber": "…",
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"ledger": {
"totalPositions": 1,
"completelyOnLedgerPositions": 1
},
"lines": [
{
"id": 1,

View File

@@ -25,6 +25,11 @@ Delivery
"supplierId": 1,
"externalNumber": "…",
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"ledger": {
"totalPositions": 1,
"completelyOnLedgerPositions": 1
},
"lines": [
{
"id": 1,

View File

@@ -21,7 +21,12 @@ Delivery list
"type": "delivery",
"supplierId": 1,
"externalNumber": "…",
"date": "2026-08-10T00:00:00.000Z"
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"ledger": {
"totalPositions": 1,
"completelyOnLedgerPositions": 1
}
}
]
}

View File

@@ -46,6 +46,11 @@ Updated delivery
"supplierId": 1,
"externalNumber": "…",
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"ledger": {
"totalPositions": 1,
"completelyOnLedgerPositions": 1
},
"lines": [
{
"id": 1,

View File

@@ -42,6 +42,7 @@ Created order
"type": "order",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"lines": [
{
"id": 1,

View File

@@ -24,6 +24,7 @@ Order
"type": "order",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"lines": [
{
"id": 1,

View File

@@ -20,7 +20,8 @@ Order list
"number": "…",
"type": "order",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z"
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z"
}
]
}

View File

@@ -36,6 +36,7 @@ Updated order
"type": "order",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"lines": [
{
"id": 1,

View File

@@ -42,6 +42,7 @@ Created quote
"type": "quote",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"lines": [
{
"id": 1,

View File

@@ -24,6 +24,7 @@ Quote
"type": "quote",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"lines": [
{
"id": 1,

View File

@@ -20,7 +20,8 @@ Quote list
"number": "…",
"type": "quote",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z"
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z"
}
]
}

View File

@@ -36,6 +36,7 @@ Updated quote
"type": "quote",
"entityId": 1,
"date": "2026-08-10T00:00:00.000Z",
"createdAt": "2026-08-10T00:00:00.000Z",
"lines": [
{
"id": 1,