mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Add explanations to payment methods, remove 'SU Core' method as now obsolete
This commit is contained in:
18
RIGS/migrations/0051_alter_payment_method.py
Normal file
18
RIGS/migrations/0051_alter_payment_method.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.2.19 on 2023-07-09 21:23
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('RIGS', '0050_event_forum_url'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='payment',
|
||||||
|
name='method',
|
||||||
|
field=models.CharField(blank=True, choices=[('C', 'Cash'), ('I', 'Internal'), ('E', 'External'), ('T', 'TEC Adjustment')], default='', max_length=2),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -688,13 +688,11 @@ class Payment(models.Model, RevisionMixin):
|
|||||||
CASH = 'C'
|
CASH = 'C'
|
||||||
INTERNAL = 'I'
|
INTERNAL = 'I'
|
||||||
EXTERNAL = 'E'
|
EXTERNAL = 'E'
|
||||||
SUCORE = 'SU'
|
|
||||||
ADJUSTMENT = 'T'
|
ADJUSTMENT = 'T'
|
||||||
METHODS = (
|
METHODS = (
|
||||||
(CASH, 'Cash'),
|
(CASH, 'Cash'),
|
||||||
(INTERNAL, 'Internal'),
|
(INTERNAL, 'Internal'),
|
||||||
(EXTERNAL, 'External'),
|
(EXTERNAL, 'External'),
|
||||||
(SUCORE, 'SU Core'),
|
|
||||||
(ADJUSTMENT, 'TEC Adjustment'),
|
(ADJUSTMENT, 'TEC Adjustment'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row pt-3">
|
<div class="row pt-3">
|
||||||
<label class="col-sm-4 col-form-label"
|
<label class="col-sm-4 col-form-label"
|
||||||
for="{{ form.method.id_for_label }}">{{ form.method.label }}</label>
|
for="{{ form.method.id_for_label }}">{{ form.method.label }}
|
||||||
|
<span class="fas fa-info-circle text-info" data-toggle="collapse" data-target="#collapse" aria-expanded="false" aria-controls="collapse"></span>
|
||||||
|
<ul class="collapse" id="collapse">
|
||||||
|
<li>Cash - Self Explanatory</li>
|
||||||
|
<li>Internal - Transfers within the Students' Union only</li>
|
||||||
|
<li>External - All other transfers (<em>including</em> the University)</li>
|
||||||
|
<li>TEC Adjustment - Manual corrections</li>
|
||||||
|
</ul>
|
||||||
|
</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
{% render_field form.method class+="form-control" %}
|
{% render_field form.method class+="form-control" %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user