Esempio n. 1
0
</th>
                        <th> <?php 
echo LangUtil::$pageTerms['Remarks'];
?>
</th>
                        <th><?php 
echo "Update";
?>
</th>
                       
		</tr>
	</thead>
<?php 
$r_id = $_REQUEST['id'];
$lid = $_SESSION['$lab_config_id'];
$stocks_list = Inventory::getStocksList($lid, $r_id);
foreach ($stocks_list as $stock) {
    ?>
  <tbody>
		<tr>
			<td><?php 
    echo $stock['lot'];
    ?>
</td>
			<td><?php 
    ?>
</td>
			<td><?php 
    $uni = $reagent['unit'];
    if ($uni == '') {
        echo "units";
Esempio n. 2
0
 public function get_stock_lots($r_id)
 {
     if ($_SESSION['level'] < 2 || $_SESSION['level'] > 4) {
         $user = get_user_by_id($_SESSION['user_id']);
         $lid = $user->labConfigId;
     }
     if ($lid == null) {
         $lid = get_lab_config_id_admin($_SESSION['user_id']);
     }
     $stocks_list = Inventory::getStocksList($lid, $r_id);
     $cc = 1;
     foreach ($stocks_list as $stock) {
         $quant = Inventory::getQuantity($lid, $reagent['id']);
         // $uni = $reagent['unit'];
         $spec[$cc]['id'] = $stock['id'];
         $spec[$cc]['lot'] = $stock['lot'];
         $spec[$cc]['manufacturer'] = $stock['manufacturer'];
         $spec[$cc]['supplier'] = $stock['supplier'];
         $spec[$cc]['date_of_reception'] = $stock['date_of_reception'];
         $spec[$cc]['remarks'] = $stock['remarks'];
         $dp = explode("-", $stock['expiry_date']);
         $e_date = $dp[2] . "/" . $dp[1] . "/" . $dp[0];
         $spec[$cc]['expiry_date'] = $e_date;
         $spec[$cc]['current_quantity'] = Inventory::getLotQuantity($lid, $r_id, $stock['lot']);
         $spec[$cc]['quantity_supplied'] = $stock['quantity_suppied'];
         $cc++;
     }
     //$spec = get_specimen_by_id($specimen_id);
     if (count($spec) > 0) {
         $ret = $spec;
     } else {
         $ret = 0;
     }
     return $ret;
 }