This commit is contained in:
seb
2026-10-16 12:35:07 +02:00
parent 70e3ae7a87
commit 796f6a3272
23 changed files with 193 additions and 38 deletions

View File

@@ -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**