feat(bda): ajout d'un choix "virement" pour le paiement des tirages

This commit is contained in:
Antoine Groudiev 2024-07-07 12:27:15 +02:00
parent 69976a878a
commit 5ae289d382
4 changed files with 8 additions and 4 deletions

View file

@ -77,12 +77,13 @@ class Migration(migrations.Migration):
"paymenttype",
models.CharField(
blank=True,
max_length=6,
max_length=8,
verbose_name="Moyen de paiement",
choices=[
(b"cash", "Cash"),
(b"cb", b"CB"),
(b"cheque", "Ch\xe8que"),
(b"virement", "Virement"),
(b"autre", "Autre"),
],
),

View file

@ -31,9 +31,10 @@ class Migration(migrations.Migration):
("cash", "Cash"),
("cb", "CB"),
("cheque", "Chèque"),
("virement", "Virement"),
("autre", "Autre"),
],
max_length=6,
max_length=8,
verbose_name="Moyen de paiement",
),
),

View file

@ -21,9 +21,10 @@ class Migration(migrations.Migration):
("cash", "Cash"),
("cb", "CB"),
("cheque", "Chèque"),
("virement", "Virement"),
("autre", "Autre"),
],
max_length=6,
max_length=8,
verbose_name="Moyen de paiement",
),
),

View file

@ -151,6 +151,7 @@ PAYMENT_TYPES = (
("cash", "Cash"),
("cb", "CB"),
("cheque", "Chèque"),
("virement", "Virement"),
("autre", "Autre"),
)
@ -163,7 +164,7 @@ class Attribution(models.Model):
given = models.BooleanField("Donnée", default=False)
paid = models.BooleanField("Payée", default=False)
paymenttype = models.CharField(
"Moyen de paiement", max_length=6, choices=PAYMENT_TYPES, blank=True
"Moyen de paiement", max_length=8, choices=PAYMENT_TYPES, blank=True
)
def __str__(self):