'Company'); $historytableflag = 0; if(!empty($childdata) ) { if(count($childdata) > 0 ){ $historytableflag = 1; } //echo "child"; } if(!empty($loanrecords)) { foreach($loanrecords as $r) { if(!empty($r->Loan_Issued_Date)) { $dateflag=1; $statusflag=1; } } } if(!empty($loanemployees)) { foreach($loanemployees as $l) { $source[$l->EmpID] = $l->EmpID.'-'.$l->FName.'-'.$l->Lname; } } $monthsoptions = array("01" => "Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec"); ?>

Company/Employee Loan Reports

S.No Employee Name Loan Given Loan Issue Date Loan Recovered Loan Status Loan Balance
EmpID.'/'.$fyear.'">'.$rec->EmpID.'-'.$rec->FName.'-'.$rec->Lname.'';?> Loan_ID.'">'.$rec->EmpID.'-'.$rec->FName.'-'.$rec->Lname.'';?> Loan_Amount)){$totalloangiven+=$rec->Loan_Amount; echo $rec->Loan_Amount;}else{echo "0.00";}?> Loan_Issued_Date)){echo $rec->Loan_Issued_Date;}else{echo "-";}?> Paid_Amount)){$totalrecovered+=$rec->Paid_Amount ;echo $rec->Paid_Amount;}else{echo "0.00";} ?> is_Active == 1){$final = "Pending"; }else{$final = "Completed";} if($rec->Remaining_Due < 0 and $rec->is_Active == 1){$final.=",Over Due";} echo $final;?> Loan_Amount) and ($rec->Paid_Amount))){ $totalbalance+= ($rec->Loan_Amount - $rec->Paid_Amount);echo number_format(($rec->Loan_Amount - $rec->Paid_Amount),2,'.','');}else {echo "0.00";}?>
Total

 

Loan_ID; $Name = $c->EmpID.'-'.$c->FirstName.'-'.$c->LastName; $Loan = $c->Loan_Amount; $Issue_date = $c->Loan_Issued_Date; $dis = 'Loan ID:-'.$Loan_ID.'-Name:-'.$Name.'- Amount:-'. $Loan; break; } } ?>

Due_Date,0,2); $yr = substr($child->Due_Date,3,4); $final = $monthsoptions[$monthno].'-'.$yr; ?>
Date Due_Month Due Amount Balance Amount
Entry_Date),'Y-m-d');?> Due_Amount ;?> Balance_Amount;?>