u
This commit is contained in:
@@ -37,7 +37,7 @@ const wh = await store.warehouse.create(googleAuthId, { name: 'Hauptlager' });
|
||||
|
||||
*Source: `src/store/warehouse/delete.js`*
|
||||
|
||||
Deletes a warehouse for the user's selected company, unless referenced in the ledger.
|
||||
Deletes a warehouse for the user's selected company, unless referenced in the ledger or it is the last warehouse while articles have stock tracking enabled.
|
||||
|
||||
**Parameters**
|
||||
|
||||
@@ -53,7 +53,7 @@ Deletes a warehouse for the user's selected company, unless referenced in the le
|
||||
|
||||
**Throws**
|
||||
|
||||
`Error` — If warehouse not found or is in use in the ledger.
|
||||
`Error` — If warehouse not found, in use in the ledger, or is the last warehouse with track_stock articles.
|
||||
|
||||
**Example**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user