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

(-)a/installer/data/mysql/atomicupdate/bug_12446-EnableAdultGarantee.sql (-1 / +1 lines)
Lines 7-11 VALUES ('AdditionalGuarantorField','',NULL,'Additional fields name to be transfe Link Here
7
-- ********* --
7
-- ********* --
8
-- STRUCTURE --
8
-- STRUCTURE --
9
-- ********* --
9
-- ********* --
10
ALTER TABLE categories ADD COLUMN `canbeguarantee` tinyint(1) NOT NULL default '0';
10
ALTER TABLE categories ADD COLUMN `canbeguarantee` tinyint(1) NOT NULL default '0' AFTER `checkprevcheckout`;
11
UPDATE categories SET canbeguarantee = 1 WHERE category_type = 'P' OR category_type = 'C';
11
UPDATE categories SET canbeguarantee = 1 WHERE category_type = 'P' OR category_type = 'C';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-3 / +2 lines)
Lines 257-263 Link Here
257
                                                    <tr>
257
                                                    <tr>
258
                                                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
258
                                                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
259
                                                            <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></td>
259
                                                            <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></td>
260
                                                            <td style='text-align:right'>[% guarantee.account.balance %]</td>
260
                                                            <td style='text-align:right'>[% guarantee.account.balance | html %]</td>
261
                                                        [% ELSE %]
261
                                                        [% ELSE %]
262
                                                            <td>[% guarantee.firstname | html %] [% guarantee.surname | html %]</td>
262
                                                            <td>[% guarantee.firstname | html %] [% guarantee.surname | html %]</td>
263
                                                        [% END %]
263
                                                        [% END %]
Lines 265-271 Link Here
265
                                                    [% END %]
265
                                                    [% END %]
266
                                                    [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
266
                                                    [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
267
                                                       <td>Total</td>
267
                                                       <td>Total</td>
268
                                                       <td style='text-align:right'>[% amounttot %]</td>
268
                                                       <td style='text-align:right'>[% amounttot | html %]</td>
269
                                                    [% END %]
269
                                                    [% END %]
270
                                                </table>
270
                                                </table>
271
                                            </li>
271
                                            </li>
272
- 

Return to bug 12446