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>
(cherry picked from commit 69657d03f2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jan Kissig 2025-11-18 13:39:26 +00:00 committed by Fridolin Somers
parent e5033e0c60
commit 9b96dc0bb6
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
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>
[%- CASE 'ACCOUNT_RENEW' -%]<span>Account renewal fee</span>
[%- CASE 'ARTICLE_REQUEST' -%]<span>Article request fee</span>
@ -32,14 +32,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>
[%- CASE 'CREDIT' -%]<span>Credit</span>
[%- CASE 'DISCOUNT' -%]<span>Discount</span>
@ -56,7 +56,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 -%]