<?php

if (!empty($_GET['org_id'])) {
 $org_id_h = $_GET['org_id'];
 $tax_code_object = mdm_tax_code::find_all_by_buOrgId($org_id_h);
} else {
 $org_id_h = null;
 }

 
if(empty($tax_code_object)){
 $tax_code_object = [new mdm_tax_code()];
}

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

?>