Bug 40836: (QA follow-up) Reduce params

Reduce params given to process method.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ac7861bbe2)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jan Kissig 2025-11-18 13:39:26 +00:00 committed by Paul Derscheid
parent 66dde68869
commit 69657d03f2
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 6 additions and 6 deletions

View File

@ -1,16 +1,16 @@
[%- BLOCK account_type_description -%]
<span>
[%- IF account.credit_type_code -%]
[%- PROCESS credit_type_description credit_type_code = account.credit_type_code account=account -%]
[%- PROCESS credit_type_description account=account -%]
[%- ELSIF account.debit_type_code -%]
[%- PROCESS debit_type_description debit_type_code = account.debit_type_code account=account -%]
[%- PROCESS debit_type_description account=account -%]
[%- END -%]
[%- PROCESS account_status_description account=account -%]
</span>
[%- END -%]
[%- BLOCK debit_type_description -%]
[%- SWITCH debit_type_code -%]
[%- SWITCH account.debit_type_code -%]
[%- CASE 'ACCOUNT' -%]
<span>Account creation fee</span>
@ -49,14 +49,14 @@
>[%- IF account && account.debit_type && account.debit_type.description -%]
[% account.debit_type.description | html %]
[%- ELSE -%]
[% debit_type_code | html %]
[% account.debit_type_code | html %]
[%- END -%]
</span>
[%- END -%]
[%- END -%]
[%- BLOCK credit_type_description -%]
[%- SWITCH credit_type_code -%]
[%- SWITCH account.credit_type_code -%]
[%- CASE 'CANCELLATION' -%]
<span>Cancelled charge</span>
@ -85,7 +85,7 @@
>[%- IF account && account.credit_type && account.credit_type.description -%]
[% account.credit_type.description | html %]
[%- ELSE -%]
[% credit_type_code | html %]
[% account.credit_type_code | html %]
[%- END -%]
</span>
[%- END -%]