@pinelab/vendure-plugin-qls-fulfillment 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.6.0 (2026-03-09)
2
+
3
+ - Skip syncing disabled products/variants to QLS
4
+
1
5
  # 1.5.1 (2026-02-18)
2
6
 
3
7
  - Pass error message to `QlsVariantSyncFailedEvent` instead of the error object.
@@ -282,6 +282,16 @@ let QlsProductService = class QlsProductService {
282
282
  core_1.Logger.info(`Variant '${variant.sku}' excluded from sync to QLS.`, constants_1.loggerCtx);
283
283
  return 'not-changed';
284
284
  }
285
+ if (!variant.enabled || !variant.product?.enabled) {
286
+ const disabledEntity = !variant.enabled ? 'Variant' : 'Product';
287
+ if (existingProduct) {
288
+ core_1.Logger.warn(`${disabledEntity} '${variant.sku}' is disabled but exists in QLS (product ID ${existingProduct.id}). Skipping sync.`, constants_1.loggerCtx);
289
+ }
290
+ else {
291
+ core_1.Logger.info(`${disabledEntity} '${variant.sku}' is disabled, skipping sync to QLS.`, constants_1.loggerCtx);
292
+ }
293
+ return 'not-changed';
294
+ }
285
295
  let qlsProduct = existingProduct;
286
296
  let createdOrUpdated = 'not-changed';
287
297
  const { additionalEANs, ...additionalVariantFields } = this.options.getAdditionalVariantFields(ctx, variant);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-qls-fulfillment",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Vendure plugin to fulfill orders via QLS.",
5
5
  "keywords": [
6
6
  "fulfillment",