u
This commit is contained in:
@@ -14,6 +14,7 @@ import { importCategories } from './companyImport/categoryImporter.js';
|
||||
import { importBrands } from './companyImport/brandImporter.js';
|
||||
import { importArticles } from './companyImport/articleImporter.js';
|
||||
import { importVariants } from './companyImport/variantImporter.js';
|
||||
import { importPfand, extractPfandValue, formatPfandSku, formatPfandName } from './companyImport/pfandImporter.js';
|
||||
import { importArticleImages } from './companyImport/articleImageImporter.js';
|
||||
import { importOrders } from './companyImport/orderImporter.js';
|
||||
// #endregion
|
||||
@@ -27,6 +28,10 @@ export {
|
||||
computeSkeleHash,
|
||||
normalizeAttributeName,
|
||||
extractVariantValue,
|
||||
extractPfandValue,
|
||||
formatPfandSku,
|
||||
formatPfandName,
|
||||
importPfand,
|
||||
};
|
||||
// #endregion
|
||||
|
||||
@@ -151,8 +156,19 @@ export async function executeCompanyImport({
|
||||
});
|
||||
// #endregion
|
||||
|
||||
// MARK: - Phase 5: Article Pictures
|
||||
// #region Phase 5: Article Pictures
|
||||
// MARK: - Phase 5: Pfand / Deposit Options
|
||||
// #region Phase 5: Pfand
|
||||
const pfandResult = await importPfand({
|
||||
store,
|
||||
googleAuthId,
|
||||
includedArticles,
|
||||
hauptDashId: categoriesResult.hauptDashId,
|
||||
parentSkus: variantsResult.parentSkus,
|
||||
});
|
||||
// #endregion
|
||||
|
||||
// MARK: - Phase 6: Article Pictures
|
||||
// #region Phase 6: Article Pictures
|
||||
const imagesResult = await importArticleImages({
|
||||
store,
|
||||
googleAuthId,
|
||||
@@ -161,8 +177,8 @@ export async function executeCompanyImport({
|
||||
});
|
||||
// #endregion
|
||||
|
||||
// MARK: - Phase 6: Orders / Receipts
|
||||
// #region Phase 6: Orders / Receipts
|
||||
// MARK: - Phase 7: Orders / Receipts
|
||||
// #region Phase 7: Orders / Receipts
|
||||
const ordersResult = await importOrders({
|
||||
store,
|
||||
googleAuthId,
|
||||
@@ -190,6 +206,9 @@ export async function executeCompanyImport({
|
||||
articlesImported: articlesResult.articlesImported,
|
||||
articlesUpdated: articlesResult.articlesUpdated,
|
||||
variantsLinked: variantsResult.variantsLinked,
|
||||
pfandArticlesCreated: pfandResult.pfandArticlesCreated,
|
||||
pfandArticlesUpdated: pfandResult.pfandArticlesUpdated,
|
||||
pfandOptionsLinked: pfandResult.pfandOptionsLinked,
|
||||
articlePictures: imagesResult.totalImagesImported,
|
||||
ordersTotal: totalReceiptsCount,
|
||||
ordersImported: ordersResult.ordersImported,
|
||||
|
||||
Reference in New Issue
Block a user