u
This commit is contained in:
@@ -138,6 +138,11 @@ export async function executeCompanyImport({
|
|||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// MARK: - Phase 3: Articles (base data, variants, pfand, pictures)
|
// MARK: - Phase 3: Articles (base data, variants, pfand, pictures)
|
||||||
|
// Articles with stock tracking require at least one warehouse; create a default one implicitly.
|
||||||
|
const existingWarehouses = await store.warehouse.list(googleAuthId);
|
||||||
|
if (!existingWarehouses || existingWarehouses.length === 0) {
|
||||||
|
await store.warehouse.create(googleAuthId, { name: 'Standardlager' });
|
||||||
|
}
|
||||||
// #region Phase 3: Articles
|
// #region Phase 3: Articles
|
||||||
const articlesResult = await importArticles({
|
const articlesResult = await importArticles({
|
||||||
store,
|
store,
|
||||||
|
|||||||
Reference in New Issue
Block a user