This commit is contained in:
seb
2026-10-12 19:48:07 +02:00
parent 64d1772842
commit 28e62093b3
25 changed files with 979 additions and 125 deletions

51
API.shipment.md Normal file
View File

@@ -0,0 +1,51 @@
# shipment
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
## `shipment.create`
*Source: `src/store/shipment/create.js`*
Creates a new shipment manifest for an order. Validates that all article positions belong to the order and do not exceed remaining ordered quantities.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `provider` | `import('../../providers/provider.js').DatabaseProvider` | |
## `shipment.delete`
*Source: `src/store/shipment/delete.js`*
Deletes a shipment manifest of the selected company. Shipped shipments (with packages in 'shipped' state) cannot be deleted.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `provider` | `import('../../providers/provider.js').DatabaseProvider` | |
## `shipment.getById`
*Source: `src/store/shipment/getById.js`*
Retrieves a shipment manifest by ID for the selected company, including lines and packages.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `provider` | `import('../../providers/provider.js').DatabaseProvider` | |
## `shipment.listByOrderId`
*Source: `src/store/shipment/listByOrderId.js`*
Lists all shipment manifests belonging to an order.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `provider` | `import('../../providers/provider.js').DatabaseProvider` | |