u
This commit is contained in:
@@ -320,6 +320,29 @@ const articles = await store.article.listExport(42, null);
|
||||
// => [{ id, sku, name, slug, unitSi, net, taxRate, eans, categoryBreadcrumbs, fullHashes, ... }]
|
||||
```
|
||||
|
||||
## `article.listHistory`
|
||||
|
||||
*Source: `src/store/article/listHistory.js`*
|
||||
|
||||
Lists article history entries for the user's selected company, supporting pagination, date cutoff via seekMonths, and search.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `provider` | `import('../../providers/provider.js').Provider` | |
|
||||
|
||||
**Returns**
|
||||
|
||||
`(googleAuthId: number, opts?: {offset?: number, limit?: number, search?: string, seekMonths?: number}, tx?: object) => Promise<{history: Array<{id: number, date: string, sku: string, name: string|null, historytext: string}>, total: number, unfilteredTotal: number, offset: number, limit: number}>`
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
const res = await store.article.listHistory(googleAuthId, { offset: 0, limit: 50, search: 'hjg', seekMonths: -13 });
|
||||
// => { history: [...], total, unfilteredTotal, offset, limit }
|
||||
```
|
||||
|
||||
## `article.listSearchIndex`
|
||||
|
||||
*Source: `src/store/article/listSearchIndex.js`*
|
||||
|
||||
Reference in New Issue
Block a user