customlib->getSchoolCurrencyFormat();
?>
$fee_value) {
$amount_prev_paid = 0;
$fees_fine_amount = 0;
$fine_amount_paid = 0;
$fine_amount_status = false;
$amount_to_be_pay = $fee_value->amount;
if ($fee_value->is_system) {
$amount_to_be_pay = $fee_value->student_fees_master_amount;
}
if (is_string(($fee_value->amount_detail)) && is_array(json_decode(($fee_value->amount_detail), true))) {
$amount_data = json_decode($fee_value->amount_detail);
foreach ($amount_data as $amount_data_key => $amount_data_value) {
$fine_amount_paid+=$amount_data_value->amount_fine;
$amount_prev_paid = $amount_prev_paid + ($amount_data_value->amount + $amount_data_value->amount_discount);
}
if ($fee_value->is_system) {
$amount_to_be_pay = $fee_value->student_fees_master_amount - $amount_prev_paid;
} else {
$amount_to_be_pay = $fee_value->amount - $amount_prev_paid;
}
}
if (($fee_value->due_date != "0000-00-00" && $fee_value->due_date != NULL) && (strtotime($fee_value->due_date) < strtotime(date('Y-m-d'))) && $amount_to_be_pay > 0) {
$fees_fine_amount=$fee_value->fine_amount-$fine_amount_paid;
$total_amount=$total_amount+$fees_fine_amount;
$fine_amount_status=true;
}
$total_amount = $total_amount + $amount_to_be_pay;
if ($amount_to_be_pay > 0) {
?>
-
0) { ?>
lang->line('total') . " " . $this->lang->line('pay'); ?>
lang->line('no_fees_found'); ?>