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

(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-32 / +31 lines)
Lines 52-57 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 %]"
56
            - "[% PROCESS 'accounts.inc' %]"
55
            - "<table>"
57
            - "<table>"
56
            - "[% IF ( LibraryName ) %]"
58
            - "[% IF ( LibraryName ) %]"
57
            - " <tr>"
59
            - " <tr>"
Lines 67-79 tables: Link Here
67
            - " </tr>"
69
            - " </tr>"
68
            - " <tr>"
70
            - " <tr>"
69
            - "    <th colspan=\"4\" class=\"centerednames\">"
71
            - "    <th colspan=\"4\" class=\"centerednames\">"
70
            - "        <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>"
72
            - "        <h2>[% Branches.GetName( credit.patron.branchcode ) | html %]</h2>"
71
            - "    </th>"
73
            - "    </th>"
72
            - " </tr>"
74
            - " </tr>"
73
            - " <tr>"
75
            - " <tr>"
74
            - "    <th colspan=\"4\">"
76
            - "    <th colspan=\"4\">"
75
            - "        Received with thanks from  [% patron.firstname | html %] [% patron.surname | html %] <br />"
77
            - "        Received with thanks from  [% credit.patron.firstname | html %] [% credit.patron.surname | html %] <br />"
76
            - "        Card number: [% patron.cardnumber | html %]<br />"
78
            - "        Card number: [% credit.patron.cardnumber | html %]<br />"
77
            - "    </th>"
79
            - "    </th>"
78
            - " </tr>"
80
            - " </tr>"
79
            - "  <tr>"
81
            - "  <tr>"
Lines 83-104 tables: Link Here
83
            - "    <th>Amount</th>"
85
            - "    <th>Amount</th>"
84
            - " </tr>"
86
            - " </tr>"
85
            - ""
87
            - ""
86
            - "  [% FOREACH account IN accounts %]"
88
            - " <tr class=\"highlight\">"
87
            - "    <tr class=\"highlight\">"
89
            - "    <td>[% credit.date | $KohaDates %]</td>"
88
            - "      <td>[% account.date | $KohaDates %]</td>"
90
            - "    <td>"
89
            - "      <td>"
91
            - "      [% PROCESS account_type_description account=credit %]"
90
            - "        [% PROCESS account_type_description account=account %]"
92
            - "      [%- IF credit.description %], [% credit.description | html %][% END %]"
91
            - "        [%- IF account.description %], [% account.description | html %][% END %]"
93
            - "    </td>"
92
            - "      </td>"
94
            - "    <td>[% credit.note | html %]</td>"
93
            - "      <td>[% account.note | html %]</td>"
95
            - "    <td class=\"credit\">[% credit.amount | $Price %]</td>"
94
            - "      [% IF ( account.amountcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amount | $Price %]</td>"
96
            - " </tr>"
95
            - "    </tr>"
96
            - ""
97
            - ""
97
            - "  [% END %]"
98
            - "<tfoot>"
98
            - "<tfoot>"
99
            - "  <tr>"
99
            - "  <tr>"
100
            - "    <td colspan=\"3\">Total outstanding dues as on date: </td>"
100
            - "    <td colspan=\"3\">Total outstanding dues as on date: </td>"
101
            - "    [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>"
101
            - "    [% IF ( credit.patron.account.balance >= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% credit.patron.account.balance | $Price %]</td>"
102
            - "  </tr>"
102
            - "  </tr>"
103
            - "</tfoot>"
103
            - "</tfoot>"
104
            - "</table>"
104
            - "</table>"
Lines 112-117 tables: Link Here
112
          message_transport_type: print
112
          message_transport_type: print
113
          lang: default
113
          lang: default
114
          content:
114
          content:
115
            - "[% USE Price %]"
116
            - "[% PROCESS 'accounts.inc' %]"
115
            - "<table>"
117
            - "<table>"
116
            - "  [% IF ( LibraryName ) %]"
118
            - "  [% IF ( LibraryName ) %]"
117
            - "    <tr>"
119
            - "    <tr>"
Lines 128-140 tables: Link Here
128
            - "  </tr>"
130
            - "  </tr>"
129
            - "  <tr>"
131
            - "  <tr>"
130
            - "    <th colspan=\"5\" class=\"centerednames\">"
132
            - "    <th colspan=\"5\" class=\"centerednames\">"
131
            - "      <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>"
133
            - "      <h2>[% Branches.GetName( debit.patron.branchcode ) | html %]</h2>"
132
            - "    </th>"
134
            - "    </th>"
133
            - "  </tr>"
135
            - "  </tr>"
134
            - "  <tr>"
136
            - "  <tr>"
135
            - "    <th colspan=\"5\" >"
137
            - "    <th colspan=\"5\" >"
136
            - "      Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />"
138
            - "      Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %] <br />"
137
            - "      Card number: [% patron.cardnumber | html %]<br />"
139
            - "      Card number: [% debit.patron.cardnumber | html %]<br />"
138
            - "    </th>"
140
            - "    </th>"
139
            - "  </tr>"
141
            - "  </tr>"
140
            - "  <tr>"
142
            - "  <tr>"
Lines 145-167 tables: Link Here
145
            - "    <th style=\"text-align:right;\">Amount outstanding</th>"
147
            - "    <th style=\"text-align:right;\">Amount outstanding</th>"
146
            - "  </tr>"
148
            - "  </tr>"
147
            - ""
149
            - ""
148
            - "  [% FOREACH account IN accounts %]"
150
            - "  <tr class=\"highlight\">"
149
            - "    <tr class=\"highlight\">"
151
            - "    <td>[% debit.date | $KohaDates%]</td>"
150
            - "      <td>[% account.date | $KohaDates%]</td>"
152
            - "    <td>"
151
            - "      <td>"
153
            - "      [% PROCESS account_type_description account=debit %]"
152
            - "        [% PROCESS account_type_description account=account %]"
154
            - "      [%- IF debit.description %], [% debit.description | html %][% END %]"
153
            - "        [%- IF account.description %], [% account.description | html %][% END %]"
155
            - "    </td>"
154
            - "      </td>"
156
            - "    <td>[% debit.note | html %]</td>"
155
            - "      <td>[% account.note | html %]</td>"
157
            - "    <td class=\"debit\">[% debit.amount | $Price %]</td>"
156
            - "      [% IF ( account.amountcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amount | $Price %]</td>"
158
            - "    <td class=\"debit\">[% debit.amountoutstanding | $Price %]</td>"
157
            - "      [% IF ( account.amountoutstandingcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% account.amountoutstanding | $Price %]</td>"
159
            - "  </tr>"
158
            - "    </tr>"
159
            - "  [% END %]"
160
            - ""
160
            - ""
161
            - "  <tfoot>"
161
            - "  <tfoot>"
162
            - "    <tr>"
162
            - "    <tr>"
163
            - "      <td colspan=\"4\">Total outstanding dues as on date: </td>"
163
            - "      <td colspan=\"4\">Total outstanding dues as on date: </td>"
164
            - "      [% IF ( totalcredit ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% total | $Price %]</td>"
164
            - "      [% IF ( debit.patron.account.balance <= 0 ) %]<td class=\"credit\">[% ELSE %]<td class=\"debit\">[% END %][% debit.patron.account.balance | $Price %]</td>"
165
            - "    </tr>"
165
            - "    </tr>"
166
            - "  </tfoot>"
166
            - "  </tfoot>"
167
            - "</table>"
167
            - "</table>"
168
- 

Return to bug 26734