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

@@ -19,6 +19,7 @@ Creates a new quote for the user's selected company with its lines.
| `[body.entityId]` | `number` | The id of the customer entity. |
| `[body.externalNumber]` | `string` | An external (customer) reference number. |
| `[body.lines]` | `Array<{sku?: string, name?: string, pu?: number, amount: number, net: number, rebate?: number, taxrate: number, comment?: string|null}>` | The quote lines. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**
@@ -47,6 +48,7 @@ Deletes a quote by its id within the user's selected company.
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `id` | `number` | The id of the quote to delete. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
@@ -74,6 +76,7 @@ Returns a single quote by its id within the user's selected company.
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `id` | `number` | The id of the quote. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
@@ -101,6 +104,7 @@ Lists the quotes of the user's selected company.
| Name | Type | Description |
| --- | --- | --- |
| `googleAuthId` | `number` | The id of the Google auth user. |
| `[tx]` | `object` | Optional transaction. |
**Returns**
@@ -131,6 +135,7 @@ Updates a quote's header and/or lines.
| `[patch.entityId]` | `number` | The new customer entity id. |
| `[patch.externalNumber]` | `string` | The new external (customer) reference number. |
| `[patch.lines]` | `Array<{sku?: string, name?: string, pu?: number, amount: number, net: number, rebate?: number, taxrate: number, comment?: string|null}>` | The new quote lines. |
| `[tx]` | `object` | Optional transaction to run within. |
**Returns**