Skip to content

Commit 3d684c1

Browse files
committed
Allow refund patterns with no refund (0% min instead of 1% min)
1 parent 45ec080 commit 3d684c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresqleu/confreg/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ def invoice_status(self):
15491549

15501550
class RefundPattern(models.Model):
15511551
conference = models.ForeignKey(Conference, null=False, blank=False, on_delete=models.CASCADE)
1552-
percent = models.IntegerField(null=False, verbose_name="Percent to refund", validators=[MinValueValidator(1), MaxValueValidator(100)])
1552+
percent = models.IntegerField(null=False, verbose_name="Percent to refund", validators=[MinValueValidator(0), MaxValueValidator(100)])
15531553
fees = models.DecimalField(decimal_places=2, max_digits=10, null=False, verbose_name="Fees not to refund", help_text="This amount will be deducted from the calculated refund amount. Amount should be entered *without* VAT.")
15541554
fromdate = models.DateField(null=True, blank=True, verbose_name="From date", help_text="Suggest for refunds starting from this date")
15551555
todate = models.DateField(null=True, blank=True, verbose_name="To date", help_text="Suggest for refunds until this date")

0 commit comments

Comments
 (0)