refactor(api): update manifest line schema docs with name and pu, update deliveryParsePdf model

This commit is contained in:
seb
2026-09-16 17:04:32 +02:00
parent ed36c534b9
commit ab6d018a1f
15 changed files with 142 additions and 70 deletions

View File

@@ -7,9 +7,8 @@ Create delivery
Creates a goods receipt with header and lines in one transaction.
The manifest `number` is allocated automatically via
`nextNumber('delivery')`; the user-supplied reference is stored as
`externalNumber`. Each line requires `sku`, `amount`, `net`, and
`tax` (rate). `rebate` defaults to `0`; `transactedAmount` defaults
to `amount`.
`externalNumber`. Each line requires `sku` or `name`, `amount`, `net`, and
`tax` (rate). `pu` defaults to `1`; `rebate` defaults to `0`.
## Body (JSON)
@@ -22,6 +21,8 @@ to `amount`.
"lines": [
{
"sku": "1",
"name": "Sample Article",
"pu": 1,
"amount": 10,
"net": 99.5,
"tax": 19
@@ -46,11 +47,11 @@ Created delivery
"lines": [
{
"id": 1,
"articleId": 1,
"sku": "…",
"name": "…",
"pu": 1,
"amount": 1,
"net": 1,
"transactedAmount": 1,
"rebate": 1,
"tax": 1,
"comment": "…"