Example #1
0
<?php

require_once 'common/init.php';
$terminallist = new terminal();
$product = new product();
$warehouse = new warehouse();
// Terminal Remove Latest Scan Session Function
if (isset($_POST['action']) && $_POST['action'] == 'removelatestscan') {
    unset($_SESSION['barcode']);
    unset($_SESSION['barcode_detail']);
    return 'sucess';
}
// Terminal Edit Function
if (isset($_POST['action']) && $_POST['action'] == 'edit') {
    $itemqty = $_POST['itemqty'];
    $arrayDelete = $_POST['rowarray'];
    $terminallist->update_qty_item($itemqty, $arrayDelete);
    return 'sucess';
}
// Terminal Delete Function
if (isset($_GET['delete'])) {
    $product_id = $_GET['delete'];
    $terminallist->delete_item_list($product_id);
    return 'sucess';
}
// Terminal Add Function
if (isset($_POST['action']) && $_POST['action'] == 'add') {
    $product_qty = $_POST['latestqty'];
    $terminallist->add_item_list($product_qty);
    return 'sucess';
}
Example #2
0
<?php

require_once 'header.php';
?>
<section>
	<hr/>
	<div class="container">
		<div class="row">
			<div class="tableHeading">
				<p class="nomargin alignCenter">View Product in Warehouse</p>
			</div>
			<div class="col-md-12">	
				<?php 
$warehouse = new warehouse();
$results = $warehouse->get_products();
if ($results) {
    ?>
				<table border="1" cellpadding="5" cellspacing="0" class="table table-hover tableView">
					<tr>
						<th>Product Name</th>
						<th>Product Cost</th>
						<th>Product Price</th>
						<th>Product Quantity</th>
						<th>Action</th>
					</tr>
						<?php 
    foreach ($results as $res) {
        ?>
						<tr>
						<td><?php 
        echo $res->p_name;
Example #3
0
			<li class="active">Add Inventory Products</li>
		</ol>

		<div class="panel panel-info">
		  <div class="panel-heading">
			<h3><?php 
echo isset($_GET['id']) ? 'Update' : 'Add';
?>
 Inventory Products</h3>
		  </div>
		  <div class="panel-body">
			<!-- BEGIN DATA TABLE -->
			<?php 
$product = new product();
$all_product = $product->get_product();
$warehouse = new warehouse();
$all_product_warehouse = $warehouse->get_products();
$inventory = new inventory();
$ID = isset($_GET['id']) ? $_GET['id'] : NULL;
if (isset($_POST['add_inventory'])) {
    // Update old record
    if (isset($ID)) {
        $results = $inventory->inv_update($_POST, $ID);
    } else {
        // Insert new
        $results = $inventory->inv_insert($_POST);
    }
    if ($results) {
        echo '<div class="alert alert-success alert-block fade in alert-dismissable">
				  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
				  <strong>Add Inventory Sucessfully</strong> in Unit
Example #4
0
?>
 Warehouse Item</h2>
		</div>
		<!-- End page heading -->
	
		<!-- Begin breadcrumb -->
		<ol class="breadcrumb  info rsaquo">
			<li><a href="dashboard.php"><i class="fa fa-home"></i></a></li>
			<li><a href="view_warehouse.php">Warehouse</a></li>
			<li class="active">Add Warehouse Item</li>
		</ol>

		<?php 
$product = new product();
$all_product = $product->get_product();
$warehouse = new warehouse();
$ID = isset($_GET['id']) ? $_GET['id'] : NULL;
if (isset($_POST['add_product_warehouse'])) {
    // Update old record
    if (isset($ID)) {
        $results = $warehouse->update_product_warehouse($_POST, $ID);
    } else {
        // Insert new
        $results = $warehouse->insert_product_warehouse($_POST);
    }
    if ($results) {
        echo '<div class="alert alert-success alert-block fade in alert-dismissable">
				  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
				  <strong>Add Product Sucessfully</strong> in Warehouse
				</div>';
    } else {