This commit is contained in:
seb
2026-09-29 20:10:49 +02:00
parent 23d6742a9f
commit 9885c489f0
17 changed files with 715 additions and 3 deletions

40
API.articlelist.md Normal file
View File

@@ -0,0 +1,40 @@
# articlelist
This document is auto-generated from the JSDoc comments in `src/store` by running `npm run api-doc`.
## `articlelist.getItemsByArticleSku`
*Source: `src/store/articlelist/getItemsByArticleSku.js`*
Returns the Stückliste (bundle items) for an article by its SKU.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<Array<{id: number, articleId: number, sku: string, name: string|null, count: number, sort: number}>>`
## `articlelist.setItemsByArticleSku`
*Source: `src/store/articlelist/setItemsByArticleSku.js`*
Sets or clears the Stückliste (bundle items) for an article.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The master article SKU. |
| `[items=[]]` | `Array<{articleId?: number, sku?: string, count?: number, sort?: number}>` | Array of component items. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
`Promise<Array<{id: number, articleId: number, sku: string, name: string|null, count: number, sort: number}>>`