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>"
- - " <th colspan=\"4\" class=\"centerednames\">"
+ - " <th colspan=\"5\" class=\"centerednames\">"
- " <h3>[% LibraryName | html %]</h3>"
- " </th>"
- " </tr>"
- "[% END %]"
- " <tr>"
- - " <th colspan=\"4\" class=\"centerednames\">"
+ - " <th colspan=\"5\" class=\"centerednames\">"
- " <h2><u>Fee receipt</u></h2>"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th colspan=\"4\" class=\"centerednames\">"
- - " <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>"
+ - " <th colspan=\"5\" class=\"centerednames\">"
+ - " <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 />"
+ - " <th colspan=\"5\">"
+ - " Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />"
+ - " Card number: [% credit.patron.cardnumber | html %]<br />"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th>Date</th>"
+ - " <th>Created</th>"
+ - " <th>Updated</th>"
- " <th>Description of charges</th>"
- " <th>Note</th>"
- " <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>[% credit.timestamp | $KohaDates with_hours = 1 %]</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>"
+ - ""
+ - "[% IF ( tendered ) %]"
+ - " <tr>"
+ - " <td colspan=\"3\">Amount tendered: </td>"
+ - " <td>[% tendered | $Price %]</td>"
+ - " </tr>"
+ - " <tr>"
+ - " <td colspan=\"3\">Change given: </td>"
+ - " <td>[% change | $Price %]</td>"
+ - " </tr>"
+ - "[% END %]"
- ""
- - " [% 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>"
+ - " <td colspan=\"4\">Total outstanding dues as on date: </td>"
+ - " [% IF ( credit.patron.account.balance >= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% credit.patron.account.balance | $Price %]</td>"
- " </tr>"
- "</tfoot>"
- "</table>"
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>"
- - " <th colspan=\"5\" class=\"centerednames\">"
+ - " <th colspan=\"6\" class=\"centerednames\">"
- " <h3>[% LibraryName | html %]</h3>"
- " </th>"
- " </tr>"
- " [% END %]"
- ""
- " <tr>"
- - " <th colspan=\"5\" class=\"centerednames\">"
+ - " <th colspan=\"6\" class=\"centerednames\">"
- " <h2><u>INVOICE</u></h2>"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th colspan=\"5\" class=\"centerednames\">"
- - " <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>"
+ - " <th colspan=\"6\" class=\"centerednames\">"
+ - " <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 />"
+ - " <th colspan=\"6\" >"
+ - " Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />"
+ - " Card number: [% debit.patron.cardnumber | html %]<br />"
- " </th>"
- " </tr>"
- " <tr>"
- - " <th>Date</th>"
+ - " <th>Created</th>"
+ - " <th>Updated</th>"
- " <th>Description of charges</th>"
- " <th>Note</th>"
- " <th style=\"text-align:right;\">Amount</th>"
- " <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>[% debit.timestamp | $KohaDates with_hours = 1 %]</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>"
+ - " <td colspan=\"5\">Total outstanding dues as on date: </td>"
- " [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>"
- " </tr>"
- " </tfoot>"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- "Your library"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- - "You may pick your article up at <<branches.branchname>>."
+ - "[% IF article_request.format == 'PHOTOCOPY' %]You may pick up your article at [% branch.branchname %].[% ELSIF article_request.format == 'SCAN' %]You can download the scanned materials via the following url(s): [% article_request.urls %].[% END %]"
- ""
- "Thank you!"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
- - ""
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- "Thank you!"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- "Thank you!"
- "Pages: <<article_requests.pages>>"
- "Chapters: <<article_requests.chapters>>"
- "Notes: <<article_requests.patron_notes>>"
+ - "Format: [% IF article_request.format == 'PHOTOCOPY' %]Copy[% ELSIF article_request.format == 'SCAN' %]Scan[% END %]"
- ""
- module: circulation
content:
- "A hold has been placed on the following item : <<biblio.title>> (<<biblio.biblionumber>>) by the user <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>)."
+ - module: reserves
+ code: HOLD_REMINDER
+ branchcode: ""
+ name: "Waiting hold reminder"
+ is_html: 0
+ title: "You have waiting holds."
+ message_transport_type: email
+ lang: default
+ content:
+ - "Dear [% borrower.firstname %] [% borrower.surname %],\n\nThe following holds are waiting at [% branch.branchname %]:\n\n[% FOREACH hold IN holds %]\n [% hold.biblio.title %] : waiting since [% hold.waitingdate | $KohaDates %]\n[% END %]"
+
- module: serial
code: SERIAL_ALERT
branchcode: ""