diff --git a/application/config/routes.php b/application/config/routes.php index 5084d3d4..81d44a8a 100755 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -211,6 +211,18 @@ $route['EditIncomeExpense'] = "cashbook/editcashbook"; $route['addNewIncomeExpense'] = "cashbook/addNewIncomeExpenseLoad"; $route['addIncomeExpense'] = "cashbook/addIncomeExpense"; $route['updateExpense'] = "cashbook/updateExpense"; +$route['Bankingview']= "cashbook/bankfileview"; +$route['Bankingstatement']= "cashbook/bankdata"; +$route['Debitstatement']= "cashbook/bankdebitdata"; +$route['Cashstatement']= "cashbook/cashreceipt"; +$route['BankingFile']= "cashbook/bankfileupload"; +//$route['Bankingrecord']= "cashbook/bankdata"; +$route['Bankamountpaid']= "cashbook/amountpaid"; +$route['Bankamountreceived']= "cashbook/amountreceived"; +$route['Receipt']= "cashbook/cashreceipt"; +$route['Payment']= "cashbook/cashpayment"; +$route['Invoice']= "cashbook/bankinvoice"; +$route['Bankcash']= "cashbook/cashbanking"; $route['qualityreportlist'] = "quality/reportList"; $route['qualityreportlistinward'] = "quality/reportListInward"; //<-------------Store page-----------------> diff --git a/application/controllers/cashbook.php b/application/controllers/cashbook.php index 7fdec737..126e021e 100755 --- a/application/controllers/cashbook.php +++ b/application/controllers/cashbook.php @@ -18,6 +18,7 @@ class cashbook extends BaseController { parent::__construct(); $this->load->model('cashbook_model'); + $this->load->model('employeedetails_model'); $this->isLoggedIn(); $this->load->helper(array('form','url')); $this->load->library('upload'); @@ -76,6 +77,54 @@ class cashbook extends BaseController } + + function bankreceipt() + { + + $aid = $this->uri->segment(3); + $str = $this->uri->segment(4); + if(!empty($aid)){ + + if(!empty($str)) + { + + $data['company'] = $this->cashbook_model->getCompany(); + $data['data'] = $this->cashbook_model->getIncomeExpenseList($aid); + $totalamt = $data['data'][0]->total; + $data['amtinwords'] = $this->convertNumber($totalamt); + $mpdf=new mPDF('utf-8','A4-P',7, 10,10, 10, 3, 0, 0, 0); + $mpdf->SetHTMLHeader($HtmlHeading); + $html = $this->load->view('cashbookpdf',$data,true); + $mpdf->SetDisplayMode('fullpage'); + $mpdf->setFooter($HTMLFooter . "Page {PAGENO} of {nb}"); + $mpdf->list_indent_first_level = 1; + $mpdf->setAutoTopMargin = 'stretch'; + $mpdf->setAutoBottomMargin = 'stretch'; + $mpdf->WriteHTML($html); + $filename = "bankreceipt.pdf"; + $mpdf->Output($filename,I); + } + else + { + + $data['data'] = $this->cashbook_model->getIncomeExpenseList($aid); + //print_r($data['dropdownvalues']);die(); + $this->global['pageTitle'] = 'Siddharth : Cash Book: View Income Expense '; + $this->loadViews("viewIndIncomeExpense", $this->global, $data , NULL); + + } + + }else{ + $data['list'] = $this->cashbook_model->getIncomeExpenseList(); + $this->global['pageTitle'] = 'Siddharth : Cash Book: Listing'; + + $this->loadViews("income_expense_list", $this->global, $data , NULL); + } + + + } + + function addNewIncomeExpenseLoad() { @@ -84,12 +133,109 @@ class cashbook extends BaseController $this->global['pageTitle'] = 'Siddharth : Cash Book: Add New Income Expense '; $this->loadViews("addnewIncomeExpense", $this->global, $data , NULL); } + function bankfileview() + { + + //$data['dropdownvalues'] = $this->cashbook_model->getAccounTypes(); + //print_r($data['dropdownvalues']);die(); + $data['bankdetails']=$this->employeedetails_model->getBankDetails(); + $this->global['pageTitle'] = 'Siddharth : Cash Book: Add New Income Expense '; + $this->loadViews("bankingfile", $this->global, $data , NULL); + } + function bankfileupload() + { + $document = null; + + $fs = 0; + if(!empty($_FILES['userfile']['name'])) + { + //echo "FILE AVAILABLE"; + $config['file_name'] = $_FILES['userfile']['name']; + $config['upload_path'] = 'uploads/banking/'; + $path = $config['upload_path']; + //$filename = $config['file_name']; + $document = $path.$filename; + //echo $document; + $fs = $this->uploadFile1(); + $document = $path.$fs; + $inputFileName = $_FILES['userfile']['tmp_name']; + require_once APPPATH .'third_party/PHPExcel/IOFactory.php'; + $objTpl = PHPExcel_IOFactory::load($inputFileName); + $sheet = $objTpl->getActiveSheet(0) ;//->toArray(null, NULL, True, True); + $highestRow = $sheet->getHighestRow(); + $highestColumn = $sheet->getHighestColumn(); + + + $bank = $this->input->post('bankbranchname'); + $fileupload= array('Bankname'=>$bank,'document'=>$document); + + $res = $this->cashbook_model->bankfile($fileupload); + for($x=2;$x<=$highestRow;$x++){ + + $date = date('Y-m-d', PHPExcel_Shared_Date::ExcelToPHP( $sheet->getCell('A'.$x)->getValue())); + //echo $val; die(); + $valuedate = date('Y-m-d', PHPExcel_Shared_Date::ExcelToPHP( $sheet->getCell('B'.$x)->getValue())); + //PHPExcel_Shared_Date::ExcelToPHP($valuedate); + //echo date('Y-m-d',strtotime($valuedate));die; + $chqno = $sheet->getCell('C'.$x)->getValue(); + $narration = $sheet->getCell('D'.$x)->getValue(); + $cod =$sheet->getCell('E'.$x)->getValue(); + $debit =$sheet->getCell('F'.$x)->getValue(); + $credit=$sheet->getCell('G'.$x)->getValue(); + $balance=$sheet->getCell('H'.$x)->getValue(); + + + $filedataupload= array('reportdate'=>$date,'valuedate'=>$valuedate,'chequeNo'=>$chqno,'Narration'=>$narration,'Cod'=>$cod,'Debit'=>$debit,'Credit'=>$credit,'Balance'=>$balance,'Bankname'=>$bank,); + //print_r($filedataupload); + $res = $this->cashbook_model->bankfiledata($filedataupload); + } + if( $res == 1 ){ + echo ""; + } + else + { + echo ""; + } + } + } function addIncomeExpense() - { - //echo "welcome"; - //die(); + { + + $bankdate = $this->input->post('bankdate'); + $bankid = $this->input->post('bankid'); + $amount = $this->input->post('bankamount'); + $amounttype = $this->input->post('type'); + //echo $amounttype; + $totalbankamount = $this->input->post('totalbankamount'); + //$totalbankcreditamount + //echo $totalbankamount; + $alreadypaid=$this->input->post('alreadypaid'); + $directamount = $this->input->post('totalamount'); + //echo $alreadypaid; + $debitamount=$this->input->post('debitamount'); + $alreadycreditpaid=$this->input->post('alreadycreditpaid'); + $bankorcash=$this->input->post('borc'); + + $total=$directamount+$alreadypaid; + $ctotal=$directamount+$alreadycreditpaid; + echo $totalbankamount; + if($amounttype==0) + { + $type=RECEIPT; + $bankamounttype=CREDIT; + } + else + { + $type=PAYMENT; + $bankamounttype=DEBIT; + } + + $alreadypaid=$this->input->post('alreadypaid'); + //$total=$debitamount+$alreadypaid; + + $accounttype = $this->input->post('myradio'); if($accounttype == 1) { @@ -124,10 +270,12 @@ class cashbook extends BaseController $sgst = $this->input->post('SGST'); $cgst = $this->input->post('CGST'); $igst = $this->input->post('IGST'); + } - $totalamount = $this->input->post('totalamount'); + $cashbookamount=$this->input->post('totalamount1'); + $totalamount=$directamount+$cashbookamount; $description = $this->input->post('description'); if(empty($description)){$description = 'NA';} $document = null; @@ -146,15 +294,89 @@ class cashbook extends BaseController $document = $path.$fs; } + if($bankorcash==Bank) + { + $option=Bank; + } + else + { + $option=Cash; + } + $balance=$totalbankamount-$totalamount; $created_by = $this->session->userdata('userId'); - $addincomexpense = array('type'=>$accounttype,'account_code'=>$accountcode,'date'=>$date,'towhom'=>$towhome,'invoice_no'=>$invoiceno,'merchant'=>$merchantname,'merchant_gst'=>$mergstno,'HSN'=>$hsn ,'value_before_gst'=>$beforegst,'sgst'=>$sgst,'cgst'=>$cgst,'igst'=>$igst,'total'=>$totalamount,'description'=>$description,'document'=>$document,'Created_By'=>$created_by); + $addincomexpense = array('type'=>$accounttype,'account_code'=>$accountcode,'date'=>$date,'towhom'=>$towhome,'invoice_no'=>$invoiceno,'merchant'=>$merchantname,'merchant_gst'=>$mergstno,'HSN'=>$hsn ,'value_before_gst'=>$beforegst,'sgst'=>$sgst,'cgst'=>$cgst,'igst'=>$igst,'total'=>$totalamount,'description'=>$description,'document'=>$document,'Created_By'=>$created_by,'cashtype'=>$option,'bankid'=>$bankid,'totalbankamount'=>$totalbankamount,'balance'=>$balance,'amounttype'=>$amounttype); + //print_r($addincomexpense); + //die(); + if($balance=='0') + { + $stat='CLOSE'; + } + else + { + $stat='OPEN'; + } + $creditbalance=$totalbankamount-$totalamount; + //echo $creditbalance; + if($creditbalance=='0') + + { + $statu='CLOSE'; + } + else + { + $statu='OPEN'; + } + //$clearbalance=$totalbankamount- + if($amounttype=='CREDIT') + { + $cashbookstatus1= array('cclearbalance'=>$ctotal,'cstatus'=>$statu); + //print_r($cashbookstatus1); + //die(); + $res1 = $this->cashbook_model->cashcreditupdate($cashbookstatus1,$bankid); + } + else + { + $cashbookstatus = array('Clearbalance'=>$total,'Status'=>$stat); + //print_r($cashbookstatus); + $res = $this->cashbook_model->cashbankupdate($cashbookstatus,$bankid); + + } + $res = $this->cashbook_model->saveIncomeExpense($addincomexpense); if( $res == 1 ){ echo ""; } } - + public function cashpayment() + { + $bankdate = $this->input->post('bankdate'); + $bankid = $this->input->post('bankid'); + $amount = $this->input->post('bankamount'); + $amounttype = $this->input->post('type'); + $forstatus = $this->input->post('forstatus'); + $alreadypaid=$this->input->post('alreadypaid'); + $alreadycreditpaid=$this->input->post('alreadycreditpaid'); + $debitamount=$this->input->post('debitamount'); + $creditamount=$this->input->post('creditamount'); + $total=$amount+$alreadypaid; + + $option=Bank; + if($amounttype==0) + { + $type=RECEIPT; + $bankamounttype=CREDIT; + } + else + { + $type=PAYMENT; + $bankamounttype=DEBIT; + } + + $bankcash1 = array('cdate'=>$bankdate,'mid'=>$bankid,'btype'=>$type,'amount'=>$alreadypaid,'boption'=>$option,'mappingamount'=>$forstatus,'totalamount'=>$amount,'amounttype'=>$bankamounttype,'alreadycreditpaid'=>$alreadycreditpaid); + $res1 = $this->cashbook_model->addcashbook($bankcash1); + + } function uploadFile() { @@ -164,7 +386,7 @@ class cashbook extends BaseController //$this->load->library('upload') $pathinfo = pathinfo($_FILES['myfile']['name']); $config['upload_path'] = 'uploads/cashbook/'; - $config['allowed_types'] = 'png|jpg|jpeg'; + $config['allowed_types'] ='png|jpg|jpeg|pdf'; $config['file_name'] = $_FILES['myfile']['name']; // $config['overwrite'] = true; @@ -188,6 +410,39 @@ class cashbook extends BaseController return 0; } + } + function uploadFile1() + { + + //echo "INSIDE UPLOAFD"; + + //$this->load->library('upload') + $pathinfo = pathinfo($_FILES['userfile']['name']); + $config['upload_path'] = 'uploads/banking/'; + $config['allowed_types'] = 'png|jpg|jpeg|xlsx'; + $config['file_name'] = $_FILES['userfile']['name']; + // $config['overwrite'] = true; + + //Load upload library and initialize configuration + $this->load->library('upload',$config); + $this->upload->initialize($config); + + + if($this->upload->do_upload('userfile')) + { + $uploadData = $this->upload->data(); + $uploadfilename = $uploadData['file_name']; + return $uploadfilename; + + } + else + { + $error = array('error' => $this->upload->display_errors()); + $uploadfilename = ''; + print_r($error); + return 0; + } + } function viewIE() @@ -204,6 +459,8 @@ class cashbook extends BaseController public function index() { + //$data['dropdownvalues1'] = $this->cashbook_model->getAccounTypes1(); + $this->global['pageTitle'] = 'Siddharth : Cashbook Details'; $this->loadViews("cashbooklisting", $this->global, NULL , NULL); @@ -214,7 +471,8 @@ class cashbook extends BaseController $this->load->model('cashbook_model'); - + $data['dropdownvalues1'] = $this->cashbook_model->getAccounTypes1(); + //print_r($data['dropdownvalues1']); $data['cashbook'] = $this->cashbook_model->Selectcash(); $this->global['pageTitle'] = 'Siddharth : Cashbook Listing'; @@ -236,6 +494,8 @@ class cashbook extends BaseController $acc_type = $tv['AccountCodeType']; $acc_code = $tv['AccountCode']; $acc_name = $tv['AccountName']; + $acc_pname = $tv['ParentAccountName']; + $acc_categories = $tv['Categories']; $acc_desc = $tv['Description']; $acc_state = $tv['Status']; if(strtoupper($acc_state) == 'YES') @@ -250,8 +510,8 @@ class cashbook extends BaseController $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $acc_createddt = $dt->format('Y-m-d H:i:s'); - $cashbookdatas = array('type'=>$acc_type,'code'=>$acc_code,'name'=>$acc_name,'description'=>$acc_desc,'status'=>$acc_status,'created_on'=>$acc_createddt); - //print_r($cashbookdatas); + $cashbookdatas = array('type'=>$acc_type,'code'=>$acc_code,'name'=>$acc_name,'accountname'=>$acc_pname,'categories'=>$acc_categories,'description'=>$acc_desc,'status'=>$acc_status,'created_on'=>$acc_createddt); + // print_r($cashbookdatas); $result = $this->cashbook_model->Cashbook($cashbookdatas); } } @@ -379,6 +639,369 @@ class cashbook extends BaseController //} } + public function bankdata() + { + + + $this->global['pageTitle'] = 'Siddharth : bankstatement'; + + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + $data['bankreport'] = $this->cashbook_model->bankstatement($fdate,$tdate); + + + $this->loadViews("bankstatement", $this->global, $data,NULL); + + } + public function bankdebitdata() + { + if ($this->input->post('btn_submit')) + { + $SupplierName = $this->input->post('SupplierName'); + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + //$data['cash'] = $_GET['sid']; + //$data['bankid'] = $_GET['d']; + + $data['bankdepit'] = $this->cashbook_model->debitbankstatemet($SupplierName,$fdate,$tdate); + } + + $data['getsupplier'] = $this->cashbook_model->getsupplier(); + $this->loadViews("bankdebit",$this->global,$data,NULL); + //die(); + + } + public function bankinvoice() + { + if ($this->input->post('btn_submit')) + { + $Customer = $this->input->post('Customer'); + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + $data['bankinvoicedata'] = $this->cashbook_model->bankinvoice($Customer,$fdate,$tdate); + $data['supplier'] = $this->cashbook_model->getsupplier(); + } + $data['getcustomer'] = $this->cashbook_model->getcustomer(); + + $this->loadViews("bankinvoice", $this->global,$data,NULL); + + } + + public function mappingpo() + { + + + $this->global['pageTitle'] = 'Siddharth : Cashbook Listing'; + $SupplierName = $this->input->post('SupplierName'); + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + $bankid= $_GET['d']; + $data['mappingcashbook']=$this->cashbook_model->mappingcash($SupplierName,$fdate,$tdate,$bankid); + $data['mapping'] = $this->cashbook_model->debitpolist($bankid); + $data['supplier'] = $this->cashbook_model->getsupplier(); + $this->loadViews("banksettlement", $this->global,$data,NULL); + + } + public function mappinginvoice() + { + + + $this->global['pageTitle'] = 'Siddharth : Cashbook Listing'; + $SupplierName = $this->input->post('SupplierName'); + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + $bankid= $_GET['d']; + $data['mappingcashbook']=$this->cashbook_model->mappingcash($SupplierName,$fdate,$tdate,$bankid); + $data['mappingiv'] = $this->cashbook_model->creditinvoicelist($SupplierName,$fdate,$tdate,$bankid); + $data['supplier'] = $this->cashbook_model->getsupplier(); + $this->loadViews("bankinvoicesettlement", $this->global,$data,NULL); + + } + public function mappingdebit() + { + + + $this->global['pageTitle'] = 'Siddharth : mappingdebit'; + $SupplierName = $this->input->post('SupplierName'); + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + $pono= $_GET['sid']; + $data['debitmapping'] = $this->cashbook_model->debitlistpo($SupplierName,$fdate,$tdate,$pono); + $this->loadViews("bankposettlement", $this->global,$data,NULL); + + } + public function mappingcredit() + { + + + $this->global['pageTitle'] = 'Siddharth : mappingcredit'; + $SupplierName = $this->input->post('SupplierName'); + $fdate = $this->input->post('from_date'); + $tdate = $this->input->post('to_date'); + $invno= $_GET['sid']; + $data['creditmapping'] = $this->cashbook_model->creditlistinv($invno); + $this->loadViews("bankinvoisettle", $this->global,$data,NULL); + + } + + public function receipt() + { + // die(); + $check = $this->input->post('check'); + $rw = $this->input->post('rw'); + $this->global['pageTitle'] = 'Siddharth : Cashbook Listing'; + $date = $this->input->post('date'); + $pono = $this->input->post('pono'); + $sname = $this->input->post('sname'); + $tot = $this->input->post('tot'); + $rowcount = $this->input->post('rc'); + $totalpaidamount= $this->input->post('tpv'); + $bankdebitamountamount= $this->input->post('bda'); + $bankid =$this->input->post('bi'); + $alreadypaid = 0; + //echo $earlypaid; + $alreadypaid = $this->cashbook_model->getalreadypaid($bankid); + if(empty($alreadypaid)) + { + $aPay=0; + } + else + { + foreach($alreadypaid as $ap) + { + $aPay = $ap->Clearbalance; + } + } + + if($check == 1) + { + $clearedblnce=($totalpaidamount+$aPay); + $balancetocleared=($bankdebitamountamount-$totalpaidamount); + $check =1; + } + //echo $balancetocleared; + //die(); + if($balancetocleared>0) + { + $status='OPEN'; + } + else + { + $status='CLOSE'; + } + + $bankdata = array('Clearbalance'=>$clearedblnce,'Balancetocleared'=>$balancetocleared,'Status'=>$status); + + if($check == 1) + { + $res = $this->cashbook_model->bankupdate($bankdata,$bankid); + } + $earlypaid = 0; + //echo $earlypaid; + $earlypaid = $this->cashbook_model->getearlyamount($pono); + if(empty($earlypaid)) + { + $ePay=0; + } + else + { + foreach($earlypaid as $ep) + { + $ePay = $ep->Amountpaid; + } + } + + $ip=$this->input->post('aa'); + $balancetopay=($tot-($ip+$ePay)); + $amtpaid= ($ip+$ePay); + + + $podata1 = array('Podate'=>$date,'PONO'=>$pono,'Suppliername'=>$sname,'Totalpoamount'=>$tot,'Amountpaid'=>$ip,'Balancetopay'=>$balancetopay,'mid'=>$bankid); + + $podata = array('Podate'=>$date,'PONO'=>$pono,'Suppliername'=>$sname,'Totalpoamount'=>$tot,'Amountpaid'=>$amtpaid,'Balancetopay'=>$balancetopay,'mid'=>$bankid); + //print_r($podata); + + $result3 = $this->cashbook_model->poupdate($pono); + //echo count($result3); + $resultn = $this->cashbook_model->mappingpo($podata1); + if(count($result3)<=0) + { + //echo "insert"; + $result = $this->cashbook_model->podata($podata); + + } + else + { + //echo "update"; + $result3 = $this->cashbook_model->poupdate1($podata,$pono); + + } + + if($rw == $rowcount) + { + echo "Saved Successfully!"; + } + if($balancetopay==0) + { + $status=AMOUNT_PAID; + + } + else + { + $status=PARTIALLY_PAID; + } + $pomaster= array('Paymentstatus'=>$status); + $result1 = $this->cashbook_model->poamountstatus($pomaster,$pono); + //$this->loadViews("bankstatement", $this->global,$data, NULL); + + + } + public function invoiceamount1() + { + + $this->global['pageTitle'] = 'Siddharth : Cashbook Listing'; + $check = $this->input->post('check'); + $rw = $this->input->post('rw'); + + $date = $this->input->post('date'); + $invid = $this->input->post('invid'); + $cname = $this->input->post('cname'); + $invamount = $this->input->post('invamount'); + $invoicereceived = $this->input->post('ir'); + $rowcount = $this->input->post('rc'); + $totalpaidamount= $this->input->post('tpv'); + $bankcreditamount= $this->input->post('bda'); + $invoicetext=$this->input->post('invrec'); + $bankid =$this->input->post('bi'); + $alreadyreceived = 0; + //echo $earlypaid; + $alreadyreceived = $this->cashbook_model->getalreadyreceived($bankid); + if(empty($alreadyreceived)) + { + $arec=0; + } + else + { + foreach($alreadyreceived as $ar) + { + $arec = $ar->cclearbalance; + } + } + + if($check == 1) + { + //echo $arec; + $clearedblnce=($totalpaidamount+$arec); + $balancetoreceived =($bankcreditamount-$totalpaidamount); + $check =1; + } + //echo $balancetocleared; + //die(); + if($balancetoreceived>0) + { + $status='OPEN'; + } + else + { + $status='CLOSE'; + } + + + + $bankdata = array('cclearbalance'=>$clearedblnce,'cbalancetocleared'=>$balancetoreceived,'cstatus'=>$status); + if($check == 1) + { + $res = $this->cashbook_model->bankcreditupdate($bankdata,$bankid); + } + $earlyreceived = 0; + //echo $earlypaid; + $earlyreceived = $this->cashbook_model->getearlyamountcredit($invid); + if(empty($earlyreceived)) + { + $eRec=0; + } + else + { + foreach($earlyreceived as $ec) + { + $eRec = $ec->amountreceived; + } + } + //echo $eRec; + $ip=$this->input->post('ar'); + $balancetoreceived1=($invamount-($ip+$eRec)); + $amtpaid= ($ip+$eRec); + + $updateamount=($totalpaidamount+$eRec); + + $invoicedata1 = array('indate'=>$date,'invoiceno'=>$invid,'customername'=>$cname,'totinvoiceamount'=>$invamount,'balancetoreceived'=>$balancetoreceived1,'amountreceived'=>$totalpaidamount,'bankid'=>$bankid); + + $invoicedata = array('indate'=>$date,'invoiceno'=>$invid,'customername'=>$cname,'totinvoiceamount'=>$invamount,'balancetoreceived'=>$balancetoreceived1,'amountreceived'=>$amtpaid,'bankid'=>$bankid); + + // //print_r ($invoicedata); + // //die(); + $result3 = $this->cashbook_model->invoiceupdate($invid); + $resultn = $this->cashbook_model->mappinginvoice($invoicedata); + + if(count($result3)<=0) + { + //echo "insert"; + $result = $this->cashbook_model->invoicedata($invoicedata); + + } + else + { + //echo "update"; + $result3 = $this->cashbook_model->invoiceupdate1($invoicedata,$invid); + + } + + + + + echo ""; + + + + + + } + public function amountpaid() + { + + + + $this->global['pageTitle'] = 'Siddharth : amountpaid'; + $data['amountpaid'] = $this->cashbook_model->paided(); + $this->loadViews("bankamountpaid", $this->global,$data, NULL); + + } + + public function amountreceived() + { + + + // $this->load->model('cashbook_model'); + $this->global['pageTitle'] = 'Siddharth : Cashbook Listing'; + + $data['amountreceived'] = $this->cashbook_model->received(); + + //print_r( $data['amountpaid']); + //die(); + + + + $this->loadViews("bankamountreceived", $this->global,$data, NULL); + + } + public function cashbanking() + { + $data['dropdownvalues'] = $this->cashbook_model->getAccounTypes(); + $data['cashbanking'] = $this->cashbook_model->newcashbook(); + $this->global['pageTitle'] ='Siddharth :bankcashbook'; + $this->loadViews("bankcashnew", $this->global,$data,NULL); + + } public function convertNumber($amt){ diff --git a/application/logs/log-2018-03-19.php b/application/logs/log-2018-03-19.php index b3cde2b8..8662a7fa 100644 --- a/application/logs/log-2018-03-19.php +++ b/application/logs/log-2018-03-19.php @@ -53,3 +53,118 @@ ERROR - 2018-03-19 07:26:07 --> Severity: Notice --> Undefined variable: Date C ERROR - 2018-03-19 07:26:57 --> Severity: Notice --> Undefined variable: MaxPoDate C:\xampp\htdocs\SIA_bitbucket\SIT.19.3\siddharth_application\application\views\editaction_report.php 52 ERROR - 2018-03-19 07:26:57 --> Severity: Notice --> Undefined variable: CurrentDate C:\xampp\htdocs\SIA_bitbucket\SIT.19.3\siddharth_application\application\views\editaction_report.php 54 ERROR - 2018-03-19 07:26:57 --> Severity: Notice --> Undefined variable: Date C:\xampp\htdocs\SIA_bitbucket\SIT.19.3\siddharth_application\application\views\editaction_report.php 123 +ERROR - 2018-03-19 15:24:46 --> Severity: Notice --> Undefined variable: filename C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 157 +ERROR - 2018-03-19 15:24:46 --> The upload path does not appear to be valid. +ERROR - 2018-03-19 15:24:53 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:24:53 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:24:53 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:24:53 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:24:53 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:24:53 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:25:05 --> Severity: Notice --> Undefined variable: cashbook C:\xampp\htdocs\siddharth_application\application\views\cashbooklisting.php 243 +ERROR - 2018-03-19 15:25:19 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:25:19 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:25:19 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:25:19 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:25:19 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:25:19 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:25:19 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:25:27 --> Severity: Notice --> Use of undefined constant ST044 - assumed 'ST044' C:\xampp\htdocs\siddharth_application\application\models\cashbook_model.php 169 +ERROR - 2018-03-19 15:25:27 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:25:27 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:25:27 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:25:27 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:25:27 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:25:27 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:25:27 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:26:17 --> Severity: Notice --> Use of undefined constant ST044 - assumed 'ST044' C:\xampp\htdocs\siddharth_application\application\models\cashbook_model.php 169 +ERROR - 2018-03-19 15:26:18 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:26:18 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:26:18 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:26:18 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:26:18 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:26:18 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:26:18 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:28:11 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:28:11 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:28:11 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:28:11 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:28:11 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:28:11 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:28:11 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:28:16 --> Severity: Notice --> Use of undefined constant ST044 - assumed 'ST044' C:\xampp\htdocs\siddharth_application\application\models\cashbook_model.php 169 +ERROR - 2018-03-19 15:28:17 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:28:17 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:28:17 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:28:17 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:28:17 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:28:17 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:28:17 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:28:30 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 784 +ERROR - 2018-03-19 15:28:30 --> Severity: Notice --> Undefined variable: clearedblnce C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-19 15:28:30 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-19 15:28:31 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-19 15:28:31 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-19 15:28:32 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:28:32 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:28:32 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:28:32 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:28:32 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:28:32 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:28:34 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 784 +ERROR - 2018-03-19 15:28:34 --> Severity: Notice --> Undefined variable: clearedblnce C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-19 15:28:34 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-19 15:28:35 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-19 15:28:35 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 19 +ERROR - 2018-03-19 15:28:40 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 19 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:28:40 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:29:44 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:29:44 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:29:44 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:29:44 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:29:44 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:29:44 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:29:54 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:29:54 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:29:54 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:29:54 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:29:54 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:29:54 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:29:54 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:29:59 --> Severity: Notice --> Use of undefined constant ST044 - assumed 'ST044' C:\xampp\htdocs\siddharth_application\application\models\cashbook_model.php 169 +ERROR - 2018-03-19 15:30:00 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-19 15:30:00 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:30:00 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-19 15:30:00 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:30:00 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-19 15:30:00 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:30:00 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-19 15:30:14 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 784 +ERROR - 2018-03-19 15:30:14 --> Severity: Notice --> Undefined variable: clearedblnce C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-19 15:30:14 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-19 15:30:15 --> Severity: Notice --> Use of undefined constant AMOUNT_PAID - assumed 'AMOUNT_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 846 +ERROR - 2018-03-19 15:30:15 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-19 15:30:16 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:30:16 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-19 15:30:16 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:30:16 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-19 15:30:16 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:30:16 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 19 +ERROR - 2018-03-19 15:30:24 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 19 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-19 15:30:24 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 diff --git a/application/logs/log-2018-03-20.php b/application/logs/log-2018-03-20.php new file mode 100644 index 00000000..08315f1e --- /dev/null +++ b/application/logs/log-2018-03-20.php @@ -0,0 +1,60 @@ + + +ERROR - 2018-03-20 06:16:12 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:16:12 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:16:12 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:16:12 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:16:12 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:16:12 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:52:37 --> Severity: Notice --> Undefined variable: filename C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 157 +ERROR - 2018-03-20 06:52:37 --> The upload path does not appear to be valid. +ERROR - 2018-03-20 06:52:44 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:52:44 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:52:44 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:52:44 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:52:44 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:52:44 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:52:54 --> Severity: Notice --> Undefined variable: cashbook C:\xampp\htdocs\siddharth_application\application\views\cashbooklisting.php 243 +ERROR - 2018-03-20 06:53:05 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:53:05 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:53:05 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:53:05 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:53:05 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:53:05 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:53:12 --> Severity: Notice --> Undefined variable: cashbook C:\xampp\htdocs\siddharth_application\application\views\cashbooklisting.php 243 +ERROR - 2018-03-20 06:53:41 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-20 06:53:41 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-20 06:53:41 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-20 06:53:41 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-20 06:53:41 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-20 06:53:41 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-20 06:53:41 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-20 06:53:48 --> Severity: Notice --> Use of undefined constant ST044 - assumed 'ST044' C:\xampp\htdocs\siddharth_application\application\models\cashbook_model.php 169 +ERROR - 2018-03-20 06:53:48 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\siddharth_application\application\views\includes\header.php 5 +ERROR - 2018-03-20 06:53:48 --> Severity: Notice --> Undefined variable: cash C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-20 06:53:48 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 7 +ERROR - 2018-03-20 06:53:48 --> Severity: Notice --> Undefined variable: bankid C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-20 06:53:48 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 13 +ERROR - 2018-03-20 06:53:48 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-20 06:53:48 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankdebit.php 28 +ERROR - 2018-03-20 06:54:04 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 784 +ERROR - 2018-03-20 06:54:04 --> Severity: Notice --> Undefined variable: clearedblnce C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-20 06:54:04 --> Severity: Notice --> Undefined variable: balancetocleared C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 793 +ERROR - 2018-03-20 06:54:05 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-20 06:54:05 --> Severity: Notice --> Use of undefined constant PARTIALLY_PAID - assumed 'PARTIALLY_PAID' C:\xampp\htdocs\siddharth_application\application\controllers\cashbook.php 851 +ERROR - 2018-03-20 06:54:07 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:54:07 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 15 +ERROR - 2018-03-20 06:54:07 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:54:07 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 109 +ERROR - 2018-03-20 06:54:07 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:54:07 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankstatement.php 149 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 19 +ERROR - 2018-03-20 06:54:12 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 19 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Undefined variable: t C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 +ERROR - 2018-03-20 06:54:12 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\views\banksettlement.php 161 diff --git a/application/models/cashbook_model.php b/application/models/cashbook_model.php index 31232138..46ab2d31 100755 --- a/application/models/cashbook_model.php +++ b/application/models/cashbook_model.php @@ -9,6 +9,20 @@ class cashbook_model extends CI_Model $r = $this->db->get('t_accountcode'); return $r->result(); + } + function getAccountpay() + { + $this->db->where('type',PAYMENT); + $r = $this->db->get('t_accountcode'); + return $r->result(); + + } + function getAccounTypes1() + { + $this->db->select('name'); + $r = $this->db->get('t_accountcode'); + return $r->result(); + } function saveIncomeExpense($data) @@ -17,18 +31,26 @@ class cashbook_model extends CI_Model $r = $this->db->affected_rows(); return $r; } + function addcashbook($bankcash1) + { + $this->db->insert('T_Bankmappingcashbook',$bankcash1); + $r = $this->db->affected_rows(); + return $r; + } function getIncomeExpenseList($i="") { + // echo $i; $this->db->select('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'); - $this->db->join('T_Employee_Details','tbl_users.EmpID=T_Employee_Details.EmpID'); - - if(!empty($i)) + $this->db->join('t_accountcode','t_income_expense.account_code=t_accountcode.code','left'); + $this->db->join('tbl_users','t_income_expense.Created_By=tbl_users.userId','left'); + $this->db->join('T_Employee_Details','tbl_users.EmpID=T_Employee_Details.EmpID','left'); + $this->db->order_by("date","desc"); + if(!empty($i)) { - $this->db->where('t_income_expense.id',$i); + $this->db->where('t_income_expense.id',$i); + } $r = $this->db->get(); return $r->result(); @@ -47,6 +69,7 @@ class cashbook_model extends CI_Model $this->db->select('t_accountcode.name,t_income_expense.*'); $this->db->from('t_income_expense'); $this->db->join('t_accountcode','t_income_expense.account_code=t_accountcode.code'); + $this->db->order_by("date", "desc"); //$this->db->where('t_income_expense.id') $r = $this->db->get(); return $r->result(); @@ -94,6 +117,396 @@ class cashbook_model extends CI_Model return $r; } + function bankfile($FileDetails) + { + $this->db->insert('T_bankingfile',$FileDetails); + $r = $this->db->affected_rows(); + return $r; + } + function bankfiledata($filedataupload) + { + $this->db->insert('T_bankreport', $filedataupload); + + $r = $this->db->affected_rows(); + //print_r($this->db->last_query()); + return $r; + } + function bankstatement($fdate,$tdate){ + + + $sql="SELECT *,date_format(reportdate,'%d-%m-%Y')as date,tie.total,date_format(valuedate,'%d-%m-%Y')as valuedate from T_bankreport as br left join t_income_expense as tie on tie.bankid=br.ID where reportdate !=0"; + if ($fdate and $tdate != ''){ + $fdate= date("Y-m-d",strtotime($fdate)); + $tdate=date("Y-m-d",strtotime($tdate)); + + $sql.="and date(reportdate) >= '".$fdate."' + and date(reportdate) <= '".$tdate."'"; + } + $query = $this->db->query($sql); + return $query->result(); + + + + } + + function debitbankstatemet($SupplierName,$fdate,$tdate) + { + $status='ST057'; + //echo $tdate; + //die(); + $this->db->distinct(); + $this->db->select('POM.PONO,POM.Paymentstatus,supp.SupplierName, + POM.TotalOrderValue,POM.ServiceDescription,BR.Balancetopay,BR.Amountpaid, + POM.PODate,POM.POType,POM.ReleasedBy,POM.IsQualityChkReqired,POM.POType,POM.CapitalRange,POM.Status, + PUADV.AdvanceAmount'); + $this->db->from ('T_PurchaseOrder_Master POM'); + + $this->db->join('T_SupplierDetailsN supp','supp.SupplierID = POM.SupplierID'); + + $this->db->join('T_PurchaseOrder_AdvanceRequest PUADV','POM.PONO=PUADV.PONO','left'); + + $this->db->join ('T_Bankporeport BR','BR.PONO = POM.PONO','left'); + $this->db->where('POM.Status',ST044); + $this->db->where('supp.SupplierName',$SupplierName); + $this->db->or_where('POM.PODate BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"'); + + $this->db->group_by('POM.PONO'); + $query = $this->db->get(); + return $query->result(); + + } + function bankinvoice($Customer,$fdate,$tdate) + { + + $this->db->distinct(); + $this->db->select('iva.invoice_id,iva.invoice_total,iv.invoice_date_created,iva.invoice_paid,ic.client_name,BI.balancetoreceived,BI.amountreceived'); + $this->db->from ('ip_invoice_amounts iva'); + $this->db->join ('ip_invoices iv','iv.invoice_id = iva.invoice_id','left'); + $this->db->join ('ip_clients ic','ic.client_id = iv.client_id','left'); + $this->db->join ('T_Bankinvoicereport BI','BI.invoiceno = iva.invoice_id','left'); + $this->db->where('ic.client_name',$Customer); + $this->db->or_where('iv.invoice_date_created BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"'); + $this->db->group_by('iva.invoice_id'); + //$this->db->where('inc.type','PAYMENT'); + $query = $this->db->get(); + return $query->result(); + + } +function receiptdata() + { + + $this->db->distinct(); + $this->db->select('inc.type,inc.date,inc.account_code,inc.towhom,inc.total'); + $this->db->from ('t_income_expense inc'); + $this->db->where('inc.type','RECEIPT'); + $query = $this->db->get(); + return $query->result(); + + } + function paymentdata() + { + + $this->db->distinct(); + $this->db->select('inc.type,inc.date,inc.account_code,inc.towhom,inc.total'); + $this->db->from ('t_income_expense inc'); + //$this->db->group_by('inc.account_code'); + //$this->db->where('inc.type','PAYMENT'); + $query = $this->db->get(); + return $query->result(); + + } + +function debitpolist($bankid) + { + $this->db->select('mid,Podate,PONO,Suppliername,Totalpoamount, + Balancetopay,Amountpaid'); + $this->db->from ('T_Bankporeport'); + $this->db->where('mid',$bankid); + + //$this->db->group_by('PONO'); + $query = $this->db->get(); + return $query->result(); + + } + function creditinvoicelist($SupplierName,$fdate,$tdate,$bankid) + { + $this->db->select('indate,invoiceno,customername,totinvoiceamount, + balancetoreceived,amountreceived'); + $this->db->from ('T_Bankinvoicereport'); + $this->db->where('bankid',$bankid); + + $this->db->group_by('invoiceno'); + $query = $this->db->get(); + return $query->result(); + + } +function mappingcash($SupplierName,$fdate,$tdate,$bankid) + { + $this->db->select('cdate,mid,btype,amount,boption,ie.total,ie.account_code'); + $this->db->from ('T_Bankmappingcashbook bmc'); + $this->db->join ('t_income_expense ie','ie.bankid = bmc.mid','left'); + $this->db->where('mid',$bankid); + + $this->db->group_by('mid'); + $query = $this->db->get(); + return $query->result(); + + } +function newcashbook() +{ + $this->db->select('cdate,mid,btype,amount,boption,mappingamount,totalamount,amounttype,alreadycreditpaid'); + $this->db->from ('T_Bankmappingcashbook'); + //$this->db->where('mid',$bankid); + + //$this->db->group_by('mid'); + $query = $this->db->get(); + return $query->result(); + +} + +function debitlistpo($SupplierName,$fdate,$tdate,$pono) + { + $this->db->select('bmp.mid,bmp.PONO,bmp.Amountpaid,br.Narration'); + $this->db->from ('T_Bankmappingpo as bmp'); + + $this->db->join('T_bankreport br','br.ID = bmp.mid'); + $this->db->where('PONO',$pono); + // $this->db->group_by('PONO'); + $query = $this->db->get(); + return $query->result(); + + } + + function creditlistinv($invno) + { + $this->db->select('bmp.bankid,bmp.invoiceno,bmp.amountreceived,br.Narration'); + $this->db->from ('T_Bankmappingiv as bmp'); + + $this->db->join('T_bankreport br','br.ID = bmp.bankid'); + $this->db->where('invoiceno',$invno); + // $this->db->group_by('PONO'); + $query = $this->db->get(); + return $query->result(); + + } + + function getsupplier() + { + $this->db->select('SupplierName'); + $this->db->from('T_SupplierDetailsN'); + //$this->db->join('t_accountcode','t_income_expense.account_code=t_accountcode.code'); + //$this->db->where('t_income_expense.id') + $r = $this->db->get(); + return $r->result(); + + } + function getcustomer() + { + $this->db->select('client_name'); + $this->db->from('ip_clients'); + //$this->db->join('t_accountcode','t_income_expense.account_code=t_accountcode.code'); + //$this->db->where('t_income_expense.id') + $r = $this->db->get(); + return $r->result(); + + } + function invoicedata($invoicedata) + { + $this->db->insert('T_Bankinvoicereport',$invoicedata); + // $this->db->where('PONO',$pono); + $r = $this->db->affected_rows(); + return $r; + } + function podata($podata) + { + $this->db->insert('T_Bankporeport',$podata); + // $this->db->where('PONO',$pono); + $r = $this->db->affected_rows(); + return $r; + } + function invicedata($invoicedata) + { + $this->db->insert('T_Bankinvoicereport',$invoicedata); + $r = $this->db->affected_rows(); + return $r; + } + function mappingpo($podata) + { + $this->db->insert('T_Bankmappingpo',$podata); + // $this->db->where('PONO',$pono); + $r = $this->db->affected_rows(); + return $r; + } + function mappinginvoice($invoicedata) + { + $this->db->insert('T_Bankmappingiv',$invoicedata); + // $this->db->where('PONO',$pono); + $r = $this->db->affected_rows(); + return $r; + } + function mappingcashbook($podata) + { + $this->db->insert('T_Bankmappingpo',$podata); + // $this->db->where('PONO',$pono); + $r = $this->db->affected_rows(); + return $r; + } + + public function poupdate($pono) + { + $this->db->select('PONO'); + $this->db->from('T_Bankporeport'); + $this->db->where('PONO ',$pono); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + public function invoiceupdate($invid) + { + $this->db->select('invoiceno'); + $this->db->from('T_Bankinvoicereport'); + $this->db->where('invoiceno',$invid); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + public function bankid($pono) + { + $this->db->select('PONO'); + $this->db->from('T_Bankporeport'); + $this->db->where('PONO ',$pono); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + public function cashbankupdate($cashbookstatus,$bankid) + { + + $this->db->where('ID',$bankid); + $this->db->update('T_bankreport',$cashbookstatus); + return TRUE; + + } + function cashcreditupdate($cashbookstatus1,$bankid) + { + + $this->db->where('ID',$bankid); + $this->db->update('T_bankreport',$cashbookstatus1); + return TRUE; + } + public function bankupdate($bankdata,$bankid) + { + $this->db->where('ID ',$bankid); + $this->db->update('T_bankreport',$bankdata); + return TRUE; + + } + public function bankcreditupdate($bankcreditdata,$bankid) + { + + + $this->db->where('ID ',$bankid); + $this->db->update('T_bankreport',$bankcreditdata); + + // print_r( $this->db->last_query()); + return TRUE; + + } + public function getearlyamount($pono) + { + $this->db->select('Amountpaid'); + $this->db->from('T_Bankporeport'); + $this->db->where('PONO ',$pono); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + public function getearlyamountcredit($invid) + { + $this->db->select('amountreceived'); + $this->db->from('T_Bankinvoicereport'); + $this->db->where('invoiceno ',$invid); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + public function getalreadypaid($bankid) + { + $this->db->select('Clearbalance'); + $this->db->from('T_bankreport'); + $this->db->where('ID ',$bankid); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + public function getalreadyreceived($bankid) + { + $this->db->select('cclearbalance'); + $this->db->from('T_bankreport'); + $this->db->where('ID ',$bankid); + $query = $this->db->get(); + // print_r( $this->db->last_query()); + return $query->result(); + + } + + public function poupdate1($podata,$pono) + { + + $this->db->where('PONO', $pono); + $this->db->update('T_Bankporeport',$podata); + + return TRUE; + } + public function invoiceupdate1($invoicedata,$invid) + { + //print_r($invoicedata); + //print_r($invid); + $this->db->where('invoiceno',$invid); + $this->db->update('T_Bankinvoicereport',$invoicedata); + + return TRUE; + } + function paided() + { + $this->db->select('*'); + $this->db->from('T_Bankporeport'); + $query = $this->db->get(); + $result = $query->result(); + return $result; + + } + function received() + { + $this->db->select('*'); + $this->db->from('T_Bankinvoicereport'); + $query = $this->db->get(); + $result = $query->result(); + return $result; + + } + function poamountstatus($pomaster,$pono) + { + $this->db->where('PONO', $pono); + $this->db->update('T_PurchaseOrder_Master',$pomaster); + $r = $this->db->affected_rows(); + return $r; + + } + function poamountstatus1($pomaster1,$pono) + { + $this->db->where('PONO', $pono); + $this->db->update('T_PurchaseOrder_Master',$pomaster1); + $r = $this->db->affected_rows(); + return $r; + + } function Cashbook($cashbookdatas) { diff --git a/application/views/bankamountpaid.php b/application/views/bankamountpaid.php new file mode 100644 index 00000000..fbb2fe97 --- /dev/null +++ b/application/views/bankamountpaid.php @@ -0,0 +1,268 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+

Bank Debit Amount Paid Report

+
+ +
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ + +
+ + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DatePONOSupplier NameTotal PO AmountBalance To PayAmount Paid
Podate?>PONO?>Suppliername?>Totalpoamount?>Balancetopay?>Amountpaid?>
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankamountreceived.php b/application/views/bankamountreceived.php new file mode 100644 index 00000000..69c49e31 --- /dev/null +++ b/application/views/bankamountreceived.php @@ -0,0 +1,268 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+

Bank Credit Amount Received Report

+
+ +
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ + +
+ + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateINVOICENOSupplier NameTotal Invoice AmountBalance To ReceivedAmount Received
indate?>invoiceno?>customername?>totinvoiceamount?>balancetoreceived?>amountreceived?>
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankcash.php b/application/views/bankcash.php new file mode 100644 index 00000000..075a34fb --- /dev/null +++ b/application/views/bankcash.php @@ -0,0 +1,711 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + +
+

Cahbook Payment Report

+
+ +
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ + +
+
+ + +
+
+   Save + +
+
+
+
+ +
+ + +
+
+ + +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + Paymentstatus; + $balancetopay=$t->Balancetopay; + //print_r($$status); + if($status !='ST057') + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SelectTypeDateAccount CodeTo WhomTotalBalanceAmountpaid
type?>date?>account_code?>towhom?>total?>total?>
Total      + + + + + +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankcashnew.php b/application/views/bankcashnew.php new file mode 100644 index 00000000..8ec411fb --- /dev/null +++ b/application/views/bankcashnew.php @@ -0,0 +1,483 @@ + + + + +
+ +
+

+
Siddharth Industries - Bank Statement(Receipt and Payment)
+ +

+
+ +
+
+ Back +
+
+
+ +
+ + +
+ + + +
+ +
+
+ + +
+ +
+
+ Select Account type:

+ RECEIPT         + PAYMENT + + +
+
+ +
+
+ Account Name Select: *

+ +
+
+ + +
+
+ + Date:*

+ + +
+ +
+ +
+
+ + AAA*

+ + +
+ +
+
+
+
+
+
+ GST +
+
+
+ +
+ +
+
+ Total Amount:* + + +
+
+ + + + + + + +
+
+
+
+ Description: + + +
+ +
+
+ + + + + + +
+
+
+
+ load->helper('form'); + $error = $this->session->flashdata('error'); + if($error) + { + ?> +
+ + session->flashdata('error'); ?> +
+ + session->flashdata('success'); + if($success) + { + ?> +
+ + session->flashdata('success'); ?> +
+ + +
+
+ ', '
'); ?> +
+
+
+
+
+ + +
+ \ No newline at end of file diff --git a/application/views/bankcashreceipt.php b/application/views/bankcashreceipt.php new file mode 100644 index 00000000..87d5b92e --- /dev/null +++ b/application/views/bankcashreceipt.php @@ -0,0 +1,709 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + +
+

Cashbook Receipt Report

+
+ +
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ + +
+
+ + +
+
+   Save + +
+
+
+
+ +
+ + +
+
+ + +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + Paymentstatus; + $balancetopay=$t->Balancetopay; + //print_r($$status); + if($status !='ST057') + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SelectTypeDateAccount CodeTo WhomTotalAmountpaid
type?>date?>account_code?>towhom?>total?>
Total      + + + + + +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankdebit.php b/application/views/bankdebit.php new file mode 100644 index 00000000..8c83eb9e --- /dev/null +++ b/application/views/bankdebit.php @@ -0,0 +1,760 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + +
+

Bank Debit Report

+
+ +
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ + +
+
+ + +
+
+   Save + +
+
+
+
+ +
+ + +
+
+ + +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + Paymentstatus; + $balancetopay=$t->Balancetopay; + //print_r($$status); + if($status !='ST057') + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SelectDatePONOSupplier NameTotal PO AmountBalance To PayAmount Paid
PODate?>PONO?>SupplierName?>TotalOrderValue?>TotalOrderValue-$t->Amountpaid)?>
Total      + + + + + +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankingfile.php b/application/views/bankingfile.php new file mode 100644 index 00000000..830e95ec --- /dev/null +++ b/application/views/bankingfile.php @@ -0,0 +1,120 @@ + + + + + + +
+ +
+

+
Siddharth Industries - Banking Report
+ +

+
+
+
+
+ + +
+
+ +
Bank Names + + +
+ +
+
+ + + + +
+
+
+ +
+
+ + + + + +
+
+ +
+
+ + diff --git a/application/views/bankinvoice.php b/application/views/bankinvoice.php new file mode 100644 index 00000000..f253ce1d --- /dev/null +++ b/application/views/bankinvoice.php @@ -0,0 +1,704 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + +

Invoice Report

+
+ +
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ + +
+
+ + +
+
+   Save + +
+
+
+
+ +
+ + +
+
+ + +
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + Paymentstatus; + $balancetopay=$t->Balancetopay; + //print_r($$status); + if($status !='ST057') + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SelectDateInvoice IDCustomer NameInvoice AmountBalance To ReceivedAmountReceived
invoice_date_created?>invoice_id?>client_name?>invoice_total?>invoice_total-$t->amountreceived?>
Total      + + + + + +
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankinvoicesettlement.php b/application/views/bankinvoicesettlement.php new file mode 100644 index 00000000..eeea136a --- /dev/null +++ b/application/views/bankinvoicesettlement.php @@ -0,0 +1,359 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+

Bank Credit Amount Paid Report

+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateINVOICE NOCustomer NameTotal AmountBalance To ReceivedReceived Amount
indate?>invoiceno?>customername?>totinvoiceamount?>balancetoreceived?>amountreceived?>
+

Cashbook Reports

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateAccount CodeBankidAmount TypeTotal AmountOption
cdate?>account_code?>mid?>btype?>total?>boption?>
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankinvoisettle.php b/application/views/bankinvoisettle.php new file mode 100644 index 00000000..42f0d19a --- /dev/null +++ b/application/views/bankinvoisettle.php @@ -0,0 +1,262 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+

Bank Invoice settlement

+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Bank IDNarrationInvoiceNOAmount Received
bankid?>Narration?>invoiceno?>amountreceived?>
+ +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankposettlement.php b/application/views/bankposettlement.php new file mode 100644 index 00000000..df0d497d --- /dev/null +++ b/application/views/bankposettlement.php @@ -0,0 +1,263 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+

Bank PO settlement

+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Bank IDNarrationPONOAmount Paid
mid?>Narration?>PONO?>Amountpaid?>
+ +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankreport.php b/application/views/bankreport.php index bc8a7db2..67f36313 100755 --- a/application/views/bankreport.php +++ b/application/views/bankreport.php @@ -9,17 +9,11 @@ $(function() { $(".select2").select2(); - $( "#chequedate" ).datepicker({ - maxDate :'now', - dateFormat :'dd-mm-yy' - }); $("#bankreport").click(function(){ var bank = $('#bank').val(); var payon = $('#month').val(); - var chequeno = $('#chequeno').val(); - var chequedate = $('#chequedate').val(); var excel = $('#excel').is(":checked"); // alert(excel); @@ -162,14 +156,6 @@ $("#esireport").click(function(){ -
-
- Cheque No -
-
- Cheque Date -
-

@@ -186,67 +172,4 @@ $("#esireport").click(function(){ -
- - \ No newline at end of file + \ No newline at end of file diff --git a/application/views/banksettlement.php b/application/views/banksettlement.php new file mode 100644 index 00000000..f7235ce8 --- /dev/null +++ b/application/views/banksettlement.php @@ -0,0 +1,364 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+

Bank Debit Amount Paid Report

+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DatePONOSupplier NameTotal PO AmountBalance To PayAmount Paid
Podate?>PONO?>Suppliername?>Totalpoamount?>Balancetopay?>Amountpaid?>
+

Cashbook Reports

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateAccount CodeBankidAmount TypeTotal AmountOption
cdate?>account_code?>mid?>btype?>total?>boption?>
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/application/views/bankstatement.php b/application/views/bankstatement.php new file mode 100644 index 00000000..5fef934f --- /dev/null +++ b/application/views/bankstatement.php @@ -0,0 +1,634 @@ + + +FontCode2000; + }} + foreach($financialyear as $item) + + { + $finyear = $item->financial_year; + + } ?> + + + + + + + + + + + +
+
+ + + + +
+ +
+ + + + + + + +

Bank Report

+
+ 'form-label-left bankdata ','name' => 'bankdata','id' => 'bankdata'); + + echo form_open($this->config->base_url().'/cashbook/bankdebitdata/',$attributes); ?> +
+ +
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+
+
+ +
+ Status; + $type=0; + if(!empty($t->Debit)) + { + $type = 1; + } + } + ?> + + +
+ + +
+
+ + + + +
+
+
+ +
+
+ +
+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Status; + $type=0; + if(!empty($t->Debit)) + { + $type = 1; + } + //print_r($t); + + ?> + + + + + + + + + + + + + + + + + + + + + Clearbalance==null) + { + $clearbalance=0; + } + else + { + $cashbook=$t->total; + $clearbalance=$t->Clearbalance; + //$totalclearbalance=$cashbook+$clearbalance; + } + ?> + + + + + + + + + + + + + + + + + + cclearbalance==null) + { + $clearbalance=0; + } + else + { + $clearbalance=$t->cclearbalance; + } + ?> + + + + + + + + + +
S.NOSelectDateValue DateBank NameCheque NoNarrationCod Debit Cleard Balance Balance to Clear Status Credit Cleard Balance Balance to Clear Status
ID?>date?>valuedate?>Bankname?>chequeNo?>Narration?>Cod?>Debit;?>Debit) - ($t->Clearbalance);?>Debit-$clearbalance?>Status?>Credit;?>Credit)-($t->cclearbalance);?>cstatus;?> + + + + + + + + +
+ +
+
+ +
+ + + +
+ + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/application/views/includes/header.php b/application/views/includes/header.php index 41f73f9c..9ab30fde 100755 --- a/application/views/includes/header.php +++ b/application/views/includes/header.php @@ -1043,10 +1043,65 @@ $(function() {
  • - - Receipt and Payment - -
  • + + + Receipt and Payment + + +
  • + + + Banking + +
  • +
  • + + + Bank Statements + +
  • +
  • + + + Amount Paid + +
  • +
  • + + + Depit Reports + +
  • +
  • + + + Receipt + +
  • +
  • + + + Payment + +
  • +
  • + + + Invoice + +
  • +
  • + + + Credit Reports + +
  • +
  • + + + addincexp + +
  • @@ -1088,11 +1143,66 @@ $(function() {
  • - - - Receipt and Payment - -
  • + + + Receipt and Payment + + +
  • + + + Banking + +
  • +
  • + + + Bank Statements + +
  • +
  • + + + Amount Paid + +
  • +
  • + + + Depit Reports + +
  • +
  • + + + Receipt + +
  • +
  • + + + Payment + +
  • +
  • + + + Invoice + +
  • +
  • + + + Credit Reports + +
  • +
  • + + + addincexp + +
  • +