$DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { $dbh->do(q{ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES ('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' [% IF ( LibraryName ) %] [% END %] [% FOREACH account IN accounts %] [% IF ( account.amountcredit ) %] [% IF ( account.amountoutstandingcredit ) %] [% END %] [% IF ( totalcredit ) %]

[% LibraryName | html %]

INVOICE

[% Branches.GetName( patron.branchcode ) | html %]

Bill to: [% patron.firstname | html %] [% patron.surname | html %]
Card number: [% patron.cardnumber | html %]
Date Description of charges Note Amount Amount outstanding
[% account.date | $KohaDates%] [% PROCESS account_type_description account=account %] [%- IF account.description %], [% account.description | html %][% END %] [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]
', 'print', 'default'); }); SetVersion( $DBversion ); print "Upgrade to $DBversion done (Bug 22809 - Move 'INVOICE' from template to a slip)\n"; }