adds TTC for price

newoffer2025
Laurent 6 months ago
parent b84f519929
commit 432e78f727
  1. 6
      PadelClub/Views/Tournament/Subscription/SubscriptionView.swift

@ -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 = ""
}

Loading…
Cancel
Save