From e5462a0063046033839b928a8a08d6252283acf9 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 5 Nov 2024 12:19:39 -0500 Subject: [PATCH] membershipworks: Add some help text to event materials fee fields --- ...4_alter_eventext_materials_fee_and_more.py | 31 +++++++++++++++++++ membershipworks/models.py | 11 +++++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 membershipworks/migrations/0004_alter_eventext_materials_fee_and_more.py diff --git a/membershipworks/migrations/0004_alter_eventext_materials_fee_and_more.py b/membershipworks/migrations/0004_alter_eventext_materials_fee_and_more.py new file mode 100644 index 0000000..9ba0ad4 --- /dev/null +++ b/membershipworks/migrations/0004_alter_eventext_materials_fee_and_more.py @@ -0,0 +1,31 @@ +# Generated by Django 5.1.3 on 2024-11-07 05:40 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("membershipworks", "0003_transaction_unique_sid_timestamp"), + ] + + operations = [ + migrations.AlterField( + model_name="eventext", + name="materials_fee", + field=models.DecimalField( + blank=True, + decimal_places=4, + help_text="Please enter 0 if there was no materials fee", + max_digits=13, + null=True, + ), + ), + migrations.AlterField( + model_name="eventext", + name="materials_fee_included_in_price", + field=models.BooleanField( + help_text="Did CMS charge the materials fee via MembershipWorks? Use 'No' if the materials fee was collected via cash or other means. Not used if materials fee is 0.", + null=True, + ), + ), + ] diff --git a/membershipworks/models.py b/membershipworks/models.py index 5e7a681..2e601ac 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -564,9 +564,16 @@ class EventExt(Event): EventInstructor, on_delete=models.PROTECT, null=True, blank=True ) materials_fee = models.DecimalField( - max_digits=13, decimal_places=4, null=True, blank=True + max_digits=13, + decimal_places=4, + null=True, + blank=True, + help_text="Please enter 0 if there was no materials fee", + ) + materials_fee_included_in_price = models.BooleanField( + null=True, + help_text="Did CMS charge the materials fee via MembershipWorks? Use 'No' if the materials fee was collected via cash or other means. Not used if materials fee is 0.", ) - materials_fee_included_in_price = models.BooleanField(null=True) instructor_percentage = models.DecimalField( max_digits=5, decimal_places=4, default=0.5 )