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 265-271 Link Here
265
                                                    <tr>
265
                                                    <tr>
266
                                                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
266
                                                        [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
267
                                                            <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></td>
267
                                                            <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></td>
268
                                                            <td style='text-align:right'>[% guarantee.account.balance %]</td>
268
                                                            <td style='text-align:right'>[% guarantee.account.balance | html %]</td>
269
                                                        [% ELSE %]
269
                                                        [% ELSE %]
270
                                                            <td>[% guarantee.firstname | html %] [% guarantee.surname | html %]</td>
270
                                                            <td>[% guarantee.firstname | html %] [% guarantee.surname | html %]</td>
271
                                                        [% END %]
271
                                                        [% END %]
Lines 273-279 Link Here
273
                                                    [% END %]
273
                                                    [% END %]
274
                                                    [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
274
                                                    [% IF logged_in_user.can_see_patron_infos( guarantee ) %]
275
                                                       <td>Total</td>
275
                                                       <td>Total</td>
276
                                                       <td style='text-align:right'>[% amounttot %]</td>
276
                                                       <td style='text-align:right'>[% amounttot | html %]</td>
277
                                                    [% END %]
277
                                                    [% END %]
278
                                                </table>
278
                                                </table>
279
                                            </li>
279
                                            </li>
280
- 

Return to bug 12446