View | Details | Raw Unified | Return to bug 28688
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_28688.pl (+17 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => 28688,
5
    description => "Add notice MEMBERSHIP_RENEWED",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{
12
INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`)
13
VALUES ( 'members', 'MEMBERSHIP_RENEWED', '', 'Account renewal', 0, 'Account renewal', "[%- USE Price -%]\nDear [% borrower.title %] [% borrower.firstname %] [% borrower.surname %],\n\nYour library account has been renewed. The new expiry date is: [% borrower.dateexpiry %].\n\n[% IF borrower.category.enrolmentfee > 0 %]An enrollment fee of [% borrower.category.enrolmentfee | $Price with_symbol => 1 %] has been applied.\n\n[% END %]Thank you,\n\nYour library,\n\n[% branch.branchname %]", 'email', 'default' )
14
        }
15
        );
16
    },
17
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +20 lines)
Lines 1300-1305 tables: Link Here
1300
            - ""
1300
            - ""
1301
            - "<<branches.branchname>>"
1301
            - "<<branches.branchname>>"
1302
1302
1303
        - module: members
1304
          code: MEMBERSHIP_RENEWED
1305
          branchcode: ""
1306
          name: "Account renewal"
1307
          is_html: 0
1308
          title: "Account renewal"
1309
          message_transport_type: email
1310
          lang: default
1311
          content:
1312
            - "[%- USE Price -%]"
1313
            - "Dear [% borrower.title %] [% borrower.firstname %] [% borrower.surname %],"
1314
            - ""
1315
            - "Your library account has been renewed. The new expiry date is: [% borrower.dateexpiry %]."
1316
            - "[% IF borrower.category.enrolmentfee > 0 %]\nAn enrollment fee of [% borrower.category.enrolmentfee | $Price with_symbol => 1 %] has been applied.\n[% END %]"
1317
            - "Thank you,"
1318
            - ""
1319
            - "Your library,"
1320
            - ""
1321
            - "[% branch.branchname %]"
1322
1303
        - module: members
1323
        - module: members
1304
          code: OPAC_REG_VERIFY
1324
          code: OPAC_REG_VERIFY
1305
          branchcode: ""
1325
          branchcode: ""
1306
- 

Return to bug 28688