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

(-)a/Koha/Account/Line.pm (+13 lines)
Lines 58-63 sub patron { Link Here
58
    return Koha::Patron->_new_from_dbic( $rs );
58
    return Koha::Patron->_new_from_dbic( $rs );
59
}
59
}
60
60
61
=head3 manager
62
63
Return the manager linked to this account line
64
65
=cut
66
67
sub manager {
68
    my ( $self ) = @_;
69
    my $rs = $self->_result->manager;
70
    return unless $rs;
71
    return Koha::Patron->_new_from_dbic( $rs );
72
}
73
61
=head3 item
74
=head3 item
62
75
63
Return the item linked to this account line if exists
76
Return the item linked to this account line if exists
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt (-12 / +17 lines)
Lines 139-149 Link Here
139
                    <thead>
139
                    <thead>
140
                        <tr>
140
                        <tr>
141
                            <th>Date</th>
141
                            <th>Date</th>
142
                            <th>Change amount</th>
142
                            <th>Change</th>
143
                            <th>Change type</th>
143
                            <th>Action</th>
144
                            <th>Relation</th>
144
                            <th>Transacting librarian</th>
145
                            <th>Transacting librarian</th>
145
                            <th>Note</th>
146
                            <th>Note</th>
146
                            <th>&nbsp;</th>
147
                        </tr>
147
                        </tr>
148
                    </thead>
148
                    </thead>
149
149
Lines 169-187 Link Here
169
                                    <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
169
                                    <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
170
                                    <td>[% ao.amount | $Price %]</td>
170
                                    <td>[% ao.amount | $Price %]</td>
171
                                    <td>
171
                                    <td>
172
                                        [%- IF offset_accountline -%]
172
                                        [% PROCESS ao_description ao=ao %]
173
                                            [% PROCESS account_type_description account=offset_accountline %] ([% PROCESS ao_description ao=ao %])
174
                                        [%- ELSE -%]
175
                                            [% PROCESS ao_description ao=ao %]
176
                                        [%- END -%]
177
                                    </td>
173
                                    </td>
178
                                    <td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td>
179
                                    <td>[% offset_accountline.note | html %]</td>
180
                                    <td>
174
                                    <td>
181
                                        [%- IF offset_accountline -%]
175
                                        [%- IF offset_accountline -%]
182
                                        <a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a>
176
                                        [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
183
                                        [%- END -%]
177
                                        [%- END -%]
184
                                    </td>
178
                                    </td>
179
                                    <td>
180
                                        [% IF offset_accountline.manager_id %]
181
                                        <a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
182
                                            [% IF offset_accountline.manager.firstname %]
183
                                                [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
184
                                            [% ELSE %]
185
                                                [% offset_accountline.manager.surname | html %]
186
                                            [% END %]
187
                                        </a>
188
                                        [% END %]
189
                                    </td>
190
                                    <td>[% offset_accountline.note | html %]</td>
185
                                </tr>
191
                                </tr>
186
                        [% END %]
192
                        [% END %]
187
                    </tbody>
193
                    </tbody>
188
- 

Return to bug 22435