@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.
- package/esm2020/core/services/quote-draft.service.mjs +3 -3
- package/esm2020/src/resolvers/quote.resolver.mjs +2 -2
- package/fesm2015/veloceapps-sdk-core.mjs +2 -3
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +1 -1
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +2 -2
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +1 -1
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -573,14 +573,14 @@ class QuoteDraftService {
|
|
|
573
573
|
}
|
|
574
574
|
get hasProducts() {
|
|
575
575
|
const quoteDraft = this.quoteSubj$.value;
|
|
576
|
-
return
|
|
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)
|
|
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;
|