import - qoutas count in inventory entry dashbiard
This commit is contained in:
@@ -532,14 +532,14 @@ class QuotaViewSet(BaseViewSet, SoftDeleteMixin, QuotaDashboardService, viewsets
|
||||
base_query['product_id'] = product_id
|
||||
|
||||
queryset = self.filter_query(
|
||||
self.get_queryset(visibility_by_org_scope=True).filter(
|
||||
is_closed=False)) # return by search param or all objects
|
||||
self.get_queryset(
|
||||
visibility_by_org_scope=True).filter(
|
||||
is_closed=False
|
||||
)) # return by search param or all objects
|
||||
|
||||
# paginate queryset
|
||||
page = self.paginate_queryset(
|
||||
queryset.filter(
|
||||
Q(assigned_organizations=org) |
|
||||
Q(registerer_organization=org),
|
||||
org_quota_stats__inventory_received__gt=0,
|
||||
**base_query
|
||||
).order_by('-modify_date').distinct()
|
||||
|
||||
Reference in New Issue
Block a user