1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
4 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
5 ('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', '<table>
6 [% IF ( LibraryName ) %]
8 <th colspan="4" class="centerednames">
9 <h3>[% LibraryName | html %]</h3>
14 <th colspan="4" class="centerednames">
15 <h2><u>Fee receipt</u></h2>
19 <th colspan="4" class="centerednames">
20 <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
25 Received with thanks from [% patron.firstname | html %] [% patron.surname | html %] <br />
26 Card number: [% patron.cardnumber | html %]<br />
31 <th>Description of charges</th>
36 [% FOREACH account IN accounts %]
37 <tr class="highlight">
38 <td>[% account.date | $KohaDates %]</td>
40 [% PROCESS account_type_description account=account %]
41 [%- IF account.description %], [% account.description | html %][% END %]
43 <td>[% account.note | html %]</td>
44 [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
50 <td colspan="3">Total outstanding dues as on date: </td>
51 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
54 </table>', 'print', 'default');
56 SetVersion( $DBversion );
57 print "Upgrade to $DBversion done (Bug 22809 - Move 'ACCOUNT_CREDIT' from template to a slip)\n";