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

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