u
This commit is contained in:
@@ -574,7 +574,7 @@ const article = await store.article.setPricesBySku(42, 'SKU-1', [{ gross: 11.9,
|
||||
|
||||
*Source: `src/store/article/setTrackStockBySku.js`*
|
||||
|
||||
Sets the track_stock flag of an article by its SKU.
|
||||
Sets the track_stock flag of an article by its SKU. If stock tracking is being disabled (1 -> 0), all non-zero warehouse stocks are adjusted to 0 on the ledger before disabling tracking.
|
||||
|
||||
**Parameters**
|
||||
|
||||
@@ -593,13 +593,6 @@ Sets the track_stock flag of an article by its SKU.
|
||||
|
||||
`Error` — If trackStock is invalid, article not found, or no warehouse exists when enabling.
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
const article = await store.article.setTrackStockBySku(42, 'SKU-1', true);
|
||||
// => { id, sku, name, track_stock, ... }
|
||||
```
|
||||
|
||||
## `article.setWeightBySku`
|
||||
|
||||
*Source: `src/store/article/setWeightBySku.js`*
|
||||
|
||||
Reference in New Issue
Block a user