';
$single_invoice_no = '';
$billPrintCount = 0;
$billPrintCountArray = [];
// print_r(($invoicelist));
// print_r(($invoiceids));
$isSingleInvoice = false;
if (count($invoiceids) == 1) {
$isSingleInvoice = true;
}
foreach ($invoicelist as $i_key => $i_value) {
$single_invoice_no = $i_value['invoice_no'];
array_push($billPrintCountArray, $i_value['bill_print_count']);
}
$cssStyle = (!empty($invoicelist) && (count($invoicelist) > 20)) ? 'style="page-break-after: always;"' : '';
?>
>
= $school_info['school_name']; ?>= $school_info['address']; ?> |
: Original |
|
Student Name : = $studentinfo['studentname'] ?>
Parent PAN: = $studentinfo['parent_pan'] ?>
= $isSingleInvoice ? 'Invoice Number' : 'Bill Print Count' ?>: = $isSingleInvoice ? $single_invoice_no : $billPrintCountArray[0] ?>
Classroom :
db->get_where('section', array('id' => $section_id))->row()->section_name;
// else
// $section_name = '';
// $course_name = $this->db->get_where('course', array('id' => $studentinfo['course_id']))->row()->course_name;
// echo (!empty($section_name)) ? $course_name . ' - ' . $section_name : $course_name;
echo $studentinfo['classroom_name'];
?>
Student ID : = $studentinfo['studentId'] ?>
Batch : = str_replace('Batch ', '', $studentinfo['batch_name']) ?>
BiBill Count : = $billPrintCountArray[0] ?>
Transaction Date & Time : = $nDate ?>
>
= $school_info['school_name']; ?>= $school_info['address']; ?> |
: Copy |
|
Student Name : = $studentinfo['studentname'] ?>
Parent PAN: = $studentinfo['parent_pan'] ?>
= $isSingleInvoice ? 'Invoice Number' : 'Bill Print Count' ?>: = $isSingleInvoice ? $single_invoice_no : $billPrintCountArray[0] ?>
Classroom :
db->get_where('section', array('id' => $section_id))->row()->section_name;
else
$section_name = '';
$course_name = $this->db->get_where('course', array('id' => $studentinfo['course_id']))->row()->course_name;
echo (!empty($section_name)) ? $course_name . ' - ' . $section_name : $course_name;
?>
Student ID : = $studentinfo['studentId'] ?>
Batch : = str_replace('Batch ', '', $studentinfo['batch_name']) ?>
BiBill Count : = $billPrintCountArray[0] ?>
Transaction Date & Time : = $nDate ?>