8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Valeur par défaut nulle pour le minimum de solde.

This commit is contained in:
Hugo LEVY-FALK 2018-07-05 15:23:10 +02:00
parent 17f627c4c4
commit ab6babd45f
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-07-05 13:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotisations', '0039_auto_20180704_1147'),
]
operations = [
migrations.AlterField(
model_name='balancepayment',
name='minimum_balance',
field=models.DecimalField(decimal_places=2, default=0, help_text='The minimal amount of money allowed for the balance at the end of a payment. You can specify negative amount.', max_digits=5, verbose_name='Minimum balance'),
),
]

View file

@ -27,6 +27,7 @@ class BalancePayment(PaymentMethodMixin, models.Model):
), ),
max_digits=5, max_digits=5,
decimal_places=2, decimal_places=2,
default=0,
) )
maximum_balance = models.DecimalField( maximum_balance = models.DecimalField(
verbose_name=_l("Maximum balance"), verbose_name=_l("Maximum balance"),