fix - change base of pre sale / extra sale on quota stat & total purchase of rancher in Quota usage calculation

This commit is contained in:
2025-11-26 15:50:35 +03:30
parent 817f26519d
commit 65bdb539bc
7 changed files with 51 additions and 26 deletions

View File

@@ -863,6 +863,8 @@ class OrganizationQuotaStats(BaseModel):
('distribution', 'DISTRIBUTION'),
('quota', 'QUOTA'),
), default='distribution')
free_sale_balance = models.PositiveBigIntegerField(default=0)
pre_sale_balance = models.PositiveBigIntegerField(default=0)
def update_amount(self, main_quota=None):
""" calculate total/sold/remaining """