fix - quota exception in distribution limit & sale licence and visibility free by org
This commit is contained in:
@@ -446,6 +446,13 @@ class Quota(BaseModel):
|
||||
now = datetime.now()
|
||||
persian_date = jdatetime.datetime.fromgregorian(datetime=now)
|
||||
|
||||
return persian_date.month in self.distribution_mode
|
||||
|
||||
def is_in_sale_licence_time(self):
|
||||
""" check if quota allowed time for sale and... is expired """
|
||||
now = datetime.now()
|
||||
persian_date = jdatetime.datetime.fromgregorian(datetime=now)
|
||||
|
||||
return persian_date.month in self.sale_license
|
||||
|
||||
def soft_delete(self):
|
||||
|
||||
Reference in New Issue
Block a user