Bug 40836: (QA follow-up) Reduce params
Reduce params given to process method. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitac7861bbe2) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commit69657d03f2) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
e5033e0c60
commit
9b96dc0bb6
|
|
@ -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 -%]
|
||||
|
|
|
|||
Loading…
Reference in New Issue