AllProductsTransportViewSet
This commit is contained in:
@@ -4776,6 +4776,8 @@ class AllProductsTransportDashboardView(APIView):
|
||||
|
||||
if destination_province and destination_province != 'undefined':
|
||||
bars = bars.filter(destination_province=destination_province)
|
||||
if destination_province=='مرکزی':
|
||||
bars = bars.filter(destination_province='مركزي')
|
||||
|
||||
|
||||
aggregation = bars.aggregate(
|
||||
@@ -4838,6 +4840,8 @@ class AllProductsTransportDashboardView(APIView):
|
||||
|
||||
if destination_province and destination_province != 'undefined':
|
||||
bars = bars.filter(destination_province=destination_province)
|
||||
if destination_province=='مرکزی':
|
||||
bars = bars.filter(destination_province='مركزي')
|
||||
|
||||
aggregation = bars.aggregate(
|
||||
total=Sum('quantity'),
|
||||
|
||||
Reference in New Issue
Block a user