?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/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/rms/application/views/inventory/single_vendor_purchase.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $grand_total=0; ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('inventory','viewininventorysearch','search_vendor_purchase','view_vendor_purchase','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons single_icon"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="25" height="25" alt="Edit" align = "center" class="clickimage" onclick="editformdata('inventory','edit_vendor_purchase','<?=$viewinfo->vendor_purchase_id;?>','vendor_purchase','vendor_purchase_id','edit_vendor_purchase')" alt="" /> </div> <div class="icons_caption"> <h4> Vendor Purchase Details</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label> Vendor Name </label> <div class="single_page"> <?=$this->mastermodel->get_single_field_value('vendor','vendor_name','vendor_id',$viewinfo->vendor_id)?> </div> </div> <div class="section _100"> <label> Date </label> <div class="single_page"> <?=$this->mastermodel->convertdatenormalformat($viewinfo->vendor_purchase_date)?> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label> Invoice Number</label> <div class="single_page"> <?=$viewinfo->vendor_purchase_invoice_no?> </div> </div> <div class="section _100"> <label> Remarks</label> <div class="single_page"> <?=$viewinfo->vendor_purchase_remarks?> </div> </div> </div> </div> </div> <?php if(!empty($details)) { ?> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Purchase Details </div> <table class="table"> <tr> <th style="width: 20%;">Item</th> <th>Quantity</th> <th>Amount</th> <th>Discount</th> <th>Total</th> </tr> <?php foreach($details as $row) { $total=($row['vendor_purchase_inventory_qty']*$row['vendor_purchase_inventory_amount'])-$row['vendor_purchase_discount']; $grand_total=$grand_total+$total; ?> <tr> <td> <?=$this->mastermodel->get_single_field_value('inventory','inventory_type','inventory_id',$row['vendor_purchase_inventory_id'])?> </td> <td id="center"><?=$row['vendor_purchase_inventory_qty']?></td> <td id="center"><?=$row['vendor_purchase_inventory_amount']?></td> <td id="center"><?=$row['vendor_purchase_discount']?></td> <td id="center"><?=$total?></td> </tr> <?php } ?> <tr> <td colspan="4" style="text-align: right"> <b>Grand Total</b></td> <td id="center"><b><?=$grand_total?></b></td> </tr> </table> </div> </div> </div> <?php } $data['master_id']=$viewinfo->vendor_purchase_id; $data['controller']='inventory'; $data['controller_function']='viewininventorysearch'; $data['page']='view_vendor_purchase'; $data['model_function']='search_vendor_purchase'; $this->load->view('master/uploaded_files',$data); echo form_close();?>