Manos Chorianopoulos

fix oldCoupons final_price total value

......@@ -3951,7 +3951,8 @@ public class swiftApi {
let loyaltyBadge = LoyaltyBadgeModel()
let totalCouponDiscount = oldCoupons.reduce(0) { $0 + (Float($1.discount ?? "") ?? 0) }
// let totalCouponDiscount = oldCoupons.reduce(0) { $0 + (Float($1.discount ?? "") ?? 0) }
let totalCouponDiscount = oldCoupons.reduce(0) { $0 + ($1.couponset_data?.final_price ?? 0.0) }
loyaltyBadge._value = totalCouponDiscount
loyaltyBadge._couponCount = oldCoupons.count
......