mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
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:
committed by
Nino Righi
parent
9239f8960d
commit
2d654aa63a
@@ -353,7 +353,12 @@ export class ShoppingCartService {
|
|||||||
availability: {
|
availability: {
|
||||||
...rewardSelectionItem.item.availability,
|
...rewardSelectionItem.item.availability,
|
||||||
price: {
|
price: {
|
||||||
value: { value: 0 },
|
value: {
|
||||||
|
value: 0,
|
||||||
|
currency: 'EUR',
|
||||||
|
currencySymbol: '€',
|
||||||
|
},
|
||||||
|
vat: undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
{"version":"3.2.4","results":[[":src/lib/routes.spec.ts",{"duration":0,"failed":false}]]}
|
|
||||||
@@ -75,7 +75,7 @@ export class RewardActionComponent {
|
|||||||
items,
|
items,
|
||||||
useRedemptionPoints: true,
|
useRedemptionPoints: true,
|
||||||
preSelectOption: { option: 'in-store' },
|
preSelectOption: { option: 'in-store' },
|
||||||
disabledPurchaseOptions: ['delivery', 'dig-delivery', 'b2b-delivery'],
|
disabledPurchaseOptions: ['b2b-delivery'],
|
||||||
hideDisabledPurchaseOptions: true,
|
hideDisabledPurchaseOptions: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export class RewardShoppingCartItemComponent {
|
|||||||
tabId: this.#tabId() as unknown as number,
|
tabId: this.#tabId() as unknown as number,
|
||||||
type: 'update',
|
type: 'update',
|
||||||
useRedemptionPoints: true,
|
useRedemptionPoints: true,
|
||||||
disabledPurchaseOptions: ['delivery', 'dig-delivery', 'b2b-delivery'],
|
disabledPurchaseOptions: ['b2b-delivery'],
|
||||||
hideDisabledPurchaseOptions: true,
|
hideDisabledPurchaseOptions: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user