u
This commit is contained in:
@@ -97,7 +97,7 @@ Creates a new article under a given parent category, allocating a SKU and a defa
|
||||
| `input.name` | `string` | The article name. |
|
||||
| `[input.desc]` | `string` | The article description text/HTML. |
|
||||
| `[input.seo]` | `string` | The article SEO text. |
|
||||
| `[input.track_stock=true]` | `boolean|number` | Whether inventory stock is tracked. |
|
||||
| `[input.track_stock=false]` | `boolean|number` | Whether inventory stock is tracked. |
|
||||
| `[tx]` | `object` | Optional transaction to run within. |
|
||||
|
||||
**Returns**
|
||||
@@ -251,7 +251,7 @@ Imports article rows, creating articles by their SKU and returning per-row impor
|
||||
| `[input.rows[].net]` | `number|string` | The POS net price (accepts German decimals). |
|
||||
| `[input.rows[].tax]` | `number|string` | The tax rate in percent (e.g. `19`). |
|
||||
| `[input.rows[].eans]` | `Array<string>|string` | The EANs to set. |
|
||||
| `[input.rows[].track_stock=true]` | `boolean|number` | Whether inventory stock is tracked. |
|
||||
| `[input.rows[].track_stock=false]` | `boolean|number` | Whether inventory stock is tracked. |
|
||||
| `[input.rows[].parentSku]` | `string` | The parent article SKU for a V/K compound link. |
|
||||
| `[input.rows[].deposit]` | `number|string` | The deposit (Pfand) value; currently ignored. |
|
||||
| `[tx]` | `object` | Optional transaction. |
|
||||
@@ -591,7 +591,7 @@ Sets the track_stock flag of an article by its SKU.
|
||||
|
||||
**Throws**
|
||||
|
||||
`Error` — If trackStock is invalid or the article is not found.
|
||||
`Error` — If trackStock is invalid, article not found, or no warehouse exists when enabling.
|
||||
|
||||
**Example**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user