Files
dashlibstorage/API.articlelist.md
2026-09-29 20:10:49 +02:00

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