cashbook report changes
This commit is contained in:
parent
0575d918e2
commit
e844533b53
@ -22,6 +22,8 @@ class emergencypurchaseorder extends BaseController
|
||||
$this->load->library('session');
|
||||
$this->load->library('form_validation');
|
||||
$this->load->model('requistion_model');
|
||||
$this->load->model('inwardgateregister_model');
|
||||
$this->load->model('mrir_model');
|
||||
$this->isLoggedIn();
|
||||
}
|
||||
|
||||
@ -68,8 +70,19 @@ class emergencypurchaseorder extends BaseController
|
||||
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
|
||||
$data['ServiceOption'] = $this->requistion_model->getConfigValue('C022');
|
||||
$data['PoTypeOptions'] = $this->purchaseorder_model->getConfigValue('C026');
|
||||
|
||||
|
||||
if($this->DEPCode == PURCHASE )
|
||||
{
|
||||
$this->loadViews("alterpurchaseorder", $this->global, $data, Null);
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, Null);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* this function used for get all material code using request type
|
||||
@ -91,10 +104,103 @@ class emergencypurchaseorder extends BaseController
|
||||
|
||||
}
|
||||
|
||||
|
||||
function addfile()
|
||||
{
|
||||
|
||||
$file = '';
|
||||
//Check whether user upload picture
|
||||
if(!empty($_FILES['images']['name']))
|
||||
{
|
||||
//echo 'true';
|
||||
$config['upload_path'] = 'uploads/BillFiles/';
|
||||
$config['allowed_types'] = 'docx|pdf|doc|png|jpg';
|
||||
$config['file_name'] = $_FILES['images']['name'];
|
||||
// print_r($config);die;
|
||||
//Load upload library and initialize configuration
|
||||
$this->load->library('upload',$config);
|
||||
$this->upload->initialize($config);
|
||||
|
||||
if($this->upload->do_upload('images'))
|
||||
{
|
||||
$uploadData = $this->upload->data();
|
||||
//print_r($uploadData);
|
||||
$file = $uploadData['file_name'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = array('error' => $this->upload->display_errors());
|
||||
//print_r($error);
|
||||
$file = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//echo 'false';
|
||||
$file = '';
|
||||
}
|
||||
|
||||
return $file ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function addfile1()
|
||||
{
|
||||
|
||||
$file = '';
|
||||
//Check whether user upload picture
|
||||
if(!empty($_FILES['images1']['name']))
|
||||
{
|
||||
//echo 'true';
|
||||
$config['upload_path'] = 'uploads/BillFiles/';
|
||||
$config['allowed_types'] = 'docx|pdf|doc|png|jpg';
|
||||
$config['file_name'] = $_FILES['images1']['name'];
|
||||
// print_r($config);die;
|
||||
//Load upload library and initialize configuration
|
||||
$this->load->library('upload',$config);
|
||||
$this->upload->initialize($config);
|
||||
|
||||
if($this->upload->do_upload('images1'))
|
||||
{
|
||||
$uploadData = $this->upload->data();
|
||||
//print_r($uploadData);
|
||||
$file = $uploadData['file_name'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = array('error' => $this->upload->display_errors());
|
||||
//print_r($error);
|
||||
$file = '';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//echo 'false';
|
||||
$file = '';
|
||||
}
|
||||
|
||||
return $file ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//This used to Create Service Purchase Order
|
||||
function addNewServicePurchaseOrder()
|
||||
{
|
||||
|
||||
//echo "t54";
|
||||
|
||||
|
||||
//die();
|
||||
|
||||
$txtRowCount=$this->input->post('txtRowCount');
|
||||
|
||||
$POdt =$this->input->post('PODate');
|
||||
$PODate = $this->getDateformat($POdt);
|
||||
@ -106,34 +212,73 @@ class emergencypurchaseorder extends BaseController
|
||||
$DeliverySchedule='';
|
||||
$Deliverydt = $this->getDateformat($POdt);
|
||||
|
||||
$txtsplservice=$this->input->post('txtSpecialservice');
|
||||
|
||||
if($txtsplservice=='1')
|
||||
{
|
||||
|
||||
$POStatus=SPECIAL_PO;
|
||||
}
|
||||
else
|
||||
{
|
||||
$POStatus=REQITEM_Emergency_PO_CREATED;
|
||||
}
|
||||
|
||||
|
||||
//echo $POStatus;
|
||||
//die();
|
||||
|
||||
$POType = $this->input->post('POType');
|
||||
|
||||
$SpcialInstruction = $this->input->post('ScopeOfWork');
|
||||
$RequistionComments = "Created Emergency Service PO";
|
||||
$TotalOrderValueSummary = $this->input->post('TextTotalOrderValueSummaryService');
|
||||
// $TotalOrderValueSummary = $this->input->post('TextTotalOrderValueSummaryService');
|
||||
|
||||
$POStatus = $this->input->post('TextStatus');
|
||||
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummaryService');
|
||||
|
||||
//$POStatus = $this->input->post('TextStatus');
|
||||
$CreateBy = $this->session->userdata ('userId');
|
||||
$RequestedBy = $this->input->post('drpDepartment');
|
||||
|
||||
$ReqStatus = REQITEM_Emergency_PO_CREATED;
|
||||
|
||||
$RowCount = $this->input->post('TextRowCount');
|
||||
// $RowCount = $this->input->post('TextRowCount');
|
||||
|
||||
$DeletedRow = $this->input->post('TextDeletedRowCount');
|
||||
$RowCount = $this->input->post('txtRowCount');
|
||||
|
||||
//$DeletedRow = $this->input->post('TextDeletedRowCount');
|
||||
|
||||
$DeletedRow = $this->input->post('txtDeletedRow1');
|
||||
|
||||
$comma_separated = explode(':', $DeletedRow);
|
||||
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
$createddt = $dt->format('Y-m-d H:i:s');
|
||||
//$PaymentTerms=$this->input->post('PaymentMethod');
|
||||
|
||||
$PaymentTerms=$this->input->post('PaymentMethod');
|
||||
$OtherPayment=$this->input->post('Otherpayment');
|
||||
|
||||
|
||||
$ServiceWorkStatus=$this->input->post('workStatus');
|
||||
if($POStatus==SPECIAL_PO)
|
||||
{
|
||||
$ServiceWorkStatus=SERVICE_COMPLETED;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$ServiceWorkStatus=$this->input->post('txtworkstatus');
|
||||
|
||||
//$ServiceWorkStatus=$this->input->post('workstatusValue');
|
||||
}
|
||||
|
||||
|
||||
//echo $ServiceWorkStatus;
|
||||
|
||||
// echo "fveg";
|
||||
|
||||
//die();
|
||||
$ServiceScheduleType = $this->input->post('ScheduleType');
|
||||
$ServiceScheduleOptions = $this->input->post('ScheduleType');
|
||||
//$ServiceServiceNo = $this->input->post('ServiceNo');
|
||||
@ -250,16 +395,34 @@ class emergencypurchaseorder extends BaseController
|
||||
|
||||
}
|
||||
|
||||
|
||||
if($POStatus==SPECIAL_PO){
|
||||
|
||||
$file =$this->addfile1();
|
||||
|
||||
$myfile = array('FilePath'=>$file,'MaterialCode'=>$MaterialCode,'PONO'=>$PONO);
|
||||
$result= $this->purchaseorder_model->fileupload($myfile);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($POStatus == REQ_DRAFT)
|
||||
{
|
||||
echo 'Emergency Service Purchase Order Saved Successfully!The PO NO Is: '.$PONO;
|
||||
// echo 'Emergency Service Purchase Order Saved Successfully!The PO NO Is: '.$PONO;
|
||||
|
||||
|
||||
echo "<script>alert('You Have Successfully Saved the Purchase order! $PONO');</script>";
|
||||
redirect('purchaseorder/PurchaseOrderList','refresh');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Emergency Service Purchase Order Created Successfully!The PO NO Is: '.$PONO;
|
||||
// echo 'Emergency Service Purchase Order Created Successfully!The PO NO Is: '.$PONO;
|
||||
|
||||
echo "<script>alert('You Have Successfully created the Purchase order! $PONO');</script>";
|
||||
redirect('purchaseorder/PurchaseOrderList','refresh');
|
||||
|
||||
}
|
||||
|
||||
@ -272,6 +435,9 @@ class emergencypurchaseorder extends BaseController
|
||||
function addNewRevenuePurchaseOrder()
|
||||
{
|
||||
|
||||
|
||||
$txtspl=$this->input->post('txtSpecial');
|
||||
|
||||
//echo "Emergency Revenue PO";
|
||||
$POdt =$this->input->post('PODate');
|
||||
$PODate = $this->getDateformat($POdt);
|
||||
@ -307,12 +473,33 @@ class emergencypurchaseorder extends BaseController
|
||||
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
|
||||
$RequistionComments = "Created Emergency Revenue PO";
|
||||
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummary');
|
||||
$POStatus = $this->input->post('TextStatus');
|
||||
|
||||
if($txtspl==0)
|
||||
{
|
||||
$POStatus=REQITEM_Emergency_PO_CREATED;
|
||||
}
|
||||
else
|
||||
{
|
||||
$POStatus=SPECIAL_PO;
|
||||
}
|
||||
|
||||
//$POStatus = $this->input->post('TextStatus');
|
||||
$RequestedBy = $this->input->post('drpDepartment');
|
||||
$CreateBy = $this->session->userdata ( 'userId' );
|
||||
$RowCount = $this->input->post('TextRowCount');
|
||||
// $RowCount = $this->input->post('TextRowCount');
|
||||
|
||||
$RowCount=$this->input->post('txtRowCount1');
|
||||
|
||||
//echo $RowCount;
|
||||
$DeletedRow = $this->input->post('TextDeletedRowCount');
|
||||
// $DeletedRow = $this->input->post('TextDeletedRowCount');
|
||||
|
||||
$DeletedRow = $this->input->post('txtDeletedRow1');
|
||||
|
||||
|
||||
|
||||
$splRow = $this->input->post('splrow');
|
||||
|
||||
// echo $DeletedRow;
|
||||
|
||||
$ReqStatus = REQITEM_Emergency_PO_CREATED;
|
||||
$Local_Interstate=$this->input->post('Range');
|
||||
@ -324,6 +511,17 @@ $RequestedBy = $this->input->post('drpDepartment');
|
||||
$PaymentTerms=$this->input->post('PaymentMethod');
|
||||
$OtherPayment=$this->input->post('Otherpayment');
|
||||
|
||||
if($POStatus==SPECIAL_PO)
|
||||
{
|
||||
$Qualitycheck=$this->input->post('txtQuality');
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$Qualitycheck=1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//add requistion
|
||||
$Request = array('ReqType'=>$POType, 'RequestedDept'=>$RequestedBy,'CostCenterCode'=>$CostCenterName,'Status'=>$ReqStatus,'Comments'=>$RequistionComments,'ReqDate'=>$createddt,'CreatedDate'=>$createddt,'CreatedBy'=>$CreateBy);
|
||||
@ -336,7 +534,7 @@ $RequestedBy = $this->input->post('drpDepartment');
|
||||
$RegNo = $Req[0]['ReqNo'];
|
||||
}
|
||||
// PO Master
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'PORange'=>$Local_Interstate,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Offer_No'=>$supplieroffno,'Supplier_Reference'=>$supplierreference,'Other_Reference'=>$otherreference,'InsuranceNumber'=>$insuranceno,'InsuranceStatus'=>$insurancestatus,'Fincap'=>$fincap,'POSubType'=>$revenuetype);
|
||||
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'PORange'=>$Local_Interstate,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Offer_No'=>$supplieroffno,'Supplier_Reference'=>$supplierreference,'Other_Reference'=>$otherreference,'InsuranceNumber'=>$insuranceno,'InsuranceStatus'=>$insurancestatus,'Fincap'=>$fincap,'POSubType'=>$revenuetype,'IsQualityChkReqired'=>$Qualitycheck);
|
||||
//print_r($POList);
|
||||
$POMaster = $this->purchaseorder_model->addPOMaster($POList,$POType,$revenuetype);
|
||||
|
||||
@ -426,7 +624,230 @@ $RequestedBy = $this->input->post('drpDepartment');
|
||||
}
|
||||
|
||||
}
|
||||
echo 'Purchase Order Created Successfully! PO Number Is: '.$PONO ;
|
||||
|
||||
|
||||
if($txtspl==1 || $txtspl==2)
|
||||
{
|
||||
|
||||
//secho "cwwe";
|
||||
//die();
|
||||
|
||||
$PONOigr = $PONO;
|
||||
|
||||
//echo $PONOigr;
|
||||
//die();
|
||||
//IGR Data Entry
|
||||
//$DeliveryChellanOrInvoiceNo = $this->input->post('ChallanInvNo');
|
||||
|
||||
$DeliveryChellanInvoiceNo=$this->input->post('ChallanInvNo');
|
||||
|
||||
$DeliveryChellan = $this->input->post('ChallanInvDate');
|
||||
$DeliveryChellanDate = $this->getDateformat($DeliveryChellan);
|
||||
|
||||
$Vehicle = $this->input->post('VehicleNo');
|
||||
$Courier = $this->input->post('CourierNo');
|
||||
|
||||
|
||||
$CreatedBy = $this->session->userdata('userId');
|
||||
|
||||
$Remarksmrir='Emergency PO without Quality Check';
|
||||
//$Remarks = $this->input->post('Remarks');
|
||||
//$RowCount = $this->input->post('TextRowCount');
|
||||
//echo $RowCount;
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$createddt = $dt->format('Y-m-d H:i:s');
|
||||
|
||||
$IGRStatus = IGR_CREATED;
|
||||
|
||||
|
||||
|
||||
$igr = array();
|
||||
|
||||
$igr = array('PONO'=>$PONO,'VehicleNo'=>$Vehicle,'DeliveryChellanOrInvoiceNo'=>$DeliveryChellanInvoiceNo,'DeliveryChellanDate'=>$DeliveryChellanDate,'CourierNo'=>$Courier,'IGRStatus'=>$IGRStatus,'CreatedBy'=>$CreatedBy,'CreatedDate' =>$createddt);
|
||||
|
||||
//print_r($igr);
|
||||
|
||||
$igrM = $this->inwardgateregister_model->addigrM($igr);
|
||||
|
||||
|
||||
|
||||
|
||||
$IGRNO = '';
|
||||
if(count($igrM)>0)
|
||||
{
|
||||
foreach ($igrM as $key )
|
||||
{
|
||||
$IGRNO=$key->IGRNO;
|
||||
}
|
||||
}
|
||||
// echo $IGRNO;
|
||||
|
||||
|
||||
if($Qualitycheck==0)
|
||||
{
|
||||
|
||||
|
||||
$mrirmastervalues = array('MRIRStatus'=>MRIR_APPROVED,'IGRNO'=>$IGRNO,'PONO'=>$PONO,'CreatedBy'=>$CreatedBy,'Createdon'=>$createddt,'Remarks'=>$Remarksmrir);
|
||||
|
||||
$mrirmaster = $this->mrir_model->master_mrir($mrirmastervalues);
|
||||
|
||||
|
||||
$MRIRNO = '';
|
||||
|
||||
|
||||
if(count($mrirmaster)>0)
|
||||
|
||||
{
|
||||
foreach ($mrirmaster as $key ) {
|
||||
|
||||
$MRIRNO=$key->MRIRNo; }
|
||||
}
|
||||
|
||||
|
||||
for ($i = 1; $i <= $RowCount; $i++)
|
||||
{
|
||||
|
||||
|
||||
$MaterialCode = $this->input->post('materialCode'.$i);
|
||||
$Quantity = $this->input->post('quantity'.$i);
|
||||
|
||||
$Remarked = "Special PO Without Quality Check";
|
||||
|
||||
$MRIRStatus=MRIR_APPROVED;
|
||||
|
||||
|
||||
|
||||
//this array to store the value in child table..
|
||||
$mrirdetailvalues = array('MRIRNO'=>$MRIRNO,'MaterialCode'=>$MaterialCode,'ActualQuantityReceived'=>$Quantity,'Remarks'=>$Remarked,'MRIRStatus'=>$MRIRStatus);
|
||||
|
||||
|
||||
//print_r($mrirdetailvalues);
|
||||
//die();
|
||||
|
||||
$mrirdetails = $this->mrir_model->detail_mrir($mrirdetailvalues);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$getAvailableqty = $this->mrir_model->getItemQuantityFromStock(trim($MaterialCode));
|
||||
|
||||
if(count($getAvailableqty)>0)
|
||||
{
|
||||
$avlQty = $getAvailableqty[0]['Quantity'];
|
||||
}
|
||||
|
||||
$updatStock = array('Quantity'=>($Quantity+$avlQty),'Status'=>'0','UpdatedOn'=>$createddt,'UpdatedBy'=>$CreatedBy,'Remarks'=>'Stock added for '. $MRIRNO);
|
||||
|
||||
$this->mrir_model->UpdateStock($updatStock,trim($MaterialCode));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$IGRItemStatus = REQITEM_NEW;
|
||||
|
||||
|
||||
for ($i = 1; $i <= $RowCount; $i++)
|
||||
{
|
||||
|
||||
$MaterialCode = trim($this->input->post('materialCode'.$i));
|
||||
|
||||
$QuantityAsPerInvoice = $this->input->post('quantity'.$i);
|
||||
|
||||
$OrderedQuantity = $this->input->post('quantity'.$i);
|
||||
|
||||
$ReceivedQty = $this->input->post('AQuantity'.$i);
|
||||
|
||||
$emergencyitemcode = $this->input->post('emergencyitemcode');
|
||||
|
||||
$PendingQty = 0;
|
||||
//echo $QuantityAsPerInvoice;
|
||||
//echo $PendingQty.'ReceivedQty'.$ReceivedQty;
|
||||
//echo ' ';
|
||||
|
||||
if(strlen($QuantityAsPerInvoice)>0 && $QuantityAsPerInvoice != '0')
|
||||
{
|
||||
$Remarks = "Special PO Created";
|
||||
$ItemStatus = '';
|
||||
//if($QuantityAsPerInvoice == $OrderedQuantity)
|
||||
|
||||
if($PendingQty == 0.00 )
|
||||
|
||||
{
|
||||
$ItemStatus = IGR_CREATED;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ItemStatus = POLINEITEM_IGRPARTIAL_CREATED;
|
||||
}
|
||||
|
||||
$CreatedBy = $this->session->userdata('userId');
|
||||
|
||||
|
||||
$igrDetails = array('IGRNO'=>$IGRNO,'MaterialCode'=>$MaterialCode,'QuantityAsPerInvoice'=>$QuantityAsPerInvoice,'Remarks'=>$Remarks,'IGRItemStatus'=>$IGRItemStatus,'CreatedBy'=>$CreatedBy,'CreatedDate'=>$createddt);
|
||||
|
||||
|
||||
//print_r($igrDetails);
|
||||
|
||||
|
||||
|
||||
$igrD = $this->inwardgateregister_model->addigrD($igrDetails);
|
||||
|
||||
$Recqty = $this->inwardgateregister_model->getPOLineItemReceivedQty($PONO,$MaterialCode);
|
||||
$ReceivedQuantity = 0.00;
|
||||
if(count($Recqty)>0)
|
||||
{
|
||||
foreach ($Recqty as $key ) {
|
||||
$ReceivedQuantity=$key->ReceivedQuantity;
|
||||
}
|
||||
}
|
||||
$totalReceivedqty = $ReceivedQuantity + $QuantityAsPerInvoice;
|
||||
|
||||
//echo '';
|
||||
|
||||
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty,'Status'=>$ItemStatus,'UpdateBY'=>$CreatedBy,'UpdatedOn'=>$createddt );
|
||||
|
||||
$this->inwardgateregister_model->UpdatePOLineItem($POLineItem,$PONO,$MaterialCode);
|
||||
}
|
||||
|
||||
|
||||
// $file =$this->addfile();
|
||||
// $emergencyitemcode = $this->input->post('emergencyitemcode'.$i);
|
||||
// ($this->input->post('materialCode'.$i));
|
||||
// $myfile = array('FilePath'=>$file,'MaterialCode'=>$emergencyitemcode,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
|
||||
// // print_r($myfile);
|
||||
// $result= $this->purchaseorder_model->fileupload($myfile);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$file =$this->addfile();
|
||||
$emergencyitemcode = $this->input->post('materialCode'.$i);
|
||||
$myfile = array('FilePath'=>$file,'MaterialCode'=>$emergencyitemcode,'PONO'=>$PONO,'IGRNO'=>$IGRNO);
|
||||
$result= $this->purchaseorder_model->fileupload($myfile);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//if($result > 0)
|
||||
// {
|
||||
|
||||
|
||||
echo "<script>alert('You Have Successfully created the Purchase order! $PONO');</script>";
|
||||
redirect('purchaseorder/PurchaseOrderList','refresh');
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@ -449,8 +870,18 @@ $RequestedBy = $this->input->post('drpDepartment');
|
||||
|
||||
$this->global['pageTitle'] = 'Resico : Purchase Orders';
|
||||
|
||||
if($this->DEPCode == PURCHASE )
|
||||
{
|
||||
|
||||
$this->loadViews("POlist", $this->global, $data, NULL);
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
|
||||
}
|
||||
}
|
||||
function Req_validate($selectValue)
|
||||
{
|
||||
@ -1137,6 +1568,3 @@ $RequestedBy = $this->input->post('drpDepartment');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -758,14 +758,12 @@ class report extends BaseController
|
||||
|
||||
$this->global['pageTitle'] = 'Cashbook - Cashbook Reports - ';
|
||||
|
||||
|
||||
$data['gettoptotal1'] = $this->dahsboard_Model->gettoptotal();
|
||||
$data['getTotalServicePoCount'] = $this->dahsboard_Model->getTotalServicePoCount();
|
||||
$data['getTotalimportPoCount'] = $this->dahsboard_Model->getTotalimportPoCount();
|
||||
$data['getTotalcapitalPoCount'] = $this->dahsboard_Model->getTotalcapitalPoCount();
|
||||
$data['getTotalrevenuePoCount'] = $this->dahsboard_Model->getTotalrevenuePoCount();
|
||||
$data['cashbook']=$this->dahsboard_Model->cashbook();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
|
||||
$income="INCOME";
|
||||
$expense="EXPENSE";
|
||||
@ -775,16 +773,26 @@ class report extends BaseController
|
||||
$data['todayexpense']=$this->dahsboard_Model->today_data($expense);
|
||||
$data['yearincome']=$this->dahsboard_Model->yearwise_data($income);
|
||||
$data['yearexpense']=$this->dahsboard_Model->yearwise_data($expense);
|
||||
$data['gettoptotal1'] = $this->dahsboard_Model->gettoptotal();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
//print_r($data['gettoptotal1']);
|
||||
// $data['monthlywiseincome']=$this->dahsboard_Model->monthwise_data_income();
|
||||
// $data['monthlywiseexpense']=$this->dahsboard_Model->monthwise_data_expense();
|
||||
// $data['todayincome']=$this->dahsboard_Model->today_data_income();
|
||||
// $data['todayexpense']=$this->dahsboard_Model->today_data_expense();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("Reportcashbook",$this->global,$data, NULL);
|
||||
$this->loadviews("reportcashbook",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function monthexpenses()
|
||||
{
|
||||
|
||||
@ -795,14 +803,18 @@ class report extends BaseController
|
||||
$data['monthlyreport']=$this->dahsboard_Model->monthexpensereport();
|
||||
// $data['monthlyincreport']=$this->dahsboard_Model->monthincomereport();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
$this->loadviews("cashbookmonthlyexpenses",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public function yearexpenses()
|
||||
{
|
||||
@ -813,12 +825,14 @@ class report extends BaseController
|
||||
//$data['yearlyincreport']=$this->dahsboard_Model->yearincomereport();
|
||||
$data['yearlyreport']=$this->dahsboard_Model->yearexpensereport();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("cashbookyearlyexpenses",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
@ -833,10 +847,11 @@ class report extends BaseController
|
||||
//print_r($data['departmentwise']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("cashbookmonthlydep",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
@ -844,16 +859,17 @@ else{
|
||||
public function cashbookmonthmenu()
|
||||
{
|
||||
|
||||
$this->global['pageTitle'] = 'Cashbook - department - ';
|
||||
$data['monthlymenupayments']=$this->dahsboard_Model->monthlypayments();
|
||||
$this->global['pageTitle'] = 'Cashbook monthly ';
|
||||
$data['yearmonthwise']=$this->dahsboard_Model->yearmonthwise();
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
//print_r($data['departmentwise']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("cashbookmonthmenu",$this->global,$data, NULL);
|
||||
$this->loadviews("cashbookyearmonthwise",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
@ -866,10 +882,11 @@ else{
|
||||
//print_r($data['departmentwise']);
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("cashbookyearmonthwise",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
@ -880,13 +897,15 @@ public function Viewtoday()
|
||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||
if($this->DEPCode == MANAGEMENT)
|
||||
{
|
||||
|
||||
$this->loadviews("cashbooktoday",$this->global,$data, NULL);
|
||||
}
|
||||
else{
|
||||
|
||||
else
|
||||
{
|
||||
$this->loadViews("access", $this->global, $data, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@ -1382,14 +1382,14 @@ group by supplier_name,material_name";
|
||||
}
|
||||
function cashbook()
|
||||
{
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,tinc.description,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code ";
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,tinc.description,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code where tinc.type='EXPENSE'";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function monthexpensereport()
|
||||
{
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,monthname(tinc.date)as month,tinc.towhom,tinc.description,tinc.account_code, ac.name FROM t_income_expense as tinc join t_accountcode ac on ac.code=tinc.account_code where tinc.type='EXPENSE' and month(tinc.date)= month(current_date()) group by account_code order by total desc limit 10 ";
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,tinc.towhom,tinc.description,tinc.account_code,monthname(tinc.date)as month,ac.name FROM t_income_expense as tinc join t_accountcode ac on ac.code=tinc.account_code where tinc.type='EXPENSE' and month(tinc.date)= month(current_date()) group by account_code order by total desc limit 10 ";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->result();
|
||||
|
||||
@ -1431,17 +1431,18 @@ group by supplier_name,material_name";
|
||||
{
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,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'";
|
||||
$query = $this->db->query($sql,array($sid));
|
||||
WHERE tinc.type='EXPENSE' and account_code = '$sid' and monthname(date)='$d'";
|
||||
$query = $this->db->query($sql);
|
||||
//print_r($this->db->last_query());
|
||||
//echo $sql;
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
function yearmonthwise($sid='')
|
||||
{
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,tinc.description,tinc.towhom,tinc.account_code,ac.name FROM t_income_expense tinc
|
||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,monthname(tinc.date)as month,tinc.description,tinc.towhom,tinc.account_code,ac.name FROM t_income_expense tinc
|
||||
join t_accountcode ac on ac.code=tinc.account_code
|
||||
WHERE monthname(date) = ? group by account_code";
|
||||
WHERE tinc.type='EXPENSE' and monthname(date) = ? group by account_code";
|
||||
$query = $this->db->query($sql,array($sid));
|
||||
//print_r($this->db->last_query());
|
||||
return $query->result();
|
||||
|
||||
34
application/models/purchaseorder_model.php
Normal file → Executable file
34
application/models/purchaseorder_model.php
Normal file → Executable file
@ -21,6 +21,38 @@ class purchaseorder_model extends CI_Model
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function fileupload($myfile)
|
||||
{
|
||||
$this->db->insert('T_PurchaseOrder_BillUpload',$myfile);
|
||||
$myfile=$this->db->affected_rows();
|
||||
return $myfile;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getfunction($pono)
|
||||
{
|
||||
$this->db->distinct();
|
||||
$this->db->select('bill.PONO,mstr.IGRNO,bill.BillNo,,bill.FilePath,mstr.DeliveryChellanOrInvoiceNo,mstr.DeliveryChellanDate,mstr.VehicleNo,mstr.CourierNo,dtl.QuantityAsPerInvoice,pom.POType');
|
||||
$this->db->from('T_PurchaseOrder_BillUpload bill');
|
||||
$this->db->join('T_IGR_Master mstr','bill.PONO = mstr.PONO','left');
|
||||
$this->db->join('T_IGR_Details dtl','mstr.IGRNO = dtl.IGRNO','left');
|
||||
// $this->db->join('T_MaterialMaster mm','mm.MaterialCode = bill.MaterialCode');
|
||||
$this->db->join('T_PurchaseOrder_Master pom','pom.PONO = bill.PONO');
|
||||
$this->db->where('bill.PONO',$pono);
|
||||
//$this->db->or_where('pom.status',SPECIAL_PO);
|
||||
//$this->db->group_by('bill.BillNo');
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function GetPODetailforBillingServicePO($PONO)
|
||||
{
|
||||
|
||||
@ -45,7 +77,7 @@ class purchaseorder_model extends CI_Model
|
||||
|
||||
function GetServicePOListforBilling()
|
||||
{
|
||||
$subQuery ='select POMast.PONO,supp.SupplierName,PODate,POMast.PaymentTerms,POMast.ServiceWorkStatusRemarks,
|
||||
$subQuery ='select POMast.PONO,supp.SupplierName,PODate,POMast.PaymentTerms,POMast.ServiceWorkStatusRemarks,StatusName,POMast.CapitalRange,POType,
|
||||
LineItem.*,mat.MaterialName,mat.UOM,emp.FirstName,emp.LastName,Tax.TotalValue,Cost.CostCenterName,AdvanceAmount
|
||||
,Dept.DepartmentName from T_PurchaseOrder_Master POMast
|
||||
join T_PurchaseOrder_LineItem LineItem on LineItem.PONO = POMast.PONO
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -43,10 +43,10 @@ if(!empty($Indiancurrency))
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div id="panel-quick-actions" class="panel panel-default quick-actions">
|
||||
<div class="panel-heading">
|
||||
<center><b>Department Monthly Payments</b></center>
|
||||
<center><b> Monthly(Department Wise) Payments</b></center>
|
||||
</div>
|
||||
<div class="btn-group btn-group-justified no-margin">
|
||||
|
||||
@ -77,8 +77,8 @@ if(!empty($Indiancurrency))
|
||||
<!--<td align="left"><span><?php echo $dw->account_code?></span></td>-->
|
||||
<td align="left"><span><?php echo $dw->name?></span></td>
|
||||
<td align="left"><span><?php echo $dw->type?></span></td>
|
||||
|
||||
<td align="right"><span><?php echo number_format($dw->total,2,'.','');?></span></td>
|
||||
|
||||
<td align="left"><span><?php echo $dw->description?></span></td>
|
||||
|
||||
|
||||
|
||||
@ -78,7 +78,6 @@ if(!empty($monthlyincreport))
|
||||
<!--<td align="left"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $mr->account_code;?>"><span><?php echo $mr->account_code?></span></a></td>-->
|
||||
<td align="left"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $mr->account_code;?>&d=<?php echo $mr->month?>"><span><?php echo $mr->name?></span></a></td>
|
||||
<td align="left"><span><?php echo $mr->type?></span></td>
|
||||
|
||||
<td align="right"><span><?php echo number_format($mr->total,2,'.','');?></span></td>
|
||||
<!--<td align="left"><span><?php echo $mr->account_code?></span></td>-->
|
||||
<!--<td align="left"><span><?php echo $mr->description?></span></td>-->
|
||||
|
||||
@ -17,7 +17,7 @@ if(!empty($Indiancurrency))
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
|
||||
<table class="table table-bordered table-hover" id="datatable" style="background-color:#fff;font-size:11px;" >
|
||||
<thead style="background-color:#ddf">
|
||||
@ -44,11 +44,11 @@ if(!empty($Indiancurrency))
|
||||
<td align="left"><span><?php echo $t->name ?></span></td>
|
||||
|
||||
<td align="left"><span><?php echo $t->type?></span></td>
|
||||
|
||||
<td align="right"><span><?php echo number_format($t->total,2,'.','');?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -12,12 +12,12 @@ if(!empty($Indiancurrency))
|
||||
<section class="content">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<CENTER><h3 class="box-title">Caskbook - "Today's Payments"</h3></CENTER>
|
||||
<CENTER><h3 class="box-title">Today's Payment</h3></CENTER>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
|
||||
<table class="table table-bordered table-hover" id="datatable" style="background-color:#fff;font-size:11px;" >
|
||||
<thead style="background-color:#ddf">
|
||||
@ -43,7 +43,7 @@ if(!empty($Indiancurrency))
|
||||
<td align="left"><span><?php echo $t->name ?></span></td>
|
||||
<!--<td align="left"><span><?php echo $t->towhom?></span></td>-->
|
||||
<td align="left"><span><?php echo $t->type?></span></td>
|
||||
<td align="right"><span><?php echo number_format( $t->total,2,'.','');?></span></td>
|
||||
<td align="left"><span><?php echo number_format($t->total,2,'.','');?></span></td>
|
||||
<td align="left"><span><?php echo $t->description?></span></td>
|
||||
|
||||
|
||||
|
||||
@ -33,10 +33,10 @@ if(!empty($Indiancurrency))
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div id="panel-quick-actions" class="panel panel-default quick-actions">
|
||||
<div class="panel-heading">
|
||||
<center><b>Yearly Payments</b></center>
|
||||
<center><b>Monthly Payments</b></center>
|
||||
</div>
|
||||
<div class="btn-group btn-group-justified no-margin">
|
||||
|
||||
@ -45,7 +45,7 @@ if(!empty($Indiancurrency))
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<!--<th>Date</th>-->
|
||||
<th>Account Name</th>
|
||||
<!--<th>month</th>-->
|
||||
<!--<th>Paid To</th>-->
|
||||
@ -64,12 +64,11 @@ if(!empty($Indiancurrency))
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td><span><?php echo $ym->date?></span></td>
|
||||
<!--<td><span><?php echo $ym->date?></span></td>-->
|
||||
<!--<td align="right"><span><a href="<?= base_url() ?>report/yearmonthwise"><?php echo $ym->month?></a></span></td>-->
|
||||
<td align="left"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $ym->account_code;?>&d=<?php echo $ym->month?>"><span><?php echo $ym->name?></span></a></td>
|
||||
<!--<td align="right"><span><?php echo $ym->towhom?></span></td>-->
|
||||
<td align="left"><span><?php echo $ym->type?></span></td>
|
||||
|
||||
<td align="right"><span><?php echo number_format($ym->total,2,'.','');?></span></td>
|
||||
<!--<td align="right"><span><?php echo $ym->description?></span></td>-->
|
||||
|
||||
|
||||
@ -7,6 +7,14 @@ $month_in='';
|
||||
$month_ex='';
|
||||
$year_in='';
|
||||
$year_ex='';
|
||||
if(!empty($cashbook))
|
||||
{
|
||||
|
||||
}
|
||||
if(!empty($monthlyreport))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if(!empty($todayincome))
|
||||
{
|
||||
@ -130,11 +138,11 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
</style>
|
||||
<div>
|
||||
|
||||
<section class="content-header">
|
||||
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<section>
|
||||
<!-- Info boxes -->
|
||||
<center>
|
||||
<div class="col-md-12">
|
||||
@ -145,10 +153,10 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red" style="height: 90px;padding:25px;"><i class="fa fa-hourglass-end"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/Viewtoday' ?>" data-toggle="tooltip" title="Click here to View Today's Payment Details"><?php echo "Today's Payments" ?></a></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/Viewtoday' ?>" data-toggle="tooltip" title="Click here to View Today's Payments"><?php echo "Today's Payments" ?></a></span>
|
||||
|
||||
<span class="info-box-text text-center"><?php echo "Receipt: ".$inrsymbol.number_format($today_in,2,'.',''); ?> </span>
|
||||
<span class="info-box-text text-center"><?php echo "Payments : ".$inrsymbol.number_format($today_ex,2,'.',''); ?> </span>
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol.number_format($today_in,2,'.',''); ?> </span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($today_ex,2,'.',''); ?> </span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -160,9 +168,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua" style="height: 90px;padding:25px;"><i<i class="fa fa-spinner"></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/monthexpenses' ?>" data-toggle="tooltip" title="Click here to View Monthly Payments details"><?php echo "Monthly Payments" ?></a></span>
|
||||
<span class="info-box-text text-center"><?php echo "Receipt :".$inrsymbol.number_format($month_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><?php echo "Payments :".$inrsymbol.number_format($month_ex,2,'.',''); ?></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/monthexpenses' ?>" data-toggle="tooltip" title="Click here to View Monthly Payments"><?php echo "Monthly Payments" ?></a></span>
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol.number_format($month_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($month_ex,2,'.',''); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -173,9 +181,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-green" style="height: 90px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/yearexpenses' ?>" data-toggle="tooltip" title="Click here to View Yearly Payment details"><?php echo "Year Payments" ?></a></span>
|
||||
<span class="info-box-text text-center"><?php echo "Receipt :".$inrsymbol.number_format($year_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><?php echo "Payments :".$inrsymbol.number_format($year_ex,2,'.',''); ?></span>
|
||||
<span class="info-box-number"><a href="<?php echo base_url().'report/yearexpenses' ?>" data-toggle="tooltip" title="Click here to View Yearly Payments"><?php echo "Year Payments" ?></a></span>
|
||||
<span class="info-box-text text-center"><strong>Receipt :</strong><?php echo $inrsymbol. number_format($year_in,2,'.',''); ?></span>
|
||||
<span class="info-box-text text-center"><strong>Payments :</strong><?php echo $inrsymbol.number_format($year_ex,2,'.',''); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -184,6 +192,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
@ -206,7 +215,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
|
||||
|
||||
|
||||
|
||||
<CENTER><h3 class="box-title"><strong>Day Wise Payments</strong></h3></CENTER>
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
||||
@ -227,6 +236,7 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($cashbook)){
|
||||
$tvt=0.00;
|
||||
foreach($cashbook as $cash)
|
||||
{
|
||||
?>
|
||||
@ -236,7 +246,10 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
<td align="left"><span><?php echo $cash->name?></span></td>
|
||||
<td align="left"><span><?php echo $cash->towhom?></span></td>
|
||||
<td align="left"><span><?php echo $cash->type?></span></td>
|
||||
<td align="right"><span><?php echo number_format($cash->total,2,'.','');?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tvt= $tvt + number_format($cash->total,2,'.','');
|
||||
echo number_format($cash->total,2,'.','');?></span></td>
|
||||
|
||||
<td align="left"><span><?php echo $cash->description?></span></td>
|
||||
|
||||
|
||||
@ -248,6 +261,30 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tvt,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user