Bugzilla – Attachment 116261 Details for
Bug 26734
Convert accounts (monetary) notices to use GetPreparedLetter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26734: Update sample notices to use standardised syntax
Bug-26734-Update-sample-notices-to-use-standardise.patch (text/plain), 7.05 KB, created by
Martin Renvoize (ashimema)
on 2021-02-03 15:00:18 UTC
(
hide
)
Description:
Bug 26734: Update sample notices to use standardised syntax
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-03 15:00:18 UTC
Size:
7.05 KB
patch
obsolete
>From 382de1f9c4028aba9f3ae53d2450a137098a4576 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 19 Oct 2020 13:54:58 +0100 >Subject: [PATCH] Bug 26734: Update sample notices to use standardised syntax > >--- > .../mysql/en/mandatory/sample_notices.yml | 66 +++++++++---------- > 1 file changed, 33 insertions(+), 33 deletions(-) > >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 705cebffee..52a2282aed 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -47,11 +47,13 @@ tables: > code: ACCOUNT_CREDIT > branchcode: "" > name: "Account payment" >- is_html: 0 >+ is_html: 1 > title: "Account payment" > message_transport_type: print > lang: default > content: >+ - "[% USE Price %]" >+ - "[% PROCESS 'accounts.inc' %]" > - "<table>" > - "[% IF ( LibraryName ) %]" > - " <tr>" >@@ -67,13 +69,13 @@ tables: > - " </tr>" > - " <tr>" > - " <th colspan=\"4\" class=\"centerednames\">" >- - " <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>" >+ - " <h2>[% Branches.GetName( credit.patron.branchcode ) | html %]</h2>" > - " </th>" > - " </tr>" > - " <tr>" > - " <th colspan=\"4\">" >- - " Received with thanks from [% patron.firstname | html %] [% patron.surname | html %] <br />" >- - " Card number: [% patron.cardnumber | html %]<br />" >+ - " Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />" >+ - " Card number: [% credit.patron.cardnumber | html %]<br />" > - " </th>" > - " </tr>" > - " <tr>" >@@ -83,22 +85,20 @@ tables: > - " <th>Amount</th>" > - " </tr>" > - "" >- - " [% FOREACH account IN accounts %]" >- - " <tr class=\"highlight\">" >- - " <td>[% account.date | $KohaDates %]</td>" >- - " <td>" >- - " [% PROCESS account_type_description account=account %]" >- - " [%- IF account.description %], [% account.description | html %][% END %]" >- - " </td>" >- - " <td>[% account.note | html %]</td>" >- - " [% IF ( account.amountcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amount | $Price %]</td>" >- - " </tr>" >+ - " <tr class=\"highlight\">" >+ - " <td>[% credit.date | $KohaDates %]</td>" >+ - " <td>" >+ - " [% PROCESS account_type_description account=credit %]" >+ - " [%- IF credit.description %], [% credit.description | html %][% END %]" >+ - " </td>" >+ - " <td>[% credit.note | html %]</td>" >+ - " <td class=\"credit\">[% credit.amount | $Price %]</td>" >+ - " </tr>" > - "" >- - " [% END %]" > - "<tfoot>" > - " <tr>" > - " <td colspan=\"3\">Total outstanding dues as on date: </td>" >- - " [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>" >+ - " [% IF ( credit.patron.account.balance >= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% credit.patron.account.balance | $Price %]</td>" > - " </tr>" > - "</tfoot>" > - "</table>" >@@ -107,11 +107,13 @@ tables: > code: ACCOUNT_DEBIT > branchcode: "" > name: "Account fee" >- is_html: 0 >+ is_html: 1 > title: "Account fee" > message_transport_type: print > lang: default > content: >+ - "[% USE Price %]" >+ - "[% PROCESS 'accounts.inc' %]" > - "<table>" > - " [% IF ( LibraryName ) %]" > - " <tr>" >@@ -128,13 +130,13 @@ tables: > - " </tr>" > - " <tr>" > - " <th colspan=\"5\" class=\"centerednames\">" >- - " <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>" >+ - " <h2>[% Branches.GetName( debit.patron.branchcode ) | html %]</h2>" > - " </th>" > - " </tr>" > - " <tr>" > - " <th colspan=\"5\" >" >- - " Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />" >- - " Card number: [% patron.cardnumber | html %]<br />" >+ - " Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />" >+ - " Card number: [% debit.patron.cardnumber | html %]<br />" > - " </th>" > - " </tr>" > - " <tr>" >@@ -145,23 +147,21 @@ tables: > - " <th style=\"text-align:right;\">Amount outstanding</th>" > - " </tr>" > - "" >- - " [% FOREACH account IN accounts %]" >- - " <tr class=\"highlight\">" >- - " <td>[% account.date | $KohaDates%]</td>" >- - " <td>" >- - " [% PROCESS account_type_description account=account %]" >- - " [%- IF account.description %], [% account.description | html %][% END %]" >- - " </td>" >- - " <td>[% account.note | html %]</td>" >- - " [% IF ( account.amountcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amount | $Price %]</td>" >- - " [% IF ( account.amountoutstandingcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amountoutstanding | $Price %]</td>" >- - " </tr>" >- - " [% END %]" >+ - " <tr class=\"highlight\">" >+ - " <td>[% debit.date | $KohaDates%]</td>" >+ - " <td>" >+ - " [% PROCESS account_type_description account=debit %]" >+ - " [%- IF debit.description %], [% debit.description | html %][% END %]" >+ - " </td>" >+ - " <td>[% debit.note | html %]</td>" >+ - " <td class=\"debit\">[% debit.amount | $Price %]</td>" >+ - " <td class=\"debit\">[% debit.amountoutstanding | $Price %]</td>" >+ - " </tr>" > - "" > - " <tfoot>" > - " <tr>" > - " <td colspan=\"4\">Total outstanding dues as on date: </td>" >- - " [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>" >+ - " [% IF ( debit.patron.account.balance <= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% debit.patron.account.balance | $Price %]</td>" > - " </tr>" > - " </tfoot>" > - "</table>" >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26734
:
111976
|
111977
|
111978
|
112023
|
112024
|
112025
|
112026
|
116257
|
116259
|
116260
|
116261
|
116262
|
116263
|
116272
|
116275
|
116276
|
116277
|
116278
|
116279
|
116644
|
116645
|
116646
|
116647
|
116648
|
116655
|
116656
|
116657
|
116658
|
116659
|
116663
|
116664
|
116665
|
116666
|
116667
|
117261
|
117262
|
117263
|
117264
|
117265
|
118191
|
118192
|
118193
|
118194
|
118195
|
118196
|
118197
|
118200
|
118482
|
118483
|
118484
|
118485
|
118486
|
118487
|
118488
|
118489
|
119350
|
119351
|
119352
|
119353
|
119354
|
119355
|
119356
|
119357
|
119358
|
119642
|
120077
|
121446
|
121449