This commit is contained in:
seb
2026-09-24 23:26:25 +02:00
parent 075b1f0ddc
commit f8f61a1212
40 changed files with 1245 additions and 337 deletions

View File

@@ -23,6 +23,7 @@ Assigns a supplier to an article, optionally creating a purchase price.
| `[input.netPrice]` | `number|null` | Net purchase price. |
| `[input.taxId]` | `number` | The tax id for the purchase price. |
| `[input.taxRate]` | `number` | The tax rate in percent (used if taxId is not provided). |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -57,6 +58,7 @@ Deletes a supplier assignment and cleans up its associated purchase price.
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `id` | `number` | The id of the articlesupplier record. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -84,6 +86,7 @@ Lists the supplier assignments for an article by its SKU.
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `sku` | `string` | The article SKU. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
@@ -113,6 +116,7 @@ Lists article-supplier assignments for a given supplier (entityId) and SKU list,
| `googleAuthId` | `number` | The id of the Google auth user. |
| `entityIdOrOptions` | `number|{entityId?: number, supplierId?: number, skus?: string[]|string}` | The supplier entity id or an options object. |
| `[maybeSkus]` | `string[]|string` | The list of SKUs to filter by (or single SKU string). |
| `[tx]` | `object` | Optional transaction. |
**Returns**
@@ -143,6 +147,7 @@ Reorders the supplier assignments of an article by its SKU.
| `sku` | `string` | The article SKU. |
| `input` | `object` | The reorder input. |
| `input.ids` | `Array<number>` | The articlesupplier ids in their new order. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -180,6 +185,7 @@ Updates an existing supplier assignment and its associated purchase price.
| `[patch.netPrice]` | `number|null` | Net purchase price. |
| `[patch.taxId]` | `number` | The tax id for the purchase price. |
| `[patch.taxRate]` | `number` | The tax rate in percent. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**