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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js (-3 / +13 lines)
Lines 183-193 $(document).ready(function() { Link Here
183
                {
183
                {
184
                    "iDataSort": 1, // Sort on hidden unformatted date due column
184
                    "iDataSort": 1, // Sort on hidden unformatted date due column
185
                    "mDataProp": function( oObj ) {
185
                    "mDataProp": function( oObj ) {
186
                        var due = oObj.date_due_formatted;
187
186
                        if ( oObj.date_due_overdue ) {
188
                        if ( oObj.date_due_overdue ) {
187
                            return "<span class='overdue'>" + oObj.date_due_formatted + "</span>";
189
                            due = "<span class='overdue'>" + due + "</span>";
188
                        } else {
190
                        }
189
                            return oObj.date_due_formatted;
191
192
                        if ( oObj.lost ) {
193
                            due += "<span class='lost'>" + oObj.lost + "</span>";
190
                        }
194
                        }
195
196
                        if ( oObj.damaged ) {
197
                            due += "<span class='dmg'>" + oObj.damaged + "</span>";
198
                        }
199
200
                        return due;
191
                    }
201
                    }
192
                },
202
                },
193
                {
203
                {
(-)a/svc/checkouts (-3 / +7 lines)
Lines 25-32 use JSON qw(to_json); Link Here
25
25
26
use C4::Auth qw(check_cookie_auth);
26
use C4::Auth qw(check_cookie_auth);
27
use C4::Biblio qw(GetMarcBiblio GetFrameworkCode GetRecordValue );
27
use C4::Biblio qw(GetMarcBiblio GetFrameworkCode GetRecordValue );
28
use C4::Circulation
28
use C4::Circulation qw(GetIssuingCharges CanBookBeRenewed GetRenewCount GetSoonestRenewDate);
29
  qw(GetIssuingCharges CanBookBeRenewed GetRenewCount GetSoonestRenewDate);
29
use C4::Koha qw(GetAuthorisedValueByCode);
30
use C4::Context;
30
use C4::Context;
31
31
32
use Koha::DateUtils;
32
use Koha::DateUtils;
Lines 86-91 my $sql = ' Link Here
86
        firstname,
86
        firstname,
87
        cardnumber,
87
        cardnumber,
88
88
89
        itemlost,
90
        damaged,
91
89
        DATEDIFF( issuedate, CURRENT_DATE() ) AS not_issued_today
92
        DATEDIFF( issuedate, CURRENT_DATE() ) AS not_issued_today
90
    FROM issues
93
    FROM issues
91
        LEFT JOIN items USING ( itemnumber )
94
        LEFT JOIN items USING ( itemnumber )
Lines 175-180 while ( my $c = $sth->fetchrow_hashref() ) { Link Here
175
            GetMarcBiblio( $c->{biblionumber} ),
178
            GetMarcBiblio( $c->{biblionumber} ),
176
            GetFrameworkCode( $c->{biblionumber} )
179
            GetFrameworkCode( $c->{biblionumber} )
177
        ),
180
        ),
181
        lost => $c->{itemlost} ? GetAuthorisedValueByCode( 'LOST', $c->{itemlost} ) : undef,
182
        damaged => $c->{damaged} ? GetAuthorisedValueByCode( 'DAMAGED', $c->{damaged} ) : undef,
178
        borrower => {
183
        borrower => {
179
            surname    => $c->{surname},
184
            surname    => $c->{surname},
180
            firstname  => $c->{firstname},
185
            firstname  => $c->{firstname},
181
- 

Return to bug 12778