Skip to content

Commit 1b18f72

Browse files
fix: updated transfer labels for BCeID users according to new Act
This commit makes the following updates to the New Transfer page for BCeID users, ensuring alignment with the new Act: - Change the dropdown label from 'Select a Fuel Supplier' to 'Select an Organization'. - The signing authority declaration statement is now updated to: 'I confirm that records evidencing each matter reported under section 17 of the Low Carbon Fuel (General) Regulation are available on request.' Additionally, a database migration is added to apply the signing authority declaration statement label change within the existing record. Closes #2690
1 parent e8233a6 commit 1b18f72

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import logging
2+
from django.db import migrations
3+
4+
def update_sign_auth_assertion(apps, schema_editor):
5+
"""
6+
Updates the signing authority declaration statement
7+
8+
Previous label:
9+
"I confirm that records evidencing each matter reported under section 11.11 (2) of the
10+
Regulation are available on request."
11+
12+
New label:
13+
"I confirm that records evidencing each matter reported under section 17 of the Low Carbon
14+
Fuel (General) Regulation are available on request."
15+
"""
16+
signing_authority_assertion = apps.get_model('api', 'SigningAuthorityAssertion')
17+
try:
18+
assertion = signing_authority_assertion.objects.get(id=1)
19+
assertion.description = (
20+
'I confirm that records evidencing each matter reported under section 17 '
21+
'of the Low Carbon Fuel (General) Regulation are available on request.'
22+
)
23+
assertion.save()
24+
except signing_authority_assertion.DoesNotExist:
25+
logging.error('Failed to update SigningAuthorityAssertion: No entry found with id "1".')
26+
27+
class Migration(migrations.Migration):
28+
"""
29+
Attaches the update function to the migration operations
30+
"""
31+
dependencies = [
32+
('api', '0011_report_history_grouping'),
33+
]
34+
35+
operations = [
36+
migrations.RunPython(update_sign_auth_assertion),
37+
]

frontend/src/credit_transfers/components/CreditTransferFormDetails.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class CreditTransferFormDetails extends Component {
5151
onChange={this.props.handleInputChange}
5252
required="required"
5353
>
54-
<option key="0" value="" default>Select a Fuel Supplier</option>
54+
<option key="0" value="" default>Select an Organization</option>
5555
{this.props.fuelSuppliers &&
5656
this.props.fuelSuppliers.map(organization => (
5757
this.props.fields.initiator.id !== organization.id &&

0 commit comments

Comments
 (0)