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", "paymenttype",
models.CharField( models.CharField(
blank=True, blank=True,
max_length=6, max_length=8,
verbose_name="Moyen de paiement", verbose_name="Moyen de paiement",
choices=[ choices=[
(b"cash", "Cash"), (b"cash", "Cash"),
(b"cb", b"CB"), (b"cb", b"CB"),
(b"cheque", "Ch\xe8que"), (b"cheque", "Ch\xe8que"),
(b"virement", "Virement"),
(b"autre", "Autre"), (b"autre", "Autre"),
], ],
), ),

View file

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

View file

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

View file

@ -151,6 +151,7 @@ PAYMENT_TYPES = (
("cash", "Cash"), ("cash", "Cash"),
("cb", "CB"), ("cb", "CB"),
("cheque", "Chèque"), ("cheque", "Chèque"),
("virement", "Virement"),
("autre", "Autre"), ("autre", "Autre"),
) )
@ -163,7 +164,7 @@ class Attribution(models.Model):
given = models.BooleanField("Donnée", default=False) given = models.BooleanField("Donnée", default=False)
paid = models.BooleanField("Payée", default=False) paid = models.BooleanField("Payée", default=False)
paymenttype = models.CharField( 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): def __str__(self):