sia-cb-cumulative report changes
This commit is contained in:
parent
07fe0900b6
commit
c3bd0a32a1
@ -495,11 +495,11 @@ class cashbook extends BaseController
|
||||
//echo "<script>alert('Saved Successfully!');window.location.href='ViewIncomeExpense';</script>";
|
||||
echo "<script>alert('Saved Successfully!');</script>";
|
||||
|
||||
if($amounttype == ' ')//Redirct To Listing Screen
|
||||
if($amounttype == '')//Redirct To Listing Screen
|
||||
{
|
||||
redirect('ViewIncomeExpense','refresh');
|
||||
}
|
||||
else if($amounttype != ' ')//Redirct To Bank Report Screen
|
||||
else if($amounttype != '')//Redirct To Bank Report Screen
|
||||
{
|
||||
redirect('Bankingstatement','refresh');
|
||||
}
|
||||
|
||||
@ -1418,16 +1418,19 @@ public function per()
|
||||
//echo $sid;
|
||||
$d=$_GET['d'];
|
||||
$c=$_GET['c'];
|
||||
$finyear=$_GET['finyear'];
|
||||
$fy=substr( $finyear,0,-5);
|
||||
$ty=substr( $finyear,5,5);
|
||||
|
||||
if ($c=='PAYMENT')
|
||||
{
|
||||
|
||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c);
|
||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c,$fy,$ty);
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
//print_r($data['departmentwise']);
|
||||
$this->loadviews("cashbookmonthlydep",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c);
|
||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c,$fy,$ty);
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
$this->loadviews("cashbookmonthlyexp",$this->global,$data, NULL);
|
||||
}
|
||||
|
||||
@ -2420,7 +2420,7 @@ if (date('m') >= 4) {
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function departmentwise($sid='',$d='',$c='')
|
||||
function departmentwise($sid,$d,$c='',$fy,$ty)
|
||||
{
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,
|
||||
ifnull(case
|
||||
@ -2441,10 +2441,20 @@ if (date('m') >= 4) {
|
||||
end, '-') as receiptname,
|
||||
date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.document,tinc.towhom,.tinc.description, ac.name FROM
|
||||
t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code
|
||||
WHERE account_code = '$sid' and monthname(date)='$d' and tinc.type='$c'";
|
||||
WHERE tinc.type='$c'";
|
||||
if ($sid != ''){
|
||||
$sql.="and account_code = '".$sid."'";
|
||||
}
|
||||
if ($d != ''){
|
||||
$sql.="and monthname(date)='".$d."'";
|
||||
}
|
||||
if ($fy and $ty != ''){
|
||||
|
||||
$sql.=" and (tinc.date >= '".$fy."-04-01' and tinc.date <= '".$ty."-03-31')";
|
||||
|
||||
}
|
||||
// -- WHERE account_code = '$sid' and monthname(date)='$d' and tinc.type='$c'";
|
||||
$query = $this->db->query($sql);
|
||||
//print_r($this->db->last_query());
|
||||
//echo $sql;
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
@ -2773,7 +2783,7 @@ function getDailyOpeningAmt($yesterday){
|
||||
$aa=$yr2;
|
||||
}
|
||||
|
||||
$sql = "select tinc.account_code,ac.name,
|
||||
$sql = "select tinc.account_code,ac.name,tinc.type,
|
||||
SUM(IF(month(tinc.date) = 4, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS AprilExpense,
|
||||
SUM(IF(month(tinc.date) = 4, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS AprilIncome,
|
||||
SUM(IF(month(tinc.date) = 5, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS MayExpense,
|
||||
|
||||
@ -181,64 +181,64 @@ if (date('m') >= 4) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $d->name; ?></td>
|
||||
<td><?php $tiapr= $tiapr + number_format($d->AprilIncome,2,'.',''); echo number_format($d->AprilIncome,2,'.',''); ?></td>
|
||||
<td><?php $teapr= $teapr + number_format($d->AprilExpense,2,'.',''); echo number_format($d->AprilExpense,2,'.',''); ?></td>
|
||||
<td><?php $timay= $timay + number_format($d->MayIncome,2,'.',''); echo number_format($d->MayIncome,2,'.',''); ?></td>
|
||||
<td><?php $temay= $temay + number_format($d->MayExpense,2,'.',''); echo number_format($d->MayExpense,2,'.',''); ?></td>
|
||||
<td><?php $tijun= $tijun + number_format($d->JuneIncome,2,'.',''); echo number_format($d->JuneIncome,2,'.',''); ?></td>
|
||||
<td><?php $tejun= $tejun + number_format($d->JuneExpense,2,'.',''); echo number_format($d->JuneExpense,2,'.',''); ?></td>
|
||||
<td><?php $tijul= $tijul + number_format($d->JulyIncome,2,'.',''); echo number_format($d->JulyIncome,2,'.',''); ?></td>
|
||||
<td><?php $tejul= $tejul + number_format($d->JulyExpense,2,'.',''); echo number_format($d->JulyExpense,2,'.',''); ?></td>
|
||||
<td><?php $tiaug= $tiaug + number_format($d->AugustIncome,2,'.',''); echo number_format($d->AugustIncome,2,'.',''); ?></td>
|
||||
<td><?php $teaug= $teaug + number_format($d->AugustExpense,2,'.',''); echo number_format($d->AugustExpense,2,'.',''); ?></td>
|
||||
<td><?php $tisep= $tisep + number_format($d->SepIncome,2,'.',''); echo number_format($d->SepIncome,2,'.',''); ?></td>
|
||||
<td><?php $tesep= $tesep + number_format($d->SepExpense,2,'.',''); echo number_format($d->SepExpense,2,'.',''); ?></td>
|
||||
<td><?php $tioct= $tioct + number_format($d->OctIncome,2,'.',''); echo number_format($d->OctIncome,2,'.',''); ?></td>
|
||||
<td><?php $teoct= $teoct + number_format($d->OctExpense,2,'.',''); echo number_format($d->OctExpense,2,'.',''); ?></td>
|
||||
<td><?php $tinov= $tinov + number_format($d->NovIncome,2,'.',''); echo number_format($d->NovIncome,2,'.',''); ?></td>
|
||||
<td><?php $tenov= $tenov + number_format($d->NovExpense,2,'.',''); echo number_format($d->NovExpense,2,'.',''); ?></td>
|
||||
<td><?php $tidec= $tidec + number_format($d->DecIncome,2,'.',''); echo number_format($d->DecIncome,2,'.',''); ?></td>
|
||||
<td><?php $tedec= $tedec + number_format($d->DecExpense,2,'.',''); echo number_format($d->DecExpense,2,'.',''); ?></td>
|
||||
<td><?php $tinjan= $tinjan + number_format($d->JanIncome,2,'.',''); echo number_format($d->JanIncome,2,'.',''); ?></td>
|
||||
<td><?php $texjan= $texjan + number_format($d->JanExpense,2,'.',''); echo number_format($d->JanExpense,2,'.',''); ?></td>
|
||||
<td><?php $tinfeb= $tinfeb + number_format($d->FebIncome,2,'.',''); echo number_format($d->FebIncome,2,'.',''); ?></td>
|
||||
<td><?php $texfeb= $texfeb + number_format($d->FebExpense,2,'.',''); echo number_format($d->FebExpense,2,'.',''); ?></td>
|
||||
<td><?php $tinmar= $tinmar + number_format($d->MarIncome,2,'.',''); echo number_format($d->MarIncome,2,'.',''); ?></td>
|
||||
<td><?php $texmar= $texmar + number_format($d->MarExpense,2,'.',''); echo number_format($d->MarExpense,2,'.',''); ?></td>
|
||||
<td><?php $rowwiseincome = $rowwiseincome + number_format($d->receiptoverall,2,'.',''); echo number_format($d->receiptoverall,2,'.',''); ?></td>
|
||||
<td><?php $rowwiseexpense = $rowwiseexpense + number_format($d->paymentoverall,2,'.',''); echo number_format($d->paymentoverall,2,'.',''); ?></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tiapr= $tiapr + number_format($d->AprilIncome,2,'.',''); echo number_format($d->AprilIncome,2,'.',''); ?></span></a></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teapr= $teapr + number_format($d->AprilExpense,2,'.',''); echo number_format($d->AprilExpense,2,'.',''); ?></span></a></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $timay= $timay + number_format($d->MayIncome,2,'.',''); echo number_format($d->MayIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $temay= $temay + number_format($d->MayExpense,2,'.',''); echo number_format($d->MayExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tijun= $tijun + number_format($d->JuneIncome,2,'.',''); echo number_format($d->JuneIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tejun= $tejun + number_format($d->JuneExpense,2,'.',''); echo number_format($d->JuneExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tijul= $tijul + number_format($d->JulyIncome,2,'.',''); echo number_format($d->JulyIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tejul= $tejul + number_format($d->JulyExpense,2,'.',''); echo number_format($d->JulyExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tiaug= $tiaug + number_format($d->AugustIncome,2,'.',''); echo number_format($d->AugustIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teaug= $teaug + number_format($d->AugustExpense,2,'.',''); echo number_format($d->AugustExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tisep= $tisep + number_format($d->SepIncome,2,'.',''); echo number_format($d->SepIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tesep= $tesep + number_format($d->SepExpense,2,'.',''); echo number_format($d->SepExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tioct= $tioct + number_format($d->OctIncome,2,'.',''); echo number_format($d->OctIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teoct= $teoct + number_format($d->OctExpense,2,'.',''); echo number_format($d->OctExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinov= $tinov + number_format($d->NovIncome,2,'.',''); echo number_format($d->NovIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tenov= $tenov + number_format($d->NovExpense,2,'.',''); echo number_format($d->NovExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tidec= $tidec + number_format($d->DecIncome,2,'.',''); echo number_format($d->DecIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tedec= $tedec + number_format($d->DecExpense,2,'.',''); echo number_format($d->DecExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinjan= $tinjan + number_format($d->JanIncome,2,'.',''); echo number_format($d->JanIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texjan= $texjan + number_format($d->JanExpense,2,'.',''); echo number_format($d->JanExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinfeb= $tinfeb + number_format($d->FebIncome,2,'.',''); echo number_format($d->FebIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texfeb= $texfeb + number_format($d->FebExpense,2,'.',''); echo number_format($d->FebExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinmar= $tinmar + number_format($d->MarIncome,2,'.',''); echo number_format($d->MarIncome,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texmar= $texmar + number_format($d->MarExpense,2,'.',''); echo number_format($d->MarExpense,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $rowwiseincome = $rowwiseincome + number_format($d->receiptoverall,2,'.',''); echo number_format($d->receiptoverall,2,'.',''); ?></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $rowwiseexpense = $rowwiseexpense + number_format($d->paymentoverall,2,'.',''); echo number_format($d->paymentoverall,2,'.',''); ?></span></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td><b><?php echo "TOTAL" ?></b></td>
|
||||
<td><b><?php echo number_format($tiapr,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($teapr,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($timay,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($temay,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tijun,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tejun,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tijul,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tejul,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tiaug,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($teaug,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tisep,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tesep,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tioct,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($teoct,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tinov,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tenov,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tidec,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tedec,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tinjan,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($texjan,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tinfeb,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($texfeb,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($tinmar,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($texmar,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($rowwiseincome,2,'.',''); ?></b></td>
|
||||
<td><b><?php echo number_format($rowwiseexpense,2,'.',''); ?></b></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tiapr,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teapr,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($timay,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($temay,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tijun,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tejun,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tijul,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tejul,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tiaug,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teaug,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tisep,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tesep,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tioct,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teoct,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinov,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tenov,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tidec,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tedec,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinjan,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texjan,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinfeb,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texfeb,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinmar,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texmar,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($rowwiseincome,2,'.',''); ?></b></span></td>
|
||||
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($rowwiseexpense,2,'.',''); ?></b></span></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php } ?>
|
||||
|
||||
@ -1,17 +1,4 @@
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if(!empty($cashbook))
|
||||
{
|
||||
|
||||
}
|
||||
if(!empty($depmenu))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
$inrsymbol='';
|
||||
if(!empty($Indiancurrency))
|
||||
{
|
||||
@ -50,21 +37,7 @@ if(!empty($depmenu))
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
@ -133,16 +106,12 @@ if(!empty($depmenu))
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<!--<th>Account Code</th>-->
|
||||
<th>Account Name</th>
|
||||
<th>Type</th>
|
||||
<th>Received From</th>
|
||||
<th>Paid To</th>
|
||||
<!--<th>Paid Type(RECEIPT)</th>-->
|
||||
<!--<th>Paid Type(PAYMENTS)</th>-->
|
||||
<th style="text-align:right;"> Receipt <?php echo '('.$inrsymbol.')' ?></th>
|
||||
<th style="text-align:right;"> Payment <?php echo '('.$inrsymbol.')' ?></th>
|
||||
|
||||
<th style="text-align:right;"> Receipt <?php echo '('.$inrsymbol.')' ?></th>
|
||||
<th style="text-align:right;"> Payment <?php echo '('.$inrsymbol.')' ?></th>
|
||||
<th>Description</th>
|
||||
<th>Action</th>
|
||||
|
||||
@ -163,8 +132,6 @@ if(!empty($depmenu))
|
||||
<td align="left"><span><?php echo $t->type?></span></td>
|
||||
<td align="left"><span><?php echo $t->receiptname?></span></td>
|
||||
<td align="left"><span><?php echo $t->paymentname?></span></td>
|
||||
|
||||
<!--<td align="left"><span><?php echo $cash->expense?></span></td>-->
|
||||
<td align="right"><span><?php
|
||||
$ti= $ti + number_format($t->income,2,'.','');
|
||||
echo number_format($t->income,2,'.','');?></span></td>
|
||||
@ -178,11 +145,10 @@ if(!empty($depmenu))
|
||||
if(!empty($t->document))
|
||||
{
|
||||
?>
|
||||
<a target="_blank" href="<?php echo base_url().$t->document ?>"><i class="fa fa-download" ></i></a>
|
||||
<a target="_blank" href="<?php echo base_url().$t->document ?>"><i class="fa fa-download" ></i></a>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
echo "NO FILE";
|
||||
|
||||
BIN
uploads/cashbook/SI.jpg
Normal file
BIN
uploads/cashbook/SI.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue
Block a user