Student Details
Issued Books
db->get_where('lms_books', ['id' => $bdata['book_id']])->row_array(); $gsData = $this->LmsAdmin_Model->getGeneralSettingData('lms_general_settings'); if ($gsData) { $late_fee = $gsData['due_fee_per_day']; } if ($bookData['fine_per_day'] == 0) { $fineperday = $late_fee; } else { $fineperday = $bookData['fine_per_day']; } //calculating over due days /*$today = date('Y-m-d'); $return_date = $bdata['return_date']; $overdue_diff = strtotime($today)-strtotime($return_date); $overdue_days = round($overdue_diff / 86400); if($today>$return_date){ $oddays = $overdue_days; $latefee = ($fineperday)*($oddays); }elseif($today<=$return_date){ $oddays = 0; $latefee = 0; }*/ $issDateObj = new DateTime($bdata['issued_date']); $issueDate = $issDateObj->format('Y-m-d'); $todayDateObj = new DateTime($npCurrDate); $todayIs = $todayDateObj->format('Y-m-d'); $retDateObj = new DateTime($bdata['return_date']); $returnDate = $retDateObj->format('Y-m-d'); $over_due_days = 0; $latefee = 0; $class = ''; $over_due_days = 0; $date11 = date_create($returnDate); $date22 = date_create($todayIs); $over_due_days = $date11->diff($date22)->format("%r%a"); if ($over_due_days > 0) $class = 'due'; if ($over_due_days < 0) $over_due_days = 0; if ($todayIs > $returnDate) { $latefee = ($fineperday) * ($over_due_days); } ?>
S.No ISBN Title Issued On Due Date Over Due Late Fee Received Comment
format(DATE_FORMAT); ?> format(DATE_FORMAT); ?> Days