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

(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-158 / +185 lines)
Lines 52-119 tables: Link Here
52
          message_transport_type: print
52
          message_transport_type: print
53
          lang: default
53
          lang: default
54
          content:
54
          content:
55
            - "[% USE Price %]"
55
            - "[% PROCESS \"accounts.inc\" %]"
56
            - "[% PROCESS 'accounts.inc' %]"
57
            - "<table>"
56
            - "<table>"
58
            - "[% IF ( LibraryName ) %]"
57
            - "    [% IF ( LibraryName ) %]"
59
            - " <tr>"
58
            - "    <tr>"
60
            - "    <th colspan=\"5\" class=\"centerednames\">"
59
            - "      <th colspan=\"2\" class=\"centerednames\">"
61
            - "        <h3>[% LibraryName | html %]</h3>"
60
            - "        <h3>[% LibraryName | html %]</h3>"
62
            - "    </th>"
61
            - "      </th>"
63
            - " </tr>"
62
            - "    </tr>"
64
            - "[% END %]"
63
            - "    [% END %]"
65
            - " <tr>"
64
            - "    [% IF credit.library %]"
66
            - "    <th colspan=\"5\" class=\"centerednames\">"
65
            - "    <tr>"
67
            - "        <h2><u>Fee receipt</u></h2>"
66
            - "      <th colspan=\"2\" class=\"centerednames\">"
68
            - "    </th>"
67
            - "        <h2>[% credit.library.branchname | html %]</h2>"
69
            - " </tr>"
68
            - "      </th>"
70
            - " <tr>"
69
            - "    </tr>"
71
            - "    <th colspan=\"5\" class=\"centerednames\">"
70
            - "    [% END %]"
72
            - "        <h2>[% Branches.GetName( credit.patron.branchcode ) | html %]</h2>"
71
            - "    <tr>"
73
            - "    </th>"
72
            - "      <th colspan=\"2\" class=\"centerednames\">"
74
            - " </tr>"
73
            - "        <h3>[% credit.date | $KohaDates %]</h3>"
75
            - " <tr>"
74
            - "      </th>"
76
            - "    <th colspan=\"5\">"
75
            - "    </tr>"
76
            - "    <tr>"
77
            - "      <td>Transaction ID: </td>"
78
            - "      <td>[% credit.accountlines_id %]</td>"
79
            - "    </tr>"
80
            - "    <tr>"
81
            - "      <td>Operator ID: </td>"
82
            - "      <td>[% credit.manager_id %]</td>"
83
            - "    </tr>"
84
            - "    <tr>"
85
            - "      <td>Payment type: </td>"
86
            - "      <td>[% credit.payment_type %]</td>"
87
            - "    </tr>"
88
            - "    <tr>"
89
            - "      <th colspan=\"2\" class=\"centerednames\">"
90
            - "        <h2><u>Payment receipt</u></h2>"
91
            - "      </th>"
92
            - "    </tr>"
93
            - "    <tr>"
94
            - "      <th colspan=\"2\">"
77
            - "        Received with thanks from  [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />"
95
            - "        Received with thanks from  [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />"
78
            - "        Card number: [% credit.patron.cardnumber | html %]<br />"
96
            - "        Card number: [% credit.patron.cardnumber | html %]<br />"
79
            - "    </th>"
97
            - "      </th>"
80
            - " </tr>"
98
            - "    </tr>"
81
            - "  <tr>"
99
            - "    <tr>"
82
            - "    <th>Created</th>"
100
            - "      <th>Description of charges</th>"
83
            - "    <th>Updated</th>"
101
            - "      <th>Amount</th>"
84
            - "    <th>Description of charges</th>"
102
            - "    </tr>"
85
            - "    <th>Note</th>"
103
            - "    [% FOREACH offset IN credit.credit_offsets %]"
86
            - "    <th>Amount</th>"
104
            - "    <tr>"
87
            - " </tr>"
105
            - "      <td>[% PROCESS account_type_description account=offset.debit %]</td>"
88
            - ""
106
            - "      <td>[% offset.amount * -1 | $Price %]</td>"
89
            - " <tr class=\"highlight\">"
107
            - "    </tr>"
90
            - "    <td>[% credit.date | $KohaDates %]</td>"
108
            - "    [% END %]"
91
            - "    <td>[% credit.timestamp | $KohaDates with_hours = 1 %]</td>"
109
            - "  <tfoot>"
92
            - "    <td>"
110
            - "    <tr class=\"highlight\">"
93
            - "      [% PROCESS account_type_description account=credit %]"
111
            - "      <td>Total:</td>"
94
            - "      [%- IF credit.description %], [% credit.description | html %][% END %]"
112
            - "      <td>[% credit.amount * -1 | $Price %]</td>"
95
            - "    </td>"
113
            - "    </tr>"
96
            - "    <td>[% credit.note | html %]</td>"
114
            - "    <tr>"
97
            - "    <td class=\"credit\">[% credit.amount | $Price %]</td>"
115
            - "      <td>Change given: </td>"
98
            - " </tr>"
116
            - "      <td>[% change | $Price %]</td>"
99
            - ""
117
            - "    </tr>"
100
            - "[% IF ( tendered ) %]"
118
            - "    <tr>"
101
            - "  <tr>"
119
            - "      <td colspan=\"2\"></td>"
102
            - "    <td colspan=\"3\">Amount tendered: </td>"
120
            - "    </tr>"
103
            - "    <td>[% tendered | $Price %]</td>"
121
            - "    <tr>"
104
            - "  </tr>"
122
            - "      <td>Account balance as on date:</td>"
105
            - "  <tr>"
123
            - "      <td>[% credit.patron.account.balance * -1 | $Price %]</td>"
106
            - "    <td colspan=\"3\">Change given: </td>"
124
            - "    </tr>"
107
            - "    <td>[% change | $Price %]</td>"
125
            - "  </tfoot>"
108
            - "  </tr>"
109
            - "[% END %]"
110
            - ""
111
            - "<tfoot>"
112
            - "  <tr>"
113
            - "    <td colspan=\"4\">Total outstanding dues as on date: </td>"
114
            - "    [% IF ( credit.patron.account.balance >= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% credit.patron.account.balance | $Price %]</td>"
115
            - "  </tr>"
116
            - "</tfoot>"
117
            - "</table>"
126
            - "</table>"
118
127
119
        - module: circulation
128
        - module: circulation
Lines 126-182 tables: Link Here
126
          lang: default
135
          lang: default
127
          content:
136
          content:
128
            - "[% USE Price %]"
137
            - "[% USE Price %]"
129
            - "[% PROCESS 'accounts.inc' %]"
138
            - "[% PROCESS \"accounts.inc\" %]"
130
            - "<table>"
139
            - "<table>"
131
            - "  [% IF ( LibraryName ) %]"
140
            - "    [% IF ( LibraryName ) %]"
132
            - "    <tr>"
141
            - "    <tr>"
133
            - "      <th colspan=\"6\" class=\"centerednames\">"
142
            - "      <th colspan=\"3\" class=\"centerednames\">"
134
            - "        <h3>[% LibraryName | html %]</h3>"
143
            - "        <h3>[% LibraryName | html %]</h3>"
135
            - "      </th>"
144
            - "      </th>"
136
            - "    </tr>"
145
            - "    </tr>"
137
            - "  [% END %]"
146
            - "    [% END %]"
138
            - ""
147
            - "    [% IF debit.library %]"
139
            - "  <tr>"
148
            - "    <tr>"
140
            - "    <th colspan=\"6\" class=\"centerednames\">"
149
            - "      <th colspan=\"3\" class=\"centerednames\">"
141
            - "      <h2><u>INVOICE</u></h2>"
150
            - "        <h2>[% debit.library.branchname | html %]</h2>"
142
            - "    </th>"
151
            - "      </th>"
143
            - "  </tr>"
152
            - "    </tr>"
144
            - "  <tr>"
153
            - "    [% END %]"
145
            - "    <th colspan=\"6\" class=\"centerednames\">"
154
            - "    <tr>"
146
            - "      <h2>[% Branches.GetName( debit.patron.branchcode ) | html %]</h2>"
155
            - "      <th colspan=\"3\" class=\"centerednames\">"
147
            - "    </th>"
156
            - "        <h3>[% debit.date | $KohaDates %]</h3>"
148
            - "  </tr>"
157
            - "      </th>"
149
            - "  <tr>"
158
            - "    </tr>"
150
            - "    <th colspan=\"6\" >"
159
            - "    <tr>"
151
            - "      Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />"
160
            - "      <td colspan=\"2\" style=\"text-align:right;\">Fee ID: </td>"
152
            - "      Card number: [% debit.patron.cardnumber | html %]<br />"
161
            - "      <td>[% debit.accountlines_id %]</td>"
153
            - "    </th>"
162
            - "    </tr>"
154
            - "  </tr>"
163
            - "    [% IF credit.manager_id %]"
155
            - "  <tr>"
164
            - "    <tr>"
156
            - "    <th>Created</th>"
165
            - "      <td colspan=\"2\" style=\"text-align:right;\">Operator ID: </td>"
157
            - "    <th>Updated</th>"
166
            - "      <td>[% credit.manager_id %]</td>"
158
            - "    <th>Description of charges</th>"
167
            - "    </tr>"
159
            - "    <th>Note</th>"
168
            - "    [% END %]"
160
            - "    <th style=\"text-align:right;\">Amount</th>"
169
            - "    <tr>"
161
            - "    <th style=\"text-align:right;\">Amount outstanding</th>"
170
            - "      <th colspan=\"3\" class=\"centerednames\">"
162
            - "  </tr>"
171
            - "        <h2><u>Invoice</u></h2>"
163
            - ""
172
            - "      </th>"
164
            - "  <tr class=\"highlight\">"
173
            - "    </tr>"
165
            - "    <td>[% debit.date | $KohaDates%]</td>"
174
            - "    <tr>"
166
            - "    <td>[% debit.timestamp | $KohaDates with_hours = 1 %]</td>"
175
            - "      <th colspan=\"3\" >"
167
            - "    <td>"
176
            - "        Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />"
168
            - "      [% PROCESS account_type_description account=debit %]"
177
            - "        Card number: [% debit.patron.cardnumber | html %]<br />"
169
            - "      [%- IF debit.description %], [% debit.description | html %][% END %]"
178
            - "      </th>"
170
            - "    </td>"
179
            - "    </tr>"
171
            - "    <td>[% debit.note | html %]</td>"
180
            - "    [% IF debit.amount != debit.amountoutstanding %]"
172
            - "    <td class=\"debit\">[% debit.amount | $Price %]</td>"
181
            - "    <tr>"
173
            - "    <td class=\"debit\">[% debit.amountoutstanding | $Price %]</td>"
182
            - "      <th>Date</th>"
174
            - "  </tr>"
183
            - "      <th>Description of payments</th>"
175
            - ""
184
            - "      <th>Amount</th>"
185
            - "    </tr>"
186
            - "    [% FOREACH offset IN debit.debit_offsets %]"
187
            - "    <tr>"
188
            - "      <td>[% offset.credit.date | $KohaDates %]</td>"
189
            - "      <td>[% PROCESS account_type_description account=offset.credit %]</td>"
190
            - "      <td>[% offset.amount * -1 | $Price %]</td>"
191
            - "    </tr>"
192
            - "    [% END %]"
193
            - "    <tr class=\"highlight\">"
194
            - "      <td colspan=\"2\" style=\"text-align:right;\">Total paid:</td>"
195
            - "      <td>[% debit.amount - debit.amountoutstanding | $Price %]</td>"
196
            - "    </tr>"
197
            - "    [% END %]"
198
            - "    </tr>"
199
            - "      <td colspan=\"3\"></td>"
200
            - "    <tr>"
176
            - "  <tfoot>"
201
            - "  <tfoot>"
177
            - "    <tr>"
202
            - "    <tr>"
178
            - "      <td colspan=\"5\">Total outstanding dues as on date: </td>"
203
            - "      <td colspan=\"2\" style=\"text-align:right;\">Total owed:</td>"
179
            - "      [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>"
204
            - "      <td>[% debit.amount | $Price %]</td>"
205
            - "    </tr>"
206
            - "    <tr>"
207
            - "      <td colspan=\"2\" style=\"text-align:right;\">Total outstanding:</td>"
208
            - "      <td>[% debit.amountoutstanding | $Price %]</td>"
180
            - "    </tr>"
209
            - "    </tr>"
181
            - "  </tfoot>"
210
            - "  </tfoot>"
182
            - "</table>"
211
            - "</table>"
Lines 1322-1388 tables: Link Here
1322
            - "[% USE Price %]"
1351
            - "[% USE Price %]"
1323
            - "[% PROCESS \"accounts.inc\" %]"
1352
            - "[% PROCESS \"accounts.inc\" %]"
1324
            - "<table>"
1353
            - "<table>"
1325
            - "[% IF ( LibraryName ) %]"
1354
            - "    [% IF ( LibraryName ) %]"
1326
            - " <tr>"
1355
            - "    <tr>"
1327
            - "    <th colspan=\"2\" class=\"centerednames\">"
1356
            - "      <th colspan=\"2\" class=\"centerednames\">"
1328
            - "        <h3>[% LibraryName | html %]</h3>"
1357
            - "        <h3>[% LibraryName | html %]</h3>"
1329
            - "    </th>"
1358
            - "      </th>"
1330
            - " </tr>"
1359
            - "    </tr>"
1331
            - "[% END %]"
1360
            - "    [% END %]"
1332
            - " <tr>"
1361
            - "    [% IF credit.library %]"
1333
            - "    <th colspan=\"2\" class=\"centerednames\">"
1362
            - "    <tr>"
1334
            - "        <h2>[% Branches.GetName( credit.branchcode ) | html %]</h2>"
1363
            - "      <th colspan=\"2\" class=\"centerednames\">"
1335
            - "    </th>"
1364
            - "        <h2>[% payment.library.branchname ) | html %]</h2>"
1336
            - " </tr>"
1365
            - "      </th>"
1337
            - "<tr>"
1366
            - "    </tr>"
1338
            - "    <th colspan=\"2\" class=\"centerednames\">"
1367
            - "    [% END %]"
1339
            - "        <h3>[% credit.date | $KohaDates %]</h3>"
1368
            - "    <tr>"
1340
            - "</tr>"
1369
            - "      <th colspan=\"2\" class=\"centerednames\">"
1341
            - "<tr>"
1370
            - "        <h3>[% payment.date | $KohaDates %]</h3>"
1342
            - "  <td>Transaction ID: </td>"
1371
            - "      </th>"
1343
            - "  <td>[% credit.accountlines_id %]</td>"
1372
            - "    </tr>"
1344
            - "</tr>"
1373
            - "    <tr>"
1345
            - "<tr>"
1374
            - "      <td>Transaction ID: </td>"
1346
            - "  <td>Operator ID: </td>"
1375
            - "      <td>[% payment.accountlines_id %]</td>"
1347
            - "  <td>[% credit.manager_id %]</td>"
1376
            - "    </tr>"
1348
            - "</tr>"
1377
            - "    <tr>"
1349
            - "<tr>"
1378
            - "      <td>Operator ID: </td>"
1350
            - "  <td>Payment type: </td>"
1379
            - "      <td>[% payment.manager_id %]</td>"
1351
            - "  <td>[% credit.payment_type %]</td>"
1380
            - "    </tr>"
1352
            - "</tr>"
1381
            - "    <tr>"
1353
            - " <tr></tr>"
1382
            - "      <td>Payment type: </td>"
1354
            - " <tr>"
1383
            - "      <td>[% payment.payment_type %]</td>"
1355
            - "    <th colspan=\"2\" class=\"centerednames\">"
1384
            - "    </tr>"
1356
            - "        <h2><u>Fee receipt</u></h2>"
1385
            - "    <tr>"
1357
            - "    </th>"
1386
            - "      <th colspan=\"2\" class=\"centerednames\">"
1358
            - " </tr>"
1387
            - "        <h2><u>Payment receipt</u></h2>"
1359
            - " <tr></tr>"
1388
            - "      </th>"
1360
            - " <tr>"
1389
            - "    </tr>"
1361
            - "    <th>Description of charges</th>"
1390
            - "    <tr>"
1362
            - "    <th>Amount</th>"
1391
            - "      <th>Description of charges</th>"
1363
            - "  </tr>"
1392
            - "      <th>Amount</th>"
1364
            - ""
1393
            - "    </tr>"
1365
            - "  [% FOREACH debit IN credit.debits %]"
1394
            - "    [% FOREACH offset IN payment.credit_offsets %]"
1366
            - "    <tr>"
1395
            - "    <tr>"
1367
            - "        <td>[% PROCESS account_type_description account=debit %]</td>"
1396
            - "        <td>[% PROCESS account_type_description account=debit %]</td>"
1368
            - "        <td>[% debit.amount * -1 | $Price %]</td>"
1397
            - "        <td>[% debit.amount * -1 | $Price %]</td>"
1369
            - "    </tr>"
1398
            - "    </tr>"
1370
            - "  [% END %]"
1399
            - "    [% END %]"
1371
            - ""
1400
            - "  <tfoot>"
1372
            - "<tfoot>"
1401
            - "    <tr class=\"highlight\">"
1373
            - "  <tr class=\"highlight\">"
1402
            - "      <td>Total:</td>"
1374
            - "    <td>Total: </td>"
1403
            - "      <td>[% payment.amount * -1 | $Price %]</td>"
1375
            - "    <td>[% credit.amount * -1| $Price %]</td>"
1376
            - "  </tr>"
1377
            - "  <tr>"
1378
            - "    <td>Tendered: </td>"
1379
            - "    <td>[% collected | $Price %]</td>"
1380
            - "  </tr>"
1381
            - "  <tr>"
1382
            - "    <td>Change: </td>"
1383
            - "    <td>[% change | $Price %]</td>"
1384
            - "    </tr>"
1404
            - "    </tr>"
1385
            - "</tfoot>"
1405
            - "    <tr>"
1406
            - "      <td>Tendered: </td>"
1407
            - "      <td>[% tendered | $Price %]</td>"
1408
            - "    </tr>"
1409
            - "    <tr>"
1410
            - "      <td>Change given:</td>"
1411
            - "      <td>[% change | $Price %]</td>"
1412
            - "    </tr>"
1413
            - "  </tfoot>"
1386
            - "</table>"
1414
            - "</table>"
1387
1415
1388
        - module: reserves
1416
        - module: reserves
1389
- 

Return to bug 24381