fix - pos device agencies on new system with quota stat

This commit is contained in:
2025-12-03 15:03:24 +03:30
parent 82683d4d71
commit c2bb50d9f8
4 changed files with 57 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ from django.db import models
from apps.authentication.models import Organization, City, Province
from apps.authorization.models import UserRelations
from apps.core.models import BaseModel
from apps.product.models import Product, Broker, QuotaBrokerValue, QuotaDistribution
from apps.product.models import Product, Broker, QuotaBrokerValue, QuotaDistribution, OrganizationQuotaStats
class ProviderCompany(BaseModel):
@@ -292,6 +292,12 @@ class StakeHolderShareAmount(BaseModel):
related_name='holders_share_amount',
null=True
)
org_quota_stat = models.ForeignKey(
OrganizationQuotaStats,
on_delete=models.CASCADE,
related_name='holders_share_amount',
null=True
)
stakeholders = models.ForeignKey(
StakeHolders,
on_delete=models.CASCADE,