<?php
$mode = 2;
$readonly = 1;

if (!empty($_GET['inv_lot_number_id'])) {
 $inv_lot_transaction_object = inv_lot_transaction_v::find_by_invlotNumberId($_GET['inv_lot_number_id']);
} 

if (empty($inv_lot_transaction_object)) {
 $inv_lot_transaction_object = [new inv_lot_transaction_v()];
  $lot_number_h = null;
 $inv_lot_number_id_h = null;
}else{
  $lot_number_h = $inv_lot_transaction_object[0]->lot_number;
 $inv_lot_number_id_h = $inv_lot_transaction_object[0]->inv_lot_number_id;
}

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

?>
