cashbook pdf is display by accountname change to acccode

This commit is contained in:
venbatechnologies@gmail.com 2018-02-19 12:51:11 +05:30
parent 27b6ed6065
commit d1395e14f8
3 changed files with 5 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class cashbook_model extends CI_Model
function getIncomeExpenseList($i="")
{
$this->db->select('t_accountcode.name,T_Employee_Details.FirstName,T_Employee_Details.LastName,t_income_expense.*');
$this->db->select('t_accountcode.code,t_accountcode.name,T_Employee_Details.FirstName,T_Employee_Details.LastName,t_income_expense.*');
$this->db->from('t_income_expense');
$this->db->join('t_accountcode','t_income_expense.account_code=t_accountcode.code');
$this->db->join('tbl_users','t_income_expense.Created_By=tbl_users.userId');

View File

@ -44,7 +44,7 @@ $pic = base_url().'uploads/images/'.$company[0]->ProfilePic;
<td style="width: 100px; height: 46px;">&nbsp;Amount (In Words)</td>
<td style="width: 89px; height: 46px;" colspan="3"><b><?php echo $amtinwords;?></b></td>
</tr>
<?php if(($data[0]->name) == 'multiple'){ ?>
<?php if(($data[0]->code) == '999'){ ?>
<tr style="height: 46px;">
<td style="width: 100px; height: 46px;">&nbsp;Tax</td>
<td>SGST :<b>&#8377;<?php echo $data[0]->sgst;?></b></td>

View File

@ -5,12 +5,14 @@ $flag = 0;
$invoiceno = '';
$document = '';
$label = '';
$exaccode = '';
if(!empty($data))
{
$extype = $data[0]->type;//['type'];
$exname = $data[0]->name;//['name'];
$invoiceno = $data[0]->invoice_no;
$document =$data[0]->document;
$exaccode =$data[0]->code;
if(!empty($invoiceno))
{
$flag = 1;
@ -55,7 +57,7 @@ if(!empty($data))
<div class="col-md-12">
<div class="col-md-7">
<?php if($exname == 'multiple') { ?>
<?php if($exaccode == '999') { ?>
<div class="col-md-12">
<table id="multiplepayment">
<thead></thead>