?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/inventory/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/inventory/single_purchase.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Purchase Details<</div> <div class="tools"> <a href="#" onclick="viewdata('inventory','viewininventorysearch','search_purchase','view_purchase','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('',$attributes); ?> <h3 class="form-section">Purchase Details </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Franchisee Name</label> <div class="controls"> <span class="text bold"> <?=$this->mastermodel->get_single_field_value('franchisee','franchisee_name','franchisee_id',$viewinfo->purchase_franchisee_id);?> </span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Purchase Date</label> <div class="controls"> <span class="text bold"> <?=$this->mastermodel->convertdatenormalformat($viewinfo->purchase_date)?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks </label> <div class="controls"> <span class="text bold"> <?=$viewinfo->purchase_remarks?></span> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Purchase Inventory Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Inventory Type</th> <th>Quantity</th> <th>Amount</th> <th>Discount</th> <th>Total</th> </tr> <?php $inventry=$this->mastermodel->get_data('purchase_inventory',$viewinfo->purchase_id,'purchase_id'); foreach ($inventry as $row) { $qty=intval($row['inventory_qty']); $amount=floatval($row['inventory_amount']); $discount=floatval($row['inventory_discount']); $total=$qty*$amount-$discount; ?> <tr> <td> <?=$this->mastermodel->get_single_field_value('inventory','inventory_type','inventory_id',$row['inventory_type_id']);?> </td> <td><?=$row['inventory_qty']?></td> <td><?=$row['inventory_amount']?></td> <td><?=$row['inventory_discount']?></td> <td><?=$total?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> <?php echo form_close(); ?> <?php $data['master_id']=$viewinfo->purchase_id; $data['controller']='inventory'; $data['controller_function']='viewininventorysearch'; $data['page']='view_purchase'; $data['model_function']='search_purchase'; $this->load->view('master/uploaded_files',$data); echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div> </div>