This commit is contained in:
seb
2026-10-13 13:21:11 +02:00
parent a5886b7c92
commit 8a626b17fc
15 changed files with 541 additions and 83 deletions

View File

@@ -127,6 +127,24 @@ const orders = await store.order.list(42);
// => [{ id, number, type, entityId, externalNumber, date, createdAt, lines: [...] }]
```
## `order.rebuildSummaries`
*Source: `src/store/order/rebuildSummaries.js`*
Rebuilds the `ordersummary` table for the user's selected company.
**Parameters**
| Name | Type | Description |
| --- | --- | --- |
| `provider` | `import('../../providers/provider.js').DatabaseProvider` | |
## `order.syncSummary`
*Source: `src/store/order/syncSummary.js`*
Centralized sync and rebuild logic for the materialized `ordersummary` table.
## `order.update`
*Source: `src/store/order/update.js`*