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

(-)a/C4/Members.pm (+1 lines)
Lines 1180-1185 sub GetMemberAccountRecords { Link Here
1180
            my $biblio = GetBiblioFromItemNumber( $data->{itemnumber} );
1180
            my $biblio = GetBiblioFromItemNumber( $data->{itemnumber} );
1181
            $data->{biblionumber} = $biblio->{biblionumber};
1181
            $data->{biblionumber} = $biblio->{biblionumber};
1182
            $data->{title}        = $biblio->{title};
1182
            $data->{title}        = $biblio->{title};
1183
            $data->{homebranch}   = $biblio->{homebranch};
1183
        }
1184
        }
1184
        $acctlines[$numlines] = $data;
1185
        $acctlines[$numlines] = $data;
1185
        $numlines++;
1186
        $numlines++;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-6 / +8 lines)
Lines 40-46 $(document).ready(function() { Link Here
40
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</div>
40
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</div>
41
41
42
<div id="doc3" class="yui-t2">
42
<div id="doc3" class="yui-t2">
43
   
43
44
   <div id="bd">
44
   <div id="bd">
45
	<div id="yui-main">
45
	<div id="yui-main">
46
	<div class="yui-b">
46
	<div class="yui-b">
Lines 62-67 $(document).ready(function() { Link Here
62
      <tr>
62
      <tr>
63
          <th class="title-string">Date</th>
63
          <th class="title-string">Date</th>
64
          <th>Description of charges</th>
64
          <th>Description of charges</th>
65
          <th>Home library</th>
65
          <th>Note</th>
66
          <th>Note</th>
66
          <th>Amount</th>
67
          <th>Amount</th>
67
          <th>Outstanding</th>
68
          <th>Outstanding</th>
Lines 101-106 $(document).ready(function() { Link Here
101
        [%- END -%]
102
        [%- END -%]
102
        [%- IF account.description %], [% account.description %][% END %]
103
        [%- IF account.description %], [% account.description %][% END %]
103
        &nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">View item</a>&nbsp;[% END %][% account.title |html %]</td>
104
        &nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">View item</a>&nbsp;[% END %][% account.title |html %]</td>
105
      <td>[%- IF account.homebranch %][% account.homebranch %][% END %]</td>
104
      <td>[% account.note | html_line_break %]</td>
106
      <td>[% account.note | html_line_break %]</td>
105
      [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
107
      [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
106
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
108
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
Lines 125-142 $(document).ready(function() { Link Here
125
  [% END %]
127
  [% END %]
126
<tfoot>
128
<tfoot>
127
  <tr>
129
  <tr>
128
    <td colspan="4">Total due</td>
130
    <td colspan="5">Total due</td>
129
    [% IF ( totalcredit ) %]
131
    [% IF ( totalcredit ) %]
130
      [% IF ( reverse_col ) %]
132
      [% IF ( reverse_col ) %]
131
        <td colspan="3" class="credit">
133
        <td colspan="4" class="credit">
132
      [% ELSE %]
134
      [% ELSE %]
133
        <td colspan="2" class="credit">
135
        <td colspan="3" class="credit">
134
      [% END %]
136
      [% END %]
135
    [% ELSE %]
137
    [% ELSE %]
136
      [% IF ( reverse_col ) %]
138
      [% IF ( reverse_col ) %]
137
        <td colspan="3" class="debit">
139
        <td colspan="4" class="debit">
138
      [% ELSE %]
140
      [% ELSE %]
139
        <td colspan="2" class="credit">
141
        <td colspan="3" class="credit">
140
      [% END %]
142
      [% END %]
141
    [% END %]
143
    [% END %]
142
    [% total %]</td>
144
    [% total %]</td>
(-)a/members/boraccount.pl (-1 / +3 lines)
Lines 89-94 foreach my $accountline ( @{$accts}) { Link Here
89
        $accountline->{payment} = 1;
89
        $accountline->{payment} = 1;
90
        $reverse_col = 1;
90
        $reverse_col = 1;
91
    }
91
    }
92
    if ($accountline->{homebranch}) {
93
        $accountline->{homebranch} = C4::Branch::GetBranchName($accountline->{homebranch});
94
    }
92
}
95
}
93
96
94
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
97
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
95
- 

Return to bug 15136