Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -3951,7 +3951,8 @@ public class swiftApi { | ... | @@ -3951,7 +3951,8 @@ public class swiftApi { |
3951 | 3951 | ||
3952 | let loyaltyBadge = LoyaltyBadgeModel() | 3952 | let loyaltyBadge = LoyaltyBadgeModel() |
3953 | 3953 | ||
3954 | - let totalCouponDiscount = oldCoupons.reduce(0) { $0 + (Float($1.discount ?? "") ?? 0) } | 3954 | + // let totalCouponDiscount = oldCoupons.reduce(0) { $0 + (Float($1.discount ?? "") ?? 0) } |
3955 | + let totalCouponDiscount = oldCoupons.reduce(0) { $0 + ($1.couponset_data?.final_price ?? 0.0) } | ||
3955 | 3956 | ||
3956 | loyaltyBadge._value = totalCouponDiscount | 3957 | loyaltyBadge._value = totalCouponDiscount |
3957 | loyaltyBadge._couponCount = oldCoupons.count | 3958 | loyaltyBadge._couponCount = oldCoupons.count | ... | ... |
-
Please register or login to post a comment