add pos sale type to quota

This commit is contained in:
2025-09-24 12:24:16 +03:30
parent b771e55bd9
commit 69daf8d5ef
3 changed files with 26 additions and 1 deletions

View File

@@ -394,6 +394,12 @@ class Quota(BaseModel):
limit_by_herd_size = models.BooleanField(default=True)
is_closed = models.BooleanField(default=False)
closed_at = models.DateTimeField(null=True, blank=True)
pos_sale_type_choices = (
('weight', 'WEIGHT'),
('count', 'COUNT'),
('all', 'ALL'),
)
pos_sale_type = models.CharField(choices=pos_sale_type_choices, max_length=25, default='all')
def __str__(self):
return f"Quota ({self.id}) for {self.product.name}"