Browse Source

[fix] Increase maximum amount

ljf 7 years ago
parent
commit
2db387cb50
1 changed files with 4 additions and 4 deletions
  1. 4 4
      coin/billing/models.py

+ 4 - 4
coin/billing/models.py

@@ -378,7 +378,7 @@ class Invoice(Bill):
 class InvoiceDetail(models.Model):
 
     label = models.CharField(max_length=100)
-    amount = models.DecimalField(max_digits=5, decimal_places=2,
+    amount = models.DecimalField(max_digits=8, decimal_places=2,
                                  verbose_name='montant')
     quantity = models.DecimalField(null=True, verbose_name='quantité',
                                    default=1.0, decimal_places=2, max_digits=4)
@@ -441,7 +441,7 @@ class Donation(Bill):
         verbose_name = 'don'
 
 class MembershipFee(Bill):
-    _amount = models.DecimalField(null=False, max_digits=5, decimal_places=2,
+    _amount = models.DecimalField(null=False, max_digits=8, decimal_places=2,
                                  default=settings.MEMBER_DEFAULT_COTISATION,
                                  verbose_name='montant', help_text='en €')
     start_date = models.DateField(
@@ -496,7 +496,7 @@ class Payment(models.Model):
                                     default='transfer',
                                     choices=PAYMENT_MEAN_CHOICES,
                                     verbose_name='moyen de paiement')
-    amount = models.DecimalField(max_digits=6, decimal_places=2, null=True,
+    amount = models.DecimalField(max_digits=8, decimal_places=2, null=True,
                                  verbose_name='montant')
     date = models.DateField(default=datetime.date.today)
     bill = models.ForeignKey(Bill, verbose_name='facture associée', null=True,
@@ -586,7 +586,7 @@ class PaymentAllocation(models.Model):
     payment = models.ForeignKey(Payment, verbose_name='facture associée',
                                 null=False, blank=False,
                                 related_name='allocations')
-    amount = models.DecimalField(max_digits=5, decimal_places=2, null=True,
+    amount = models.DecimalField(max_digits=8, decimal_places=2, null=True,
                                  verbose_name='montant')