[Koha-bugs] [Bug 8129] New: quick slips issuing does not work

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 18 23:14:37 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8129

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8129
                CC: gmcharlt at gmail.com
          Assignee: kyle.m.hall at gmail.com
           Summary: quick slips issuing does not work
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: leonardobareno at gmail.com
          Hardware: All
            Status: NEW
           Version: rel_3_8
         Component: Circulation
           Product: Koha

in ./C4/Members.pm, IssueSlip function,

$today string has "yyyy-mm-dd" format, but $it->{'issuedate'} and
$it->{'due_date'} are in "yyyy-mm-ddThh:mm:ss" format, so the "eq" and "le"
string comparisons made later are not going to work.

suggested edition in ./C4/Members.pm:

    if ((substr $it->{'issuedate'}, 0, 10) eq $today) {
            $it->{'today'} = 1;
        }
        elsif ((substr $it->{'date_due'}, 0, 10) le $today) {
            $it->{'overdue'} = 1;
        }

        $it->{'date_due'}=format_date($it->{'date_due'});
    }


please accept my apologies for my lack of bugEtiquette.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list