|
|
|
|
@ -26,10 +26,11 @@ extension Product { |
|
|
|
|
return StoreItem(rawValue: self.id)! |
|
|
|
|
} |
|
|
|
|
var formattedPrice: String { |
|
|
|
|
let ttcPrice = "\(self.displayPrice) TTC" |
|
|
|
|
if let period = self.subscription?.subscriptionPeriod { |
|
|
|
|
return self.displayPrice + " / " + period.unit.label |
|
|
|
|
return "\(ttcPrice) / \(period.unit.label)" |
|
|
|
|
} |
|
|
|
|
return self.displayPrice |
|
|
|
|
return ttcPrice |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -101,6 +102,7 @@ class SubscriptionModel: ObservableObject, StoreDelegate { |
|
|
|
|
} else { |
|
|
|
|
self.totalPrice = product.displayPrice |
|
|
|
|
} |
|
|
|
|
self.totalPrice += " TTC" |
|
|
|
|
} else { |
|
|
|
|
self.totalPrice = "" |
|
|
|
|
} |
|
|
|
|
|