0001-family-allow-large-invoice-amount-45713.patch
passerelle/apps/family/migrations/0011_auto_20200803_2326.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
# Generated by Django 1.11.18 on 2020-08-03 21:26 |
|
3 |
from __future__ import unicode_literals |
|
4 | ||
5 |
from django.db import migrations, models |
|
6 | ||
7 | ||
8 |
class Migration(migrations.Migration): |
|
9 | ||
10 |
dependencies = [ |
|
11 |
('family', '0010_auto_20190209_0946'), |
|
12 |
] |
|
13 | ||
14 |
operations = [ |
|
15 |
migrations.AlterField( |
|
16 |
model_name='adult', |
|
17 |
name='sex', |
|
18 |
field=models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1, verbose_name='Sex'), |
|
19 |
), |
|
20 |
migrations.AlterField( |
|
21 |
model_name='child', |
|
22 |
name='sex', |
|
23 |
field=models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1, verbose_name='Sex'), |
|
24 |
), |
|
25 |
migrations.AlterField( |
|
26 |
model_name='genericfamily', |
|
27 |
name='archive', |
|
28 |
field=models.FileField(max_length=256, upload_to='archives', verbose_name='Data Archive'), |
|
29 |
), |
|
30 |
migrations.AlterField( |
|
31 |
model_name='genericfamily', |
|
32 |
name='file_format', |
|
33 |
field=models.CharField(choices=[('native', 'Native'), ('concerto_fondettes', 'Concerto extract from Fondettes'), ('concerto_orleans', 'Concerto extract from Orléans')], default='native', max_length=40, verbose_name='File Format'), |
|
34 |
), |
|
35 |
migrations.AlterField( |
|
36 |
model_name='invoice', |
|
37 |
name='amount', |
|
38 |
field=models.DecimalField(decimal_places=2, default=0, max_digits=8, verbose_name='Amount'), |
|
39 |
), |
|
40 |
migrations.AlterField( |
|
41 |
model_name='invoice', |
|
42 |
name='total_amount', |
|
43 |
field=models.DecimalField(decimal_places=2, default=0, max_digits=8, verbose_name='Total amount'), |
|
44 |
), |
|
45 |
] |
passerelle/apps/family/models.py | ||
---|---|---|
482 | 482 |
issue_date = models.DateField(_('Issue date'), null=True) |
483 | 483 |
pay_limit_date = models.DateField(_('Due date'), null=True) |
484 | 484 |
litigation_date = models.DateField(_('Litigation date'), null=True) |
485 |
total_amount = models.DecimalField(_('Total amount'), max_digits=6,
|
|
485 |
total_amount = models.DecimalField(_('Total amount'), max_digits=8,
|
|
486 | 486 |
decimal_places=2, default=0) |
487 |
amount = models.DecimalField(_('Amount'), max_digits=6, decimal_places=2, default=0)
|
|
487 |
amount = models.DecimalField(_('Amount'), max_digits=8, decimal_places=2, default=0)
|
|
488 | 488 |
payment_date = models.DateTimeField(_('Payment date'), null=True) |
489 | 489 |
paid = models.BooleanField(_('Paid'), default=False) |
490 | 490 |
autobilling = models.BooleanField(_('Autobilling'), default=False) |