add condition for EBOUTIC counter type in subscription creation

This commit is contained in:
NaNoMelo
2025-10-01 14:37:41 +02:00
parent 03f53e921b
commit 500af2f73a

View File

@@ -881,6 +881,7 @@ class Selling(models.Model):
if (
self.product
and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_ONE_SEMESTER
and self.counter.type == "EBOUTIC"
):
sub = Subscription(
member=user,
@@ -904,6 +905,7 @@ class Selling(models.Model):
elif (
self.product
and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_TWO_SEMESTERS
and self.counter.type == "EBOUTIC"
):
sub = Subscription(
member=user,