feat(bda): ajout d'un choix "virement" pour le paiement des tirages
This commit is contained in:
parent
69976a878a
commit
5ae289d382
4 changed files with 8 additions and 4 deletions
|
@ -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"),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -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",
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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",
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue