-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sponsorship payment terms(due date) to be changed
Allow the due date to be configured on an individual sponsorship level, both specifying a number-of-days-to-pay and a hard final date. Closes #170
- Loading branch information
Showing
5 changed files
with
66 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.2.22 on 2024-11-15 22:27 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('confsponsor', '0032_sponsorshipbenefit_include_in_data'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='sponsorshiplevel', | ||
name='paymentdueby', | ||
field=models.DateField(blank=True, help_text='The last acceptable due date for payments. If payment terms go beyond this date then the invoice is due at this date', null=True, verbose_name='The latest date the payment is due by'), | ||
), | ||
migrations.RunSQL( | ||
""" | ||
update confsponsor_sponsorshiplevel set paymentdueby=conf.startdate-'5 days'::interval from confreg_conference conf | ||
where conf.id = conference_id | ||
""", | ||
"" | ||
), | ||
migrations.AlterField( | ||
model_name='sponsorshiplevel', | ||
name='paymentdueby', | ||
field=models.DateField(blank=False, help_text='The last acceptable due date for payments. If payment terms go beyond this date then the invoice is due at this date', null=False, verbose_name='The latest date the payment is due by'), | ||
), | ||
migrations.AddField( | ||
model_name='sponsorshiplevel', | ||
name='paymentdays', | ||
field=models.IntegerField(default=30, null=False, verbose_name='Number of days until payment is due'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters