1.2 KiB
1.2 KiB
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}>>