?
Current Path : /home1/savoy/public_html/savoyglobal.net/oscardraft/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/oscardraft/application/views/inventory/single_purchase.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('inventory','viewininventorysearch','search_purchase','view_purchase','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Purchase Details</h4> </div> </div> <?php $franchisee=$this->mastermodel->getdatas('franchisee','franchisee_id'); $inventory=$this->mastermodel->getdatas('inventory','inventory_id'); $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main">Purchase Details </div> <div class="content no-padding"> <div class="section _100"> <label>Franchisee Name</label> <div class="single_page"> <?=$this->mastermodel->get_single_field_value('franchisee','franchisee_name','franchisee_id',$viewinfo->purchase_franchisee_id);?> </div> </div> <div class="section _100"> <label>Purchase Date</label> <div class="single_page"> <?=$this->mastermodel->convertdatenormalformat($viewinfo->purchase_date)?> </div> </div> <div class="section _100"> <label>Remarks </label> <div class="single_page"> <?=$viewinfo->purchase_remarks?> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Purchase Inventory Details</div> <table class="table"> <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> <?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(); ?>