order permissions
This commit is contained in:
@@ -112,7 +112,16 @@ class Product(BaseModel):
|
||||
quota__is_closed=False
|
||||
).aggregate(total_entry=models.Sum('warehouse_entry'))['total_entry'] or 0
|
||||
|
||||
return {'quotas_count': quotas_count, 'total_quotas_weight': total_quotas_weight}
|
||||
data = {
|
||||
'quotas_count': quotas_count,
|
||||
'total_quotas_weight': total_quotas_weight,
|
||||
'total_remaining_quotas_weight': total_remaining_quotas_weight,
|
||||
'total_distributed_weight': total_distributed_weight,
|
||||
'total_sold': total_sold,
|
||||
'total_warehouse_entry': total_warehouse_entry,
|
||||
}
|
||||
|
||||
return data
|
||||
|
||||
def __str__(self):
|
||||
return f'name: {self.name} - type: {self.type}'
|
||||
|
||||
Reference in New Issue
Block a user