mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Fix ajout moyen de paiement
This commit is contained in:
parent
e29dcbd5e3
commit
5057fc0e7e
3 changed files with 43 additions and 3 deletions
20
cotisations/migrations/0019_auto_20170819_0055.py
Normal file
20
cotisations/migrations/0019_auto_20170819_0055.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-08-18 22:55
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cotisations', '0018_paiement_type_paiement'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='paiement',
|
||||
name='type_paiement',
|
||||
field=models.CharField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0, max_length=255),
|
||||
),
|
||||
]
|
20
cotisations/migrations/0020_auto_20170819_0057.py
Normal file
20
cotisations/migrations/0020_auto_20170819_0057.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.7 on 2017-08-18 22:57
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cotisations', '0019_auto_20170819_0055'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='paiement',
|
||||
name='type_paiement',
|
||||
field=models.IntegerField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0, max_length=255),
|
||||
),
|
||||
]
|
|
@ -157,12 +157,12 @@ class Banque(models.Model):
|
|||
class Paiement(models.Model):
|
||||
PRETTY_NAME = "Moyens de paiement"
|
||||
PAYMENT_TYPES = (
|
||||
('check', 'Chèque'),
|
||||
(None, 'Autre'),
|
||||
(0, 'Autre'),
|
||||
(1, 'Chèque'),
|
||||
)
|
||||
|
||||
moyen = models.CharField(max_length=255)
|
||||
type_paiement = models.CharField(choices=PAYMENT_TYPES, max_length=255)
|
||||
type_paiement = models.IntegerField(choices=PAYMENT_TYPES, default=0, max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
return self.moyen
|
||||
|
|
Loading…
Reference in a new issue