@veloceapps/sdk 8.0.0-121 → 8.0.0-123

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.
@@ -573,14 +573,14 @@ class QuoteDraftService {
573
573
  }
574
574
  get hasProducts() {
575
575
  const quoteDraft = this.quoteSubj$.value;
576
- return Boolean(quoteDraft && quoteDraft.currentState.length > 0);
576
+ return this.filterByActivePriceList(quoteDraft?.currentState || []).some(li => !li.assetId && !li.openOrderLineItemId);
577
577
  }
578
578
  get hasAssets$() {
579
579
  return this.quoteSubj$.pipe(map(() => this.hasAssets));
580
580
  }
581
581
  get hasAssets() {
582
582
  const quoteDraft = this.quoteSubj$.value;
583
- return quoteDraft?.currentState.some(li => li.assetId || li.openOrderLineItemId) ?? false;
583
+ return this.filterByActivePriceList(quoteDraft?.currentState || []).some(li => li.assetId || li.openOrderLineItemId);
584
584
  }
585
585
  constructor(context, quoteApiService, priceApiService, integrationState) {
586
586
  this.context = context;