@veloceapps/sdk 8.0.0-121 → 8.0.0-122

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;