first move for product statistics

This commit is contained in:
2025-08-02 11:04:46 +03:30
parent 62b7098486
commit 699b5ab6fd
6 changed files with 40 additions and 6 deletions

View File

@@ -114,7 +114,8 @@ class Product(BaseModel):
).aggregate(total_entry=models.Sum('warehouse_entry'))['total_entry'] or 0
data = {
'product': self.id,
'product_id': self.id,
'product_name': self.name,
'quotas_count': quotas_count,
'total_quotas_weight': total_quotas_weight,
'total_remaining_quotas_weight': total_remaining_quotas_weight,