add - org quota stat to inventory_entry / inventory_balance to org_quota_stat

This commit is contained in:
2025-11-19 16:49:00 +03:30
parent f633e24d90
commit 386008b309
6 changed files with 50 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ class InventoryEntry(BaseModel):
related_name="inventory",
null=True
)
org_quota_stat = models.ForeignKey(
product_models.OrganizationQuotaStats,
on_delete=models.CASCADE,
related_name='inventory_entry',
null=True
)
weight = models.PositiveBigIntegerField(default=0)
balance = models.PositiveBigIntegerField(default=0)
lading_number = models.CharField(max_length=50, null=True)