u
This commit is contained in:
@@ -44,7 +44,7 @@ Creates a new company together with its root category, POS customer group, defau
|
||||
| --- | --- | --- |
|
||||
| `input` | `object` | The company creation input. |
|
||||
| `input.iso639` | `string` | The ISO 639 language code for the company. |
|
||||
| `input.name` | `string` | The company name (must be unique). |
|
||||
| `input.name` | `string` | The company name. |
|
||||
| `input.taxrate` | `number` | The standard tax rate in percent. |
|
||||
| `input.reducedtaxrate` | `number` | The reduced tax rate in percent. |
|
||||
| `input.googleAuthId` | `number` | The id of the Google auth user to link. |
|
||||
@@ -54,10 +54,6 @@ Creates a new company together with its root category, POS customer group, defau
|
||||
|
||||
`Promise<{id: number, rootCategoryId: number, languageId: number, taxrateId: number, reducedtaxrateId: number, taxfreerateId: number, posCustomerGroupId: number}>` — The created company ids.
|
||||
|
||||
**Throws**
|
||||
|
||||
`Error` — If the company name is already taken.
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
@@ -208,7 +204,7 @@ Updates an existing company's name, language and tax rates.
|
||||
| `id` | `number` | The id of the company to update. |
|
||||
| `input` | `object` | The update input. |
|
||||
| `input.iso639` | `string` | The ISO 639 language code. |
|
||||
| `input.name` | `string` | The new company name (must be unique). |
|
||||
| `input.name` | `string` | The new company name. |
|
||||
| `input.taxrate` | `number` | The standard tax rate in percent. |
|
||||
| `input.reducedtaxrate` | `number` | The reduced tax rate in percent. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
@@ -219,7 +215,7 @@ Updates an existing company's name, language and tax rates.
|
||||
|
||||
**Throws**
|
||||
|
||||
`Error` — If the company is not found or the name is taken.
|
||||
`Error` — If the company is not found.
|
||||
|
||||
**Example**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user