add new fields to incentive assignment
This commit is contained in:
@@ -449,6 +449,13 @@ class QuotaIncentiveAssignment(BaseModel):
|
||||
)
|
||||
heavy_value = models.PositiveBigIntegerField(default=0)
|
||||
light_value = models.PositiveBigIntegerField(default=0)
|
||||
livestock_type = models.ForeignKey(
|
||||
LiveStockType,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='incentive_plans',
|
||||
null=True
|
||||
)
|
||||
quantity_kg = models.PositiveBigIntegerField(default=0)
|
||||
|
||||
def __str__(self):
|
||||
return f"Quota ({self.quota.id}) for {self.incentive_plan.name}"
|
||||
|
||||
Reference in New Issue
Block a user