Exemplo n.º 1
0
<?php

require_once '../../lib/defination.class.php';
include '../../lib/stock.class.php';
include '../../lib/stkReturn.class.php';
$stock = new Stock();
$stock_info = $stock->retriveStockItem();
$output = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name');
//echo $output;
$part_number = options_for_select($stock->retriveStockItem(), 'stock_item_part_id', 'stock_item_part_id');
$locations = options_for_select($stock->retriveLocation(), 'stock_location_id', 'stock_location_name');
$StockReturn = new StockReturn();
$num = $StockReturn->getNewId();
?>


<div id="note"> </div>
<form id="consumptionForm" name="consumptionForm" method="post"   action="includes/model/stock_return_actions.php" >	

		
		
	

	<div class='morelabel'>
		<p>	
			<label>Date </label>
			<input type="text" name="date_of_submit" value="" id="submit_date" class="date" />
		</p>
			
		<p>
			<label>Location:</label>
Exemplo n.º 2
0
<?php

session_start();
require_once '../../lib/stkReturn.class.php';
require_once '../../lib/stock.class.php';
extract($_POST);
//print_r($_POST);
$userId = $_SESSION[userid];
$StockReturn = new StockReturn();
$stock = new Stock();
$getData = "'','{$return_num}','{$date_of_submit}','','{$userId}'";
extract($StockReturn->CreateStockReturnMaster($getData));
$getData = '';
$counter = $id;
for ($i = 0; $i < count($stock_item); $i++) {
    $getData = "'null',\t{$counter},\n\t\t\t\t\t\t\t\t{$stock_item[$i]},\n\t\t\t\t\t\t\t\t{$item_qty[$i]},\n\t\t\t\t\t\t\t\t{$item_rate[$i]},\n\t\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t\t{$item_total[$i]}";
    $StockReturn->CreateStockReturnDetails($getData);
    $item_cl_balance_data = $stock->retriveStockItemByid($stock_item[$i]);
    $item_cl_balance = $item_cl_balance_data[0]["stock_item_cl_balance"];
    $stock->updateAddClBalance($stock_item[$i], $item_cl_balance, $item_qty[$i]);
    $prev_item_rejected_qty = $item_cl_balance_data[0]["stock_rejected_qty"];
    $current_rejected_qty = $prev_item_rejected_qty + $item_qty[$i];
    $stock->updateRejectedQty($stock_item[$i], $current_rejected_qty);
}
echo "<b>Data Save Successsfull</b>";
Exemplo n.º 3
0
<?php

require_once "../../../lib/stkReturn.class.php";
require_once "../../../lib/helper_functions.php";
$stock_return = new StockReturn();
//	echo "<pre>";
//		var_dump($mrr->findMrrList());
//	echo "</pre>";
$stock_returns = $stock_return->findStockReturnList();
?>

	 <div id="inline_form">
			
			<div class="mediumbody">
				<div class="lowbanner1"> </div>
	            <div class="lowbannertest">	
					<ul>
						<li style="width:130px">Stock Return # </li>
						<li style="width:240px">Stock Item</li>
						<li style="width:130px">Create Date</li>  
						<li style="width:50px"></li> 
					</ul>
				</div>
	            <div class="lowbanner3"> </div>	
		</div> 

	
	<?php 
if (!empty($stock_returns)) {
    ?>
Exemplo n.º 4
0
<?php

require_once "../../../lib/stkReturn.class.php";
require_once "../../../lib/helper_functions.php";
$StockReturn = new StockReturn();
$stock_returns = $StockReturn->PrintDetailsOfStockReturn((int) $_GET[id]);
// echo "<pre>";
// 	var_dump($getPassDetails);
// echo "</pre>";
$row = count($stock_returns);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Print Stock Return</title>
<link href="../../../css/report.css" rel="stylesheet" type="text/css" />
</head>

<body>

<table width="50%" height="67" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="26" align="center" valign="top"><h1>Square Textiles Ltd.</h1>
          <p class="style1">Saradaganj, Kashimpur, Gazipur </p></td>
        </tr>
        <tr>
        <td height="26" align="center" valign="top"><p><b>Stock Return</b></p></td>
    </tr>
</table>
Exemplo n.º 5
0
<?php

require_once "../../../lib/stkReturn.class.php";
require_once "../../../lib/helper_functions.php";
$StockReturn = new StockReturn();
$stock_returns = $StockReturn->FindViewOfStockReturn((int) $_GET[id]);
?>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><a class="button" href="includes/contents/voucher_print/print_stock_return.php?id=<?php 
echo $_GET[id];
?>
"  title="Print Stock Return">Print</a></td>
  </tr>
</table>

	 <div id="inline_form">
			
			<div class="mediumbody">
				<div class="lowbanner1"> </div>
	            <div class="lowbannertest">	
					<ul>
						<li style="width:250px">Items </li>
						<li style="width:115px">Code #</li>  
						<li style="width:80px">Qty.</li> 
						<li style="width:120px">Price</li> 
						<li style="width:70px">Value</li> 
					</ul>
				</div>
	            <div class="lowbanner3"> </div>	
		</div>