fix - set pre sale/free sale in property & add to quota model

This commit is contained in:
2025-11-11 16:30:05 +03:30
parent 1c947fc6eb
commit 75b4fba2ff
10 changed files with 218 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ class QuotaDistributionViewSet(viewsets.ModelViewSet, DynamicSearchMixin, POSDev
Q(assigned_organization=organization),
Q(quota__is_closed=False),
(
Q(pre_sale=True) | Q(free_sale=True) | Q(warehouse_entry__gt=0)
Q(quota__pre_sale=True) | Q(quota__free_sale=True) | Q(warehouse_entry__gt=0)
)
).order_by('-create_date')