<?php

$mode = 2;
$readonly = 1;

if (!empty($_GET['inv_serial_number_id'])) {
 $inv_serial_transaction_object = inv_serial_transaction_v::find_by_invSerialNumberId($_GET['inv_serial_number_id']);
} 

if (empty($inv_serial_transaction_object)) {
 $inv_serial_transaction_object = [new inv_serial_transaction_v()];
  $serial_number_h = null;
 $inv_serial_number_id_h = null;
}else{
  $serial_number_h = $inv_serial_transaction_object[0]->serial_number;
 $inv_serial_number_id_h = $inv_serial_transaction_object[0]->inv_serial_number_id;
}

$pageno = !empty($_GET['pageno']) ? $_GET['pageno'] : 1;
$per_page = !empty($_GET['per_page']) ? $_GET['per_page'] : 10;
$total_count = count($inv_serial_transaction_object);
$pagination = new pagination($pageno, $per_page, $total_count);
$pagination->setProperty('_path', 'form');
$position = ($pageno - 1) * $per_page;

?>
