8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-09 03:16:25 +00:00

Fix ajout moyen de paiement

This commit is contained in:
Gabriel Detraz 2017-08-19 00:58:42 +02:00 committed by root
parent e29dcbd5e3
commit 5057fc0e7e
3 changed files with 43 additions and 3 deletions

View 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),
),
]

View 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),
),
]

View file

@ -157,12 +157,12 @@ class Banque(models.Model):
class Paiement(models.Model): class Paiement(models.Model):
PRETTY_NAME = "Moyens de paiement" PRETTY_NAME = "Moyens de paiement"
PAYMENT_TYPES = ( PAYMENT_TYPES = (
('check', 'Chèque'), (0, 'Autre'),
(None, 'Autre'), (1, 'Chèque'),
) )
moyen = models.CharField(max_length=255) 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): def __str__(self):
return self.moyen return self.moyen