Bug 23354: (follow-up) Update for bugs 23049 and 23805
[koha.git] / installer / data / mysql / en / mandatory / sample_notices.sql
blob1fea0039ad80585eccd613a145bb6a2a1368b9ed
1 INSERT INTO `letter` (module, code, name, title, content, message_transport_type)
2 VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nAccording to our current records, you have items that are overdue.Your library does not charge late fines, but please return or renew them at the branch below as soon as possible.\n\n<<branches.branchname>>\n<<branches.branchaddress1>>\n<<branches.branchaddress2>> <<branches.branchaddress3>>\nPhone: <<branches.branchphone>>\nFax: <<branches.branchfax>>\nEmail: <<branches.branchemail>>\n\nIf you have registered a password with the library, and you have a renewal available, you may renew online. If an item becomes more than 30 days overdue, you will be unable to use your library card until the item is returned.\n\nThe following item(s) is/are currently overdue:\n\n<item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>\n\nThank-you for your prompt attention to this matter.\n\n<<branches.branchname>> Staff\n', 'email'),
3 ('claimacquisition','ACQCLAIM','Acquisition Claim','Item Not Received','<<aqbooksellers.name>>\r\n<<aqbooksellers.address1>>\r\n<<aqbooksellers.address2>>\r\n<<aqbooksellers.address3>>\r\n<<aqbooksellers.address4>>\r\n<<aqbooksellers.phone>>\r\n\r\n<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (<<aqorders.quantity>> ordered) ($<<aqorders.listprice>> each) has not been received.</order>', 'email'),
4 ('orderacquisition','ACQORDER','Acquisition order','Order','<<aqbooksellers.name>>\r\n<<aqbooksellers.address1>>\r\n<<aqbooksellers.address2>>\r\n<<aqbooksellers.address3>>\r\n<<aqbooksellers.address4>>\r\n<<aqbooksellers.phone>>\r\n\r\nPlease order for the library:\r\n\r\n<order>Ordernumber <<aqorders.ordernumber>> (<<biblio.title>>) (quantity: <<aqorders.quantity>>) ($<<aqorders.listprice>> each).</order>\r\n\r\nThank you,\n\n<<branches.branchname>>', 'email'),
5 ('serial','SERIAL_ALERT','New serial issue','New serial issue is now available','<<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following issue is now available:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)\r\n\r\nPlease pick it up at your convenience.', 'email'),
6 ('members','ACCTDETAILS','Account Details Template - DEFAULT','Your new Koha account details.','Hello <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>.\r\n\r\nYour new Koha account details are:\r\n\r\nUser:  <<borrowers.userid>>\r\nPassword: <<borrowers.password>>\r\n\r\nIf you have any problems or questions regarding your account, please contact your Koha Administrator.\r\n\r\nThank you,\r\nKoha Administrator\r\nkohaadmin@yoursite.org', 'email'),
7 ('circulation','DUE','Item Due Reminder','Item Due Reminder','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following item is now due:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)', 'email'),
8 ('circulation','DUEDGST','Item Due Reminder (Digest)','Item Due Reminder','You have <<count>> items due', 'email'),
9 ('circulation','PREDUE','Advance Notice of Item Due','Advance Notice of Item Due','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nThe following item will be due soon:\r\n\r\n<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)', 'email'),
10 ('circulation','PREDUEDGST','Advance Notice of Item Due (Digest)','Advance Notice of Item Due','You have <<count>> items due soon', 'email'),
11 ('circulation','RENEWAL','Item Renewals','Item Renewals','The following items have been renewed:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you for visiting <<branches.branchname>>.', 'email'),
12 ('reserves', 'HOLD', 'Hold Available for Pickup', 'Hold Available for Pickup at <<branches.branchname>>', 'Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nYou have a hold available for pickup as of <<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor: <<biblio.author>>\r\nCopy: <<items.copynumber>>\r\nLocation: <<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n<<branches.branchaddress3>>\r\n<<branches.branchcity>> <<branches.branchzip>>', 'email'),
13 ('reserves', 'HOLD', 'Hold Available for Pickup', 'Hold Available for Pickup (print notice)', '<<branches.branchname>>\r\n<<branches.branchaddress1>>\r\n<<branches.branchaddress2>>\r\n\r\n\r\nChange Service Requested\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<<borrowers.firstname>> <<borrowers.surname>>\r\n<<borrowers.address>>\r\n<<borrowers.city>> <<borrowers.zipcode>>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<<borrowers.firstname>> <<borrowers.surname>> <<borrowers.cardnumber>>\r\n\r\nYou have a hold available for pickup as of <<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor: <<biblio.author>>\r\nCopy: <<items.copynumber>>\r\n', 'print'),
14 ('circulation','CHECKIN','Item Check-in (Digest)','Check-ins','The following items have been checked in:\r\n----\r\n[% biblio.title %]\r\n----\r\nThank you.', 'email'),
15 ('circulation','CHECKOUT','Item Check-out (Digest)','Checkouts','The following items have been checked out:\r\n----\r\n[% biblio.title %]\r\n----\r\nThank you for visiting [% branch.branchname %].', 'email'),
16 ('reserves', 'HOLDPLACED', 'Hold Placed on Item', 'Hold Placed on Item','A hold has been placed on the following item : <<biblio.title>> (<<biblio.biblionumber>>) by the user <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>).', 'email'),
17 ('reserves', 'CANCEL_HOLD_ON_LOST', 'Hold has been cancelled', "Hold has been cancelled", "Dear [% borrower.firstname %] [% borrower.surname %],\n\nWe regret to inform you, that the following item can not be provided due to it being missing. Your hold was cancelled.\n\nTitle: [% biblio.title %]\nAuthor: [% biblio.author %]\nCopy: [% item.copynumber %]\nLocation: [% branch.branchname %]", 'email'),
18 ('suggestions','ACCEPTED','Suggestion accepted', 'Purchase suggestion accepted','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\n\nThe library has reviewed your suggestion today. The item will be ordered as soon as possible. You will be notified by mail when the order is completed, and again when the item arrives at the library.\n\nIf you have any questions, please email us at <<branches.branchemail>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
19 ('suggestions','AVAILABLE','Suggestion available', 'Suggested purchase available','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\n\nWe are pleased to inform you that the item you requested is now part of the collection.\n\nIf you have any questions, please email us at <<branches.branchemail>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
20 ('suggestions','ORDERED','Suggestion ordered', 'Suggested item ordered','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\n\nWe are pleased to inform you that the item you requested has now been ordered. It should arrive soon, at which time it will be processed for addition into the collection.\n\nYou will be notified again when the book is available.\n\nIf you have any questions, please email us at <<branches.branchemail>>\n\nThank you,\n\n<<branches.branchname>>', 'email'),
21 ('suggestions','REJECTED','Suggestion rejected', 'Purchase suggestion declined','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nYou have suggested that the library acquire <<suggestions.title>> by <<suggestions.author>>.\n\nThe library has reviewed your request today, and has decided not to accept the suggestion at this time.\n\nThe reason given is: <<suggestions.reason>>\n\nIf you have any questions, please email us at <<branches.branchemail>>.\n\nThank you,\n\n<<branches.branchname>>', 'email'),
22 ('suggestions','TO_PROCESS','Notify fund owner', 'A suggestion is ready to be processed','Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\nA new suggestion is ready to be processed: <<suggestions.title>> by <<suggestions.author>>.\n\nThank you,\n\n<<branches.branchname>>', 'email');
24 INSERT INTO `letter` (module, code, name, title, content, is_html, message_transport_type)
25 VALUES ('suggestions','NEW_SUGGESTION','New suggestion','New suggestion','<h3>Suggestion pendin    g approval</h3>
26     <p><h4>Suggested by</h4>
27     <ul>
28     <li><<borrowers.firstname>> <<borrowers.surname>></li>
29     <li><<borrowers.cardnumber>></li>
30     <li><<borrowers.phone>></li>
31     <li><<borrowers.email>></li>
32     </ul>
33     </p>
34     <p><h4>Title suggested</h4>
35     <ul>
36     <li><b>Library:</b> <<branches.branchname>></li>
37     <li><b>Title:</b> <<suggestions.title>></li>
38     <li><b>Author:</b> <<suggestions.author>></li>
39     <li><b>Copyright date:</b> <<suggestions.copyrightdate>></li>
40     <li><b>Standard number (ISBN, ISSN or other):</b> <<suggestions.isbn>></li>
41     <li><b>Publisher:</b> <<suggestions.publishercode>></li>
42     <li><b>Collection title:</b> <<suggestions.collectiontitle>></li>
43     <li><b>Publication place:</b> <<suggestions.place>></li>
44     <li><b>Quantity:</b> <<suggestions.quantity>></li>
45     <li><b>Item type:</b>  <<suggestions.itemtype>></li>
46     <li><b>Reason for suggestion:</b> <<suggestions.patronreason>></li>
47     <li><b>Notes:</b> <<suggestions.note>></li>
48     </ul>
49     </p>',1, 'email');
50 INSERT INTO `letter` (module, code, name, title, content, is_html, message_transport_type)
51 VALUES ('members', 'DISCHARGE', 'Discharge confirmation', 'Discharge for <<borrowers.firstname>> <<borrowers.surname>>', '
52 <<today>>
53 <h1>Discharge confirmation</h1>
54 <p><<branches.branchname>> certifies that the following borrower:<br>
55 <<borrowers.firstname>> <<borrowers.surname>> (cardnumber: <<borrowers.cardnumber>>)<br>
56 has returned all items.</p>', 1, 'email');
58 INSERT INTO `letter` (module, code, name, title, content, is_html)
59 VALUES ('circulation','ISSUESLIP','Issue Slip','Issue Slip', '<h3><<branches.branchname>></h3>
60 Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
61 (<<borrowers.cardnumber>>) <br />
63 <<today>><br />
65 <h4>Checked Out</h4>
66 <checkedout>
67 <p>
68 <<biblio.title>> <br />
69 Barcode: <<items.barcode>><br />
70 Date due: <<issues.date_due>><br />
71 </p>
72 </checkedout>
74 <h4>Overdues</h4>
75 <overdue>
76 <p>
77 <<biblio.title>> <br />
78 Barcode: <<items.barcode>><br />
79 Date due: <<issues.date_due>><br />
80 </p>
81 </overdue>
83 <hr>
85 <h4 style="text-align: center; font-style:italic;">News</h4>
86 <news>
87 <div class="newsitem">
88 <h5 style="margin-bottom: 1px; margin-top: 1px"><b><<opac_news.title>></b></h5>
89 <p style="margin-bottom: 1px; margin-top: 1px"><<opac_news.content>></p>
90 <p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px">Posted on <<opac_news.timestamp>></p>
91 <hr />
92 </div>
93 </news>', 1),
94 ('circulation','ISSUEQSLIP','Issue Quick Slip','Issue Quick Slip', '<h3><<branches.branchname>></h3>
95 Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
96 (<<borrowers.cardnumber>>) <br />
98 <<today>><br />
100 <h4>Checked Out Today</h4>
101 <checkedout>
103 <<biblio.title>> <br />
104 Barcode: <<items.barcode>><br />
105 Date due: <<issues.date_due>><br />
106 </p>
107 </checkedout>', 1),
108 ('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
110 <h3> Transfer to/Hold in <<branches.branchname>></h3>
112 <h3><<borrowers.surname>>, <<borrowers.firstname>></h3>
114 <ul>
115     <li><<borrowers.cardnumber>></li>
116     <li><<borrowers.phone>></li>
117     <li> <<borrowers.address>><br />
118          <<borrowers.address2>><br />
119          <<borrowers.city >>  <<borrowers.zipcode>>
120     </li>
121     <li><<borrowers.email>></li>
122 </ul>
123 <br />
124 <h3>ITEM ON HOLD</h3>
125 <h4><<biblio.title>></h4>
126 <h5><<biblio.author>></h5>
127 <ul>
128    <li><<items.barcode>></li>
129    <li><<items.itemcallnumber>></li>
130    <li><<reserves.waitingdate>></li>
131 </ul>
132 <p>Notes:
133 <pre><<reserves.reservenotes>></pre>
134 </p>
135 ', 1),
136 ('circulation','TRANSFERSLIP','Transfer Slip','Transfer Slip', '<h5>Date: <<today>></h5>
138 <h3>Transfer to <<branches.branchname>></h3>
140 <h3>ITEM</h3>
141 <h4><<biblio.title>></h4>
142 <h5><<biblio.author>></h5>
143 <ul>
144    <li><<items.barcode>></li>
145    <li><<items.itemcallnumber>></li>
146 </ul>', 1);
148 INSERT INTO `letter` (`module`,`code`,`branchcode`,`name`,`is_html`,`title`,`content`)
149 VALUES (
150 'members',  'OPAC_REG_VERIFY',  '',  'Opac Self-Registration Verification Email',  '1',  'Verify Your Account',  'Hello!
152 Your library account has been created. Please verify your email address by clicking this link to complete the signup process:
154 <<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>>
156 If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly.'
159 INSERT INTO  letter (module, code, branchcode, name, is_html, title, content)
160 VALUES ('members', 'SHARE_INVITE', '', 'Invitation for sharing a list', '0', 'Share list <<listname>>', 'Dear patron,
162 One of our patrons, <<borrowers.firstname>> <<borrowers.surname>>, invites you to share a list <<listname>> in our library catalog.
164 To access this shared list, please click on the following URL or copy-and-paste it into your browser address bar.
166 <<shareurl>>
168 In case you are not a patron in our library or do not want to accept this invitation, please ignore this mail. Note also that this invitation expires within two weeks.
170 Thank you.
172 Your library.'
174 INSERT INTO  letter (module, code, branchcode, name, is_html, title, content)
175 VALUES ( 'members', 'SHARE_ACCEPT', '', 'Notification about an accepted share', '0', 'Share on list <<listname>> accepted', 'Dear patron,
177 We want to inform you that <<borrowers.firstname>> <<borrowers.surname>> accepted your invitation to share your list <<listname>> in our library catalog.
179 Thank you.
181 Your library.'
184 INSERT INTO letter(module, code, branchcode, name, title, content, message_transport_type)
185 VALUES ('acquisition', 'ACQ_NOTIF_ON_RECEIV', '', 'Notification on receiving', 'Order received', 'Dear <<borrowers.firstname>> <<borrowers.surname>>,\n\n The order <<aqorders.ordernumber>> (<<biblio.title>>) has been received.\n\nYour library.', 'email'),
186 ('members','MEMBERSHIP_EXPIRY','','Account expiration','Account expiration','Dear <<borrowers.title>> <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nYour library card will expire soon, on:\r\n\r\n<<borrowers.dateexpiry>>\r\n\r\nThank you,\r\n\r\nLibrarian\r\n\r\n<<branches.branchname>>','email');
188 INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type )
189 VALUES ( 'circulation', 'OVERDUES_SLIP', '', 'Overdues Slip', '0', 'OVERDUES_SLIP', 'The following item(s) is/are currently overdue:
191 <item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> Fine: <<items.fine>></item>
192 ', 'print' );
194 INSERT INTO `letter` (module, code, branchcode, name, is_html, title, content, message_transport_type)
195 VALUES ('members','PASSWORD_RESET','','Online password reset',1,'Koha password recovery','<html>\r\n<p>This email has been sent in response to your password recovery request for the account <strong><<user>></strong>.\r\n</p>\r\n<p>\r\nYou can now create your new password using the following link:\r\n<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>\r\n</p>\r\n<p>This link will be valid for 2 days from this email\'s reception, then you must reapply if you do not change your password.</p>\r\n<p>Thank you.</p>\r\n</html>\r\n','email'
198 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
199 ('circulation', 'AR_CANCELED', '', 'Article request - canceled', 0, 'Article request canceled', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nYour request for an article from <<biblio.title>> (<<items.barcode>>) has been canceled for the following reason:\r\n\r\n<<article_requests.notes>>\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\nYour library', 'email'),
200 ('circulation', 'AR_COMPLETED', '', 'Article request - completed', 0, 'Article request completed', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nWe have completed your request for an article from <<biblio.title>> (<<items.barcode>>).\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\nYou may pick your article up at <<branches.branchname>>.\r\n\r\nThank you!', 'email'),
201 ('circulation', 'AR_PENDING', '', 'Article request - open', 0, 'Article request received', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>)\r\n\r\nWe have received your request for an article from <<biblio.title>> (<<items.barcode>>).\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\n\r\nThank you!', 'email'),
202 ('circulation', 'AR_SLIP', '', 'Article request - print slip', 0, 'Article request', 'Article request:\r\n\r\n<<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nTitle: <<biblio.title>>\r\nBarcode: <<items.barcode>>\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n', 'print'),
203 ('circulation', 'AR_PROCESSING', '', 'Article request - processing', 0, 'Article request processing', 'Dear <<borrowers.firstname>> <<borrowers.surname>> (<<borrowers.cardnumber>>),\r\n\r\nWe are now processing your request for an article from <<biblio.title>> (<<items.barcode>>).\r\n\r\nArticle requested:\r\nTitle: <<article_requests.title>>\r\nAuthor: <<article_requests.author>>\r\nVolume: <<article_requests.volume>>\r\nIssue: <<article_requests.issue>>\r\nDate: <<article_requests.date>>\r\nPages: <<article_requests.pages>>\r\nChapters: <<article_requests.chapters>>\r\nNotes: <<article_requests.patron_notes>>\r\n\r\nThank you!', 'email'),
204 ('circulation', 'CHECKOUT_NOTE', '', 'Checkout note on item set by patron', '0', 'Checkout note', '<<borrowers.firstname>> <<borrowers.surname>> has added a note to the item <<biblio.title>> - <<biblio.author>> (<<biblio.biblionumber>>).','email');
206 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
207 ('circulation', 'ACCOUNT_PAYMENT', '', 'Account payment', 0, 'Account payment', '[%- USE Price -%]\r\nA payment of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis payment affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'),
208 ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default');
210 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
211 ('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', '<table>
212 [% IF ( LibraryName ) %]
213  <tr>
214     <th colspan="4" class="centerednames">
215         <h3>[% LibraryName | html %]</h3>
216     </th>
217  </tr>
218 [% END %]
219  <tr>
220     <th colspan="4" class="centerednames">
221         <h2><u>Fee receipt</u></h2>
222     </th>
223  </tr>
224  <tr>
225     <th colspan="4" class="centerednames">
226         <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
227     </th>
228  </tr>
229  <tr>
230     <th colspan="4">
231         Received with thanks from  [% patron.firstname | html %] [% patron.surname | html %] <br />
232         Card number: [% patron.cardnumber | html %]<br />
233     </th>
234  </tr>
235   <tr>
236     <th>Date</th>
237     <th>Description of charges</th>
238     <th>Note</th>
239     <th>Amount</th>
240  </tr>
242   [% FOREACH account IN accounts %]
243     <tr class="highlight">
244       <td>[% account.date | $KohaDates %]</td>
245       <td>
246         [% PROCESS account_type_description account=account %]
247         [%- IF account.description %], [% account.description | html %][% END %]
248       </td>
249       <td>[% account.note | html %]</td>
250       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
251     </tr>
253   [% END %]
254 <tfoot>
255   <tr>
256     <td colspan="3">Total outstanding dues as on date: </td>
257     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
258   </tr>
259 </tfoot>
260 </table>', 'print', 'default');
262 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
263 ('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '<table>
264   [% IF ( LibraryName ) %]
265     <tr>
266       <th colspan="5" class="centerednames">
267         <h3>[% LibraryName | html %]</h3>
268       </th>
269     </tr>
270   [% END %]
272   <tr>
273     <th colspan="5" class="centerednames">
274       <h2><u>INVOICE</u></h2>
275     </th>
276   </tr>
277   <tr>
278     <th colspan="5" class="centerednames">
279       <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
280     </th>
281   </tr>
282   <tr>
283     <th colspan="5" >
284       Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />
285       Card number: [% patron.cardnumber | html %]<br />
286     </th>
287   </tr>
288   <tr>
289     <th>Date</th>
290     <th>Description of charges</th>
291     <th>Note</th>
292     <th style="text-align:right;">Amount</th>
293     <th style="text-align:right;">Amount outstanding</th>
294   </tr>
296   [% FOREACH account IN accounts %]
297     <tr class="highlight">
298       <td>[% account.date | $KohaDates%]</td>
299       <td>
300         [% PROCESS account_type_description account=account %]
301         [%- IF account.description %], [% account.description | html %][% END %]
302       </td>
303       <td>[% account.note | html %]</td>
304       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
305       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
306     </tr>
307   [% END %]
309   <tfoot>
310     <tr>
311       <td colspan="4">Total outstanding dues as on date: </td>
312       [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
313     </tr>
314   </tfoot>
315 </table>', 'print', 'default');
317 INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES
318 ('circulation', 'SR_SLIP', '', 'Stock rotation slip', 0, 'Stock rotation report', 'Stock rotation report for [% branch.name %]:\r\n\r\n[% IF branch.items.size %][% branch.items.size %] items to be processed for this branch.\r\n[% ELSE %]No items to be processed for this branch\r\n[% END %][% FOREACH item IN branch.items %][% IF item.reason != \'in-demand\' %]Title: [% item.title %]\r\nAuthor: [% item.author %]\r\nCallnumber: [% item.callnumber %]\r\nLocation: [% item.location %]\r\nBarcode: [% item.barcode %]\r\nOn loan?: [% item.onloan %]\r\nStatus: [% item.reason %]\r\nCurrent library: [% item.branch.branchname %] [% item.branch.branchcode %]\r\n\r\n[% END %][% END %]', 'email');
320 INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES
321 ('pos', 'RECEIPT', '', 'Point of sale receipt', 0, 'Receipt', '[% PROCESS "accounts.inc" %]
322 <table>
323 [% IF ( LibraryName ) %]
324  <tr>
325     <th colspan="2" class="centerednames">
326         <h3>[% LibraryName | html %]</h3>
327     </th>
328  </tr>
329 [% END %]
330  <tr>
331     <th colspan="2" class="centerednames">
332         <h2>[% Branches.GetName( payment.branchcode ) | html %]</h2>
333     </th>
334  </tr>
335 <tr>
336     <th colspan="2" class="centerednames">
337         <h3>[% payment.date | $KohaDates %]</h3>
338 </tr>
339 <tr>
340   <td>Transaction ID: </td>
341   <td>[% payment.accountlines_id %]</td>
342 </tr>
343 <tr>
344   <td>Operator ID: </td>
345   <td>[% payment.manager_id %]</td>
346 </tr>
347 <tr>
348   <td>Payment type: </td>
349   <td>[% payment.payment_type %]</td>
350 </tr>
351  <tr></tr>
352  <tr>
353     <th colspan="2" class="centerednames">
354         <h2><u>Fee receipt</u></h2>
355     </th>
356  </tr>
357  <tr></tr>
358  <tr>
359     <th>Description of charges</th>
360     <th>Amount</th>
361   </tr>
363   [% FOREACH offset IN offsets %]
364     <tr>
365         <td>[% PROCESS account_type_description account=offset.debit %]</td>
366         <td>[% offset.amount * -1 | $Price %]</td>
367     </tr>
368   [% END %]
370 <tfoot>
371   <tr class="highlight">
372     <td>Total: </td>
373     <td>[% payment.amount * -1| $Price %]</td>
374   </tr>
375   <tr>
376     <td>Tendered: </td>
377     <td>[% collected | $Price %]</td>
378   </tr>
379   <tr>
380     <td>Change: </td>
381     <td>[% change | $Price %]</td>
382     </tr>
383 </tfoot>
384 </table>', 'print', 'default');