<?php

 $mode = 2;
 $readonly = 1;
 $lot_number_h = null;
 $inv_lot_number_id_h = null;

 $invl = new inv_lot_number();
 if (!empty($_GET['onhand_id'])) {
  $onhand_details = inv_lot_onhand::find_by_OnhandId($_GET['onhand_id']);
  $inv_onhand_lot_object = !empty($onhand_details) ? $onhand_details : array($invl);
 }

 if (empty($inv_onhand_lot_object)) {
  $invl->subinventory = null;
  $invl->locator = null;
  $inv_onhand_lot_object = array($invl);
 }
?>