Merged PR 1986: fix(checkout): add complete price structure for reward delivery orders

Commits Summary

  Commit 1: fix(checkout): add complete price structure for reward delivery orders

  File: libs/checkout/data-access/src/lib/services/shopping-cart.service.ts
  - Fixed incomplete price object when adding reward items to cart
  - Added currency (EUR) and currencySymbol (€) to price value
  - This resolves the API error: "Error converting value 0 to type PriceDTO"

  Commit 2: feat(checkout): enable delivery options for reward shop items

  Files:
  - libs/checkout/feature/reward-catalog/src/lib/reward-action/reward-action.component.ts
  - libs/checkout/feature/reward-shopping-cart/src/lib/reward-shopping-cart-item/reward-shopping-cart-item.component.ts
  - libs/checkout/feature/reward-order-confirmation/src/lib/reward-order-confirmation.component.ts

  Changes:
  - Re-enabled 'delivery' and 'dig-delivery' purchase options for reward items
  - Removed unused import
  - Applied code formatting

Related work items: #5405
This commit is contained in:
Lorenz Hilpert
2025-10-27 11:14:14 +00:00
committed by Nino Righi
parent 9239f8960d
commit 2d654aa63a
4 changed files with 8 additions and 4 deletions

View File

@@ -353,7 +353,12 @@ export class ShoppingCartService {
availability: {
...rewardSelectionItem.item.availability,
price: {
value: { value: 0 },
value: {
value: 0,
currency: 'EUR',
currencySymbol: '€',
},
vat: undefined,
},
},
},

View File

@@ -1 +0,0 @@
{"version":"3.2.4","results":[[":src/lib/routes.spec.ts",{"duration":0,"failed":false}]]}

View File

@@ -75,7 +75,7 @@ export class RewardActionComponent {
items,
useRedemptionPoints: true,
preSelectOption: { option: 'in-store' },
disabledPurchaseOptions: ['delivery', 'dig-delivery', 'b2b-delivery'],
disabledPurchaseOptions: ['b2b-delivery'],
hideDisabledPurchaseOptions: true,
});

View File

@@ -83,7 +83,7 @@ export class RewardShoppingCartItemComponent {
tabId: this.#tabId() as unknown as number,
type: 'update',
useRedemptionPoints: true,
disabledPurchaseOptions: ['delivery', 'dig-delivery', 'b2b-delivery'],
disabledPurchaseOptions: ['b2b-delivery'],
hideDisabledPurchaseOptions: true,
});