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

(-)a/circ/add_message.pl (-5 lines)
Lines 26-36 use C4::Context; Link Here
26
use C4::Auth;
26
use C4::Auth;
27
use C4::Output;
27
use C4::Output;
28
use C4::Members;
28
use C4::Members;
29
use C4::Accounts;
30
use C4::Stats;
31
use C4::Koha;
32
use C4::Overdues;
33
use C4::Branch;    # GetBranches
34
29
35
my $input = new CGI;
30
my $input = new CGI;
36
31
(-)a/circ/branchoverdues.pl (-2 / +1 lines)
Lines 49-57 use Data::Dumper; Link Here
49
 	level 3 : only methode is possible  : - Considered Lost
49
 	level 3 : only methode is possible  : - Considered Lost
50
50
51
 	the documents displayed on this interface, are checked on three points
51
 	the documents displayed on this interface, are checked on three points
52
 	- 1) the document must be on accountlines (Type 'FU')
52
    - 1) the document must be overdue with fines
53
 	- 2) item issues is not returned
53
 	- 2) item issues is not returned
54
	- 3) this item as not been already notify
55
54
56
  FIXME: who is the author?
55
  FIXME: who is the author?
57
  FIXME: No privisions (i.e. "actions") for handling notices are implemented.
56
  FIXME: No privisions (i.e. "actions") for handling notices are implemented.
(-)a/circ/circulation.pl (-3 / +1 lines)
Lines 467-474 foreach my $flag ( sort keys %$flags ) { Link Here
467
my $amountold = $borrower->{flags}->{'CHARGES'}->{'message'} || 0;
467
my $amountold = $borrower->{flags}->{'CHARGES'}->{'message'} || 0;
468
$amountold =~ s/^.*\$//;    # remove upto the $, if any
468
$amountold =~ s/^.*\$//;    # remove upto the $, if any
469
469
470
my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
471
472
if ( $borrowernumber && $borrower->{'category_type'} eq 'C') {
470
if ( $borrowernumber && $borrower->{'category_type'} eq 'C') {
473
    my  ( $catcodes, $labels ) =  GetborCatFromCatType( 'A', 'WHERE category_type = ?' );
471
    my  ( $catcodes, $labels ) =  GetborCatFromCatType( 'A', 'WHERE category_type = ?' );
474
    my $cnt = scalar(@$catcodes);
472
    my $cnt = scalar(@$catcodes);
Lines 545-551 $template->param( Link Here
545
    duedatespec       => $duedatespec,
543
    duedatespec       => $duedatespec,
546
    message           => $message,
544
    message           => $message,
547
    CGIselectborrower => $CGIselectborrower,
545
    CGIselectborrower => $CGIselectborrower,
548
    totaldue          => sprintf('%.2f', $total),
546
    totaldue          => sprintf('%.2f', $borrower->{account_balance}),
549
    inprocess         => $inprocess,
547
    inprocess         => $inprocess,
550
    is_child          => ($borrowernumber && $borrower->{'category_type'} eq 'C'),
548
    is_child          => ($borrowernumber && $borrower->{'category_type'} eq 'C'),
551
    circview => 1,
549
    circview => 1,
(-)a/circ/del_message.pl (-5 lines)
Lines 26-36 use C4::Context; Link Here
26
use C4::Auth;
26
use C4::Auth;
27
use C4::Output;
27
use C4::Output;
28
use C4::Members;
28
use C4::Members;
29
use C4::Accounts;
30
use C4::Stats;
31
use C4::Koha;
32
use C4::Overdues;
33
use C4::Branch;    # GetBranches
34
29
35
my $input = new CGI;
30
my $input = new CGI;
36
31
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/browser-strings.inc (+33 lines)
Lines 1-7 Link Here
1
[% USE AuthorisedValues %]
1
<script type="text/javascript">
2
<script type="text/javascript">
2
//<![CDATA[
3
//<![CDATA[
3
    var BROWSER_RETURN_TO_SEARCH = _("Return to results");
4
    var BROWSER_RETURN_TO_SEARCH = _("Return to results");
4
    var BROWSER_PREVIOUS = _("Previous");
5
    var BROWSER_PREVIOUS = _("Previous");
5
    var BROWSER_NEXT = _("Next");
6
    var BROWSER_NEXT = _("Next");
7
8
    var STRINGS = {
9
        "DebitTypes": {
10
            "FINE"                      : _("Fine"),
11
            "ACCOUNT_MANAGEMENT_FEE"    : _("Account management fee"),
12
            "SUNDRY"                    : _("Sundry"),
13
            "LOST"                      : _("Lost item"),
14
            "HOLD"                      : _("Hold fee"),
15
            "RENTAL"                    : _("Rental fee"),
16
            "NEW_CARD"                  : _("New card"),
17
            [% FOREACH a IN AuthorisedValues.Get('MANUAL_INV') %]
18
                "[% a.authorised_value %]" : "[% a.lib %]",
19
            [% END %]
20
        },
21
22
        "CreditTypes": {
23
            "CREDIT"                    : _("Credit"),
24
            "PAYMENT"                   : _("Payment"),
25
            "WRITEOFF"                  : _("Writeoff"),
26
            "FOUND"                     : _("Lost item found"),
27
            "FORGIVEN"                  : _("Forgiven"),
28
            [% FOREACH a IN AuthorisedValues.Get('MANUAL_CREDIT') %]
29
                "[% a.authorised_value %]" : "[% a.lib %]",
30
            [% END %]
31
        },
32
33
        "OffsetTypes": {
34
            "DROPBOX"                   : _("Dropbox fine reduction"),
35
            "FINE"                      : _("Fine increment"),
36
            "VOID"                      : _("Voided"),
37
        },
38
    }
6
//]]>
39
//]]>
7
</script>
40
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-1 / +1 lines)
Lines 67-73 Link Here
67
        [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
67
        [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
68
    [% END %]
68
    [% END %]
69
    [% IF ( CAN_user_updatecharges ) %]
69
    [% IF ( CAN_user_updatecharges ) %]
70
        [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
70
        [% IF ( accounts_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/account.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
71
    [% END %]
71
    [% END %]
72
    [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %]
72
    [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %]
73
    [% IF ( intranetreadinghistory ) %]
73
    [% IF ( intranetreadinghistory ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt (-1 / +1 lines)
Lines 70-76 in the global namespace %] Link Here
70
	[% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">Details</a></li>
70
	[% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">Details</a></li>
71
	[% END %]
71
	[% END %]
72
	 [% IF ( CAN_user_updatecharges ) %]
72
	 [% IF ( CAN_user_updatecharges ) %]
73
	[% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Fines</a></li>
73
     [% IF ( accounts_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/account.pl?borrowernumber=[% borrower.borrowernumber %]">Fines</a></li>
74
	[% END %]
74
	[% END %]
75
    [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrower.borrowernumber %]">Routing lists</a></li>[% END %]
75
    [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrower.borrowernumber %]">Routing lists</a></li>[% END %]
76
    [% IF ( intranetreadinghistory ) %][% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrower.borrowernumber %]">Circulation history</a></li>[% END %]
76
    [% IF ( intranetreadinghistory ) %][% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrower.borrowernumber %]">Circulation history</a></li>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc (+1 lines)
Lines 1-4 Link Here
1
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
1
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
2
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/TableTools/media/js/TableTools.min.js"></script>
2
<script type="text/javascript">
3
<script type="text/javascript">
3
//<![CDATA[
4
//<![CDATA[
4
    var MSG_DT_FIRST = _("First");
5
    var MSG_DT_FIRST = _("First");
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc (-1 / +1 lines)
Lines 4-10 Link Here
4
    [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
4
    [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
5
    [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
5
    [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
6
    [% IF ( CAN_user_updatecharges ) %]
6
    [% IF ( CAN_user_updatecharges ) %]
7
        [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
7
        [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/account.pl?borrowernumber=[% borrowernumber %]">Fines</a></li>
8
    [% END %]
8
    [% END %]
9
    [% IF ( intranetreadinghistory ) %]
9
    [% IF ( intranetreadinghistory ) %]
10
        [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
10
        [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js (+24 lines)
Lines 28-33 var dataTablesDefaults = { Link Here
28
    "iDisplayLength": 20
28
    "iDisplayLength": 20
29
};
29
};
30
30
31
// Set the classes that TableTools uses to something suitable for Bootstrap
32
$.extend( true, $.fn.DataTable.TableTools.classes, {
33
    "container": "btn-group",
34
    "buttons": {
35
        "normal": "btn btn-small",
36
        "disabled": "btn btn-small disabled"
37
    },
38
    "collection": {
39
        "container": "DTTT_dropdown dropdown-menu",
40
        "buttons": {
41
            "normal": "",
42
            "disabled": "disabled"
43
        }
44
    }
45
} );
46
47
// Have the collection use a bootstrap compatible dropdown
48
$.extend( true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
49
    "collection": {
50
        "container": "ul",
51
        "button": "li",
52
        "liner": "a"
53
    }
54
} );
31
55
32
// Return an array of string containing the values of a particular column
56
// Return an array of string containing the values of a particular column
33
$.fn.dataTableExt.oApi.fnGetColumnData = function ( oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty ) {
57
$.fn.dataTableExt.oApi.fnGetColumnData = function ( oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt (-1 lines)
Lines 45-51 Link Here
45
	- <b>Warning:</b> This report is very resource intensive on
45
	- <b>Warning:</b> This report is very resource intensive on
46
	systems with large numbers of overdue items.</li>[% END %]
46
	systems with large numbers of overdue items.</li>[% END %]
47
	<li>    <a href="/cgi-bin/koha/circ/branchoverdues.pl">Overdues with fines</a> - Limited to your library.  See report help for other details.</li>
47
	<li>    <a href="/cgi-bin/koha/circ/branchoverdues.pl">Overdues with fines</a> - Limited to your library.  See report help for other details.</li>
48
<!--	<li>    <a href="/cgi-bin/koha/circ/stats.pl?time=yesterday">Daily reconciliation</a></li> -->
49
</ul>
48
</ul>
50
	
49
	
51
	</div>
50
	</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-3 / +4 lines)
Lines 1-5 Link Here
1
[% USE Branches %]
1
[% USE Branches %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE Currency %]
3
[% IF ( export_remove_fields OR export_with_csv_profile ) %]
4
[% IF ( export_remove_fields OR export_with_csv_profile ) %]
4
   [% SET exports_enabled = 1 %]
5
   [% SET exports_enabled = 1 %]
5
[% END %]
6
[% END %]
Lines 574-589 No patron matched <span class="ex">[% message %]</span> Link Here
574
575
575
        	[% IF ( charges ) %]
576
        	[% IF ( charges ) %]
576
			    <li>
577
			    <li>
577
            <span class="circ-hlt">Fees &amp; Charges:</span> Patron has  <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees &amp; charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>.
578
            <span class="circ-hlt">Fees &amp; Charges:</span> Patron has  <a href="/cgi-bin/koha/members/account.pl?borrowernumber=[% borrowernumber %]">Outstanding fees &amp; charges[% IF ( chargesamount ) %] of [% chargesamount | $Currency %][% END %]</a>.
578
                [% IF ( charges_is_blocker ) %]
579
                [% IF ( charges_is_blocker ) %]
579
                    Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
580
                    Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
580
                [% END %]
581
                [% END %]
581
            <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
582
            <a href="/cgi-bin/koha/members/account_payment.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
582
			[% END %]
583
			[% END %]
583
584
584
        	[% IF ( credits ) %]
585
        	[% IF ( credits ) %]
585
			<li>
586
			<li>
586
                <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
587
                <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Currency %][% END %]
587
            </li>
588
            </li>
588
			[% END %]
589
			[% END %]
589
590
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +1 lines)
Lines 116-122 $(document).ready(function () { Link Here
116
[% IF ( fines ) %]
116
[% IF ( fines ) %]
117
    <div class="dialog alert">
117
    <div class="dialog alert">
118
        <h3>Patron has outstanding fines of [% fines %].</h3>
118
        <h3>Patron has outstanding fines of [% fines %].</h3>
119
        <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
119
        <p><a href="/cgi-bin/koha/members/account_payment.pl?borrowernumber=[% fineborrowernumber %]">Make payment</a>.</p>
120
    </div>
120
    </div>
121
[% END %]
121
[% END %]
122
122
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/reports/guided_reports.tt (-18 lines)
Lines 108-131 Link Here
108
108
109
<h3>DB table value for reports</h3>
109
<h3>DB table value for reports</h3>
110
110
111
<p><strong>Question:</strong> What do the codes in the accounttype field in the accountlines table stand for?</p>
112
113
<p><strong>Answer:</strong></p>
114
115
<ul>
116
	<li>A = Account management fee</li>
117
	<li>C = Credit</li>
118
	<li>F = Overdue fine</li>
119
	<li>FOR = Forgiven</li>
120
	<li>FU = Overdue, still acccruing</li>
121
	<li>L = Lost item</li>
122
	<li>LR = Lost item returned/refunded</li>
123
	<li>M = Sundry</li>
124
	<li>N = New card</li>
125
	<li>PAY = Payment</li>
126
	<li>W = Writeoff</li>
127
</ul>
128
129
<p><strong>Question:</strong> What are the possible codes for the type field in the statistics table?</p>
111
<p><strong>Question:</strong> What are the possible codes for the type field in the statistics table?</p>
130
112
131
<p><strong>Answer:</strong></p>
113
<p><strong>Answer:</strong></p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt (-28 / +51 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE Currency %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
5
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Lines 87-121 Link Here
87
</table>
88
</table>
88
[% END %]
89
[% END %]
89
90
90
[% IF ( accounts && ( totaldue != '0.00' ) ) %]
91
[% IF account_balance %]
91
<table>
92
    [% IF account_debits %]
92
    <caption>Account fines and payments</caption>
93
        <table>
93
    <tr>
94
            <caption>Account fees</caption>
94
        <th>Description of charges</th>
95
            <tr>
95
        <th>Date</th>
96
                <th>Description</th>
96
        <th>Amount</th>
97
                <th>Date</th>
97
        <th>Outstanding</th>
98
                <th>Amount</th>
98
    </tr>
99
                <th>Outstanding</th>
99
    [% FOREACH account IN accounts %]
100
            </tr>
100
    [% NEXT IF account.amountoutstanding == '0.00' %]
101
            [% FOREACH d IN account_debits %]
101
    <tr>
102
                [% IF d.amount_outstanding > 0 %]
102
        <td>
103
                    <tr>
103
            [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
104
                        <td>[% d.description %]</td>
104
            [% account.description %]&nbsp;[% IF ( account.printtitle ) %] [% account.title |html %][% END %]
105
                        <td>[% d.created_on | $KohaDates %]</td>
105
            [% IF ( account.itemnumber ) %]</a>[% END %]
106
                        <td>[% d.amount_original | $Currency %]</td>
106
        </td>
107
                        <td>[% d.amount_outstanding | $Currency %]</td>
107
        <td>[% account.date | $KohaDates %]</td>
108
                    </tr>
108
        <td>[% account.amount %]</td>
109
                [% END %]
109
        <td>[% account.amountoutstanding %]</td>
110
            [% END %]
110
    </tr>
111
            <tfoot>
112
                <tr>
113
                    <td colspan="3">Total due</td>
114
                    <td colspan="2">[% totaldue | $Currency %]</td>
115
                </tr>
116
            </tfoot>
117
        </table>
118
    [% END %]
119
120
    [% FOREACH c IN account_credits %]
121
        [% total_remaining = total_remaining + c.amount_remaining %]
122
    [% END %]
123
    [% IF total_remaining %]
124
        <table>
125
            <caption>Account payments</caption>
126
            <tr>
127
                <th>Date</th>
128
                <th>Amount</th>
129
                <th>Balance remaining</th>
130
            </tr>
131
            [% FOREACH c IN account_credits %]
132
                [% IF c.amount_remaining > 0 %]
133
                    <tr>
134
                        <td>[% c.created_on | $KohaDates %]</td>
135
                        <td>[% c.amount_paid | $Currency %]</td>
136
                        <td>[% c.amount_remaining | $Currency %]</td>
137
                    </tr>
138
                [% END %]
139
            [% END %]
140
        </table>
111
    [% END %]
141
    [% END %]
112
    <tfoot>
113
        <tr>
114
            <td colspan="3">Total due</td>
115
            <td colspan="2">[% totaldue %]</td>
116
        </tr>
117
    </tfoot>
118
</table>
119
[% END %]
142
[% END %]
120
143
121
[% INCLUDE 'intranet-bottom.inc' %]
144
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt (-1 lines)
Lines 65-71 Link Here
65
		<li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a></li>
65
		<li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a></li>
66
        <li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li>
66
        <li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li>
67
        <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li>
67
        <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li>
68
        <!--<li><a href="/cgi-bin/koha/reports/stats.screen.pl">Till reconciliation</a></li> -->
69
	</ul></div>
68
	</ul></div>
70
</div>
69
</div>
71
70
(-)a/members/moremember.pl (-12 / +13 lines)
Lines 220-242 else { Link Here
220
my $branchdetail = GetBranchDetail( $data->{'branchcode'});
220
my $branchdetail = GetBranchDetail( $data->{'branchcode'});
221
@{$data}{keys %$branchdetail} = values %$branchdetail; # merge in all branch columns
221
@{$data}{keys %$branchdetail} = values %$branchdetail; # merge in all branch columns
222
222
223
my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
224
my $lib1 = &GetSortDetails( "Bsort1", $data->{'sort1'} );
223
my $lib1 = &GetSortDetails( "Bsort1", $data->{'sort1'} );
225
my $lib2 = &GetSortDetails( "Bsort2", $data->{'sort2'} );
224
my $lib2 = &GetSortDetails( "Bsort2", $data->{'sort2'} );
226
$template->param( lib1 => $lib1 ) if ($lib1);
225
$template->param( lib1 => $lib1 ) if ($lib1);
227
$template->param( lib2 => $lib2 ) if ($lib2);
226
$template->param( lib2 => $lib2 ) if ($lib2);
228
227
229
# If printing a page, send the account informations to the template
228
# If printing a page, send the account informations to the template
230
if ($print eq "page") {
229
if ( $print eq "page" ) {
231
    foreach my $accountline (@$accts) {
230
    my $schema = Koha::Database->new()->schema();
232
        $accountline->{amount} = sprintf '%.2f', $accountline->{amount};
233
        $accountline->{amountoutstanding} = sprintf '%.2f', $accountline->{amountoutstanding};
234
231
235
        if ($accountline->{accounttype} ne 'F' && $accountline->{accounttype} ne 'FU'){
232
    my @account_debits = $schema->resultset('AccountDebit')
236
            $accountline->{printtitle} = 1;
233
      ->search( { borrowernumber => $borrowernumber } );
237
        }
234
    my @account_credits = $schema->resultset('AccountCredit')
238
    }
235
      ->search( { borrowernumber => $borrowernumber } );
239
    $template->param( accounts => $accts );
236
237
    $template->param(
238
        account_debits  => \@account_debits,
239
        account_credits => \@account_credits,
240
    );
240
}
241
}
241
242
242
# Show OPAC privacy preference is system preference is set
243
# Show OPAC privacy preference is system preference is set
Lines 355-362 $template->param( Link Here
355
    branch          => $branch,
356
    branch          => $branch,
356
    todaysdate      => C4::Dates->today(),
357
    todaysdate      => C4::Dates->today(),
357
    totalprice      => sprintf("%.2f", $totalprice),
358
    totalprice      => sprintf("%.2f", $totalprice),
358
    totaldue        => sprintf("%.2f", $total),
359
    totaldue        => sprintf("%.2f", $data->{account_balance}),
359
    totaldue_raw    => $total,
360
    totaldue_raw    => $data->{account_balance},
360
    overdues_exist  => $overdues_exist,
361
    overdues_exist  => $overdues_exist,
361
    StaffMember     => ($category_type eq 'S'),
362
    StaffMember     => ($category_type eq 'S'),
362
    is_child        => ($category_type eq 'C'),
363
    is_child        => ($category_type eq 'C'),
(-)a/offline_circ/enqueue_koc.pl (-1 lines)
Lines 27-33 use C4::Auth; Link Here
27
use C4::Koha;
27
use C4::Koha;
28
use C4::Context;
28
use C4::Context;
29
use C4::Biblio;
29
use C4::Biblio;
30
use C4::Accounts;
31
use C4::Circulation;
30
use C4::Circulation;
32
use C4::Items;
31
use C4::Items;
33
use C4::Members;
32
use C4::Members;
(-)a/offline_circ/process_koc.pl (-4 / +9 lines)
Lines 27-39 use C4::Auth; Link Here
27
use C4::Koha;
27
use C4::Koha;
28
use C4::Context;
28
use C4::Context;
29
use C4::Biblio;
29
use C4::Biblio;
30
use C4::Accounts;
31
use C4::Circulation;
30
use C4::Circulation;
32
use C4::Items;
31
use C4::Items;
33
use C4::Members;
32
use C4::Members;
34
use C4::Stats;
33
use C4::Stats;
35
use C4::UploadedFile;
34
use C4::UploadedFile;
36
use C4::BackgroundJob;
35
use C4::BackgroundJob;
36
use Koha::Accounts;
37
use Koha::Database;
37
38
38
use Date::Calc qw( Add_Delta_Days Date_to_Days );
39
use Date::Calc qw( Add_Delta_Days Date_to_Days );
39
40
Lines 357-364 sub kocReturnItem { Link Here
357
358
358
sub kocMakePayment {
359
sub kocMakePayment {
359
    my ( $circ ) = @_;
360
    my ( $circ ) = @_;
360
    my $borrower = GetMember( 'cardnumber'=>$circ->{ 'cardnumber' } );
361
361
    recordpayment( $borrower->{'borrowernumber'}, $circ->{'amount'} );
362
    my $borrower =
363
      Koha::Database->new()->schema()->resultset('Borrower')
364
      ->single( { cardnumber => $circ->{'cardnumber'} } );
365
366
    AddCredit({ borrower => $borrower, amount => $circ->{'amount'} });
367
362
    push @output, {
368
    push @output, {
363
        payment => 1,
369
        payment => 1,
364
        amount => $circ->{'amount'},
370
        amount => $circ->{'amount'},
365
- 

Return to bug 6427