This commit is contained in:
seb
2026-09-30 20:12:30 +02:00
parent e358eccca9
commit 541a34382f
9 changed files with 51 additions and 14 deletions

View File

@@ -7,16 +7,22 @@ Adjust stock manually
Writes signed (+ or -) entries to the append-only ledger under an implicit manifest
of type "adjustment", allocating a number from the "adjustment" number scheme.
**Note:** `sku` must be a string (e.g. `"25"`), not a number. For single-item adjustments, provide `sku` and `amount` at top-level. For batch adjustments, provide `lines: [{ sku, amount, ... }]`.
## Body (JSON)
| Field | Required | Type | Description |
|-------|----------|------|-------------|
| `sku` | no | string | Article SKU (for single-item adjustment) |
| `sku` | no | string | Article SKU string (e.g. "25", not a number; for single-item adjustment) |
| `warehouseId` | no | integer | Target warehouse ID |
| `amount` | no | number | Signed adjustment quantity (+ to add, - to remove) |
| `text` | no | string | Reason or memo |
| `lines` | no | object[] | Batch adjustment lines |
| `lines[].sku` | yes | string | Article SKU string (e.g. "25", not a number) |
| `lines[].warehouseId` | no | integer | Target warehouse ID |
| `lines[].amount` | yes | number | Signed adjustment quantity (+ to add, - to remove) |
| `lines[].text` | no | string | Reason or memo |
```json
{