diff --git a/application/controllers/emppaydate.php b/application/controllers/emppaydate.php index 637f1699..33130db9 100755 --- a/application/controllers/emppaydate.php +++ b/application/controllers/emppaydate.php @@ -44,16 +44,7 @@ class emppaydate extends BaseController $this->load->model('emppaydate_model'); - $searchText = $this->input->post('searchText'); - $data['searchText'] = $searchText; - - $this->load->library('pagination'); - - $count = $this->emppaydate_model->emppayListingCount($searchText); - - $returns = $this->paginationCompress ( "emppayListing", $count ,5); - - $data['userRecords'] = $this->emppaydate_model->emppayListing($searchText, $returns["page"], $returns["segment"]); + $data['userRecords'] = $this->emppaydate_model->emppayListing(); $this->global['pageTitle'] = 'Siddharth : Employee Pay List'; diff --git a/application/controllers/monthlypay.php b/application/controllers/monthlypay.php index af6f220a..088ae2a4 100755 --- a/application/controllers/monthlypay.php +++ b/application/controllers/monthlypay.php @@ -44,16 +44,7 @@ class monthlypay extends BaseController $this->load->model('monthlypay_model'); - $searchText = $this->input->post('searchText'); - $data['searchText'] = $searchText; - - $this->load->library('pagination'); - - $count = $this->monthlypay_model->monthlyListingCount($searchText); - - $returns = $this->paginationCompress ( "monthlyListing", $count ,5); - - $data['userRecords'] = $this->monthlypay_model->monthlyListing($searchText, $returns["page"], $returns["segment"]); + $data['userRecords'] = $this->monthlypay_model->monthlyListing(); $this->global['pageTitle'] = 'Siddharth : Monthly Pay List'; diff --git a/application/controllers/payslip.php b/application/controllers/payslip.php index 3f288ec7..a0cf2efb 100755 --- a/application/controllers/payslip.php +++ b/application/controllers/payslip.php @@ -375,15 +375,13 @@ function getEmployee() */ function uploadExcel2(){ - // $FNAME = $this->input->post('FileName'); - // echo "HI" . $FNAME . "-"; - // echo realpath($FNAME);die(); + $PayrollFileName = ''; //Check whether user upload picture if(!empty($_FILES['userfile']['name'])) { - //echo 'inside if'; + $pathinfo = pathinfo($_FILES['userfile']['name']); $config['upload_path'] = 'uploads/files/'; $config['allowed_types'] = 'xls|xlsx|csv'; @@ -485,10 +483,7 @@ function getEmployee() if ($FileDataExists=='' || $FileDataExists==0) { //$FileDetails = array('PayOn'=>$PayOn,'TotalNoofDays'=>$Totaldays,'FileName'=>$PayrollFileName,'CreatedBy'=>$createdby); - - - - // $result = $this->payroll_model->UploadFileName($FileDetails); + // $result = $this->payroll_model->UploadFileName($FileDetails); @@ -523,17 +518,18 @@ function getEmployee() } - $data['Success'] = ""; + // $data['Success'] = ""; + // echo ""; - $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload'; + // $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload'; - $this->loadViews("payslipupload2", $this->global, $data , NULL); + // $this->loadViews("payslipupload2", $this->global, $data , NULL); } - // $data['Fail'] = ""; + //$data['Fail'] = ""; // $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload'; @@ -553,6 +549,7 @@ function getEmployee() //$data['success'] = ""; //echo "DONE"; + echo ""; echo ""; echo ""; $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload'; @@ -567,20 +564,20 @@ function getEmployee() //$data['Fail'] = ""; //echo ""; - $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload2'; + // $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload2'; - $this->loadViews("payslipupload2", $this->global, $data , NULL); + // $this->loadViews("payslipupload2", $this->global, $data , NULL); } } else { //$data['Fail'] = ""; //echo ""; - $PayrollFileName = ''; + // $PayrollFileName = ''; - $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload2'; + // $this->global['pageTitle'] = 'Siddharth : Payroll Data Upload2'; - $this->loadViews("payslipupload2", $this->global, NULL , NULL); + // $this->loadViews("payslipupload2", $this->global, NULL , NULL); } diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index 8623451c..f3e0cacd 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -978,7 +978,8 @@ class purchaseorder extends BaseController //This used to Edit the Revenue Purchase Order function EditRevenuePurchaseOrder() { - + //echo "EDIT REBEIE"; + //die(); $PONO =$this->input->post('txtPONO'); $POdt =$this->input->post('PODate'); $PODate = $this->getDateformat($POdt); @@ -998,7 +999,18 @@ class purchaseorder extends BaseController - + $Modeofshipment=$this->input->post('editmodeofshipment'); + $supplierreference=$this->input->post('editsupplierreference'); + $supplieroffno=$this->input->post('editsupplierofferno'); + $otherreference=$this->input->post('editotherreference'); + $fincap=$this->input->post('editfincap'); + $revenuetype=$this->input->post('PoTypeOptions'); + $insurancestatus=$this->input->post('insurancestatus'); + if($insurancestatus == 1){ + $insuranceno=$this->input->post('insuranceno'); + }else{ + $insuranceno=""; + } $POType = $this->input->post('POType'); $PoRange = $this->input->post('txtPoRange'); @@ -1010,7 +1022,8 @@ class purchaseorder extends BaseController $updatedBy = $this->session->userdata ( 'userId' ); $RowCount = $this->input->post('txtRowCount'); $DeletedRow = $this->input->post('txtDeletedRow'); - + //echo $RowCount . "-" . $DeletedRow; + //die(); $comma_separated = explode(':', $DeletedRow); $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $updateddt = $dt->format('Y-m-d H:i:s'); @@ -1020,21 +1033,22 @@ class purchaseorder extends BaseController $Local_Interstate=$this->input->post('Range'); // PO Master // PO Master - $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment); - + $POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'Status'=>$POStatus,'PORange'=>$Local_Interstate,'ServiceDescription'=>$SpcialInstruction,'UpdateBY'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'CapitalRange'=>$Local_Interstate,'PaymentOtherDescription'=>$OtherPayment,'Supplier_Reference'=>$supplierreference,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'POSubType'=>$revenuetype,'InsuranceNumber'=>$insuranceno); + //print_r($POList); + //die(); $POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList); $LineItemStatus = REQITEM_NEW; - + //echo "OUT"; for ($i = 1; $i <= $RowCount; $i++) { - + //echo "IN"; $MaterialCode = $this->input->post('materialCode'.$i); $Quantity = $this->input->post('quantity'.$i); $Reqnumber = $this->input->post('Reqnumber'.$i); $itemRate = $this->input->post('itemRate'.$i); - + $per=$this->input->post('per'.$i); $DiscountType = $this->input->post('DisType'.$i); $DiscountValue = $this->input->post('DisVal'.$i); $AfterDiscount = $this->input->post('AfterDisVal'.$i); @@ -1042,7 +1056,7 @@ class purchaseorder extends BaseController $PackagingType = $this->input->post('PackType'.$i); $PackagingValue = $this->input->post('PackVal'.$i); $AfterPackagingValue = $this->input->post('AfterPackVal'.$i); - $Cgst = $this->input->post('RevenueCgst'.$i); + $Cgst = $this->input->post('RevenueCgst'.$i); $Sgst = $this->input->post('RevenueSgst'.$i); $Igst = $this->input->post('RevenueIgst'.$i); $AfterCgst = $this->input->post('RevenueAfterCgst'.$i); @@ -1052,7 +1066,7 @@ class purchaseorder extends BaseController $FreightValue = $this->input->post('FreightVal'.$i); $AfterFreightValue = $this->input->post('AfterFreightVal'.$i); $NOOfTrip = $this->input->post('NoOfTrip'.$i); - $InsuranceValue = $this->input->post('Insval'.$i); + $revenuedescription = $this->input->post('service_description'.$i); $InsuranceValue = $this->input->post('Insval'.$i); $TotalOrderValue = $this->input->post('TotalOrderValue'.$i); $POLineItemNo = $this->input->post('LineItemNo'.$i); $CostCenter = $this->input->post('costCode'.$i); @@ -1080,7 +1094,8 @@ class purchaseorder extends BaseController if(strlen($POLineItemNo) == 0) { - $POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CostCenterCode'=>$CostCenter); + $POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Per'=>$per,'ServiceMaterialDescription'=>$revenuedescription,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CostCenterCode'=>$CostCenter); + //print_r($POLineItemList); $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList); if(count($POLineItem)>0) { @@ -1094,6 +1109,7 @@ class purchaseorder extends BaseController $LineItemNo = $POLineItemNo; $POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'CostCenterCode'=>$CostCenter); + //print_r($POLineItemList); $POLineItem = $this->purchaseorder_model->updatePOLineItem($PONO,$POLineItemNo,$POLineItemList); } @@ -1101,7 +1117,7 @@ class purchaseorder extends BaseController if(count($isExists) == 0) { $RevenueTaxList = array('LineItemNo'=>$LineItemNo, 'DiscountType'=>$DiscountType,'DiscountValue'=>$DiscountValue,'AfterDiscount'=>$AfterDiscount,'PackagingType'=>$PackagingType,'PackagingValue'=>$PackagingValue,'PackagingCalulatedOn'=>$PackagingOption,'AfterPackagingValue'=>$AfterPackagingValue,'FreightType'=>$FreightType, 'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'Insurance'=>$InsuranceValue,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CGST'=>$Cgst,'AfterCGST'=>$AfterCgst,'SGST'=>$Sgst,'AfterSGST'=>$AfterSgst,'IGST'=>$Igst,'AfterIGST'=>$AfterIgst,'NoOfTrip'=>$NOOfTrip); - + //print_r($RevenueTaxList); $RevenueList = $this->purchaseorder_model->addRevenueTax($RevenueTaxList); } @@ -1109,7 +1125,7 @@ class purchaseorder extends BaseController { $RevenueTaxList = array('DiscountType'=>$DiscountType,'DiscountValue'=>$DiscountValue,'AfterDiscount'=>$AfterDiscount,'PackagingType'=>$PackagingType,'PackagingValue'=>$PackagingValue,'PackagingCalulatedOn'=>$PackagingOption,'AfterPackagingValue'=>$AfterPackagingValue,'FreightType'=>$FreightType, 'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'Insurance'=>$InsuranceValue,'TotalValue'=>$TotalOrderValue, 'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'CGST'=>$Cgst,'AfterCGST'=>$AfterCgst,'SGST'=>$Sgst,'AfterSGST'=>$AfterSgst,'IGST'=>$Igst,'AfterIGST'=>$AfterIgst,'CreatedBy'=>$updatedBy,'NoOfTrip'=>$NOOfTrip); - + //print_r($RevenueTaxList); $this->purchaseorder_model->updateRevenueTax($LineItemNo,$RevenueTaxList); } @@ -1137,7 +1153,7 @@ class purchaseorder extends BaseController $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO); $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO); $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR'); - + $data['reveuetax']=$this->purchaseorder_model->getRevenueTaxinforforpdf($PONO); $Currencycode=''; $TotalOrderValue=$data['POItem'][0]->TotalOrderValue; diff --git a/application/models/emppaydate_model.php b/application/models/emppaydate_model.php index 342caee8..c866f08d 100755 --- a/application/models/emppaydate_model.php +++ b/application/models/emppaydate_model.php @@ -2,43 +2,10 @@ class emppaydate_model extends CI_Model { - /** - * This function is used to get the user listing count - * @param string $searchText : This is optional search text - * @return number $count : This is row count - */ + - function emppayListingCount($searchText = ''){ - - $this->db->select('*'); - $this->db->from('T_Emp_Pay_Data'); - - - if(!empty($searchText)) { - $likeCriteria = "(Pay_Data_ID LIKE '%".$searchText."%' - OR EmpID LIKE '%".$searchText."%' - OR Basic_Pay LIKE '%".$searchText."%' - OR HRA_Rate LIKE '%".$searchText."%' - OR OT_Rate LIKE '%".$searchText."%' - OR Allowances LIKE '%".$searchText."%' - OR PF_Rate LIKE '%".$searchText."%' - OR ESI_Rate LIKE '%".$searchText."%' - OR is_Active LIKE '%".$searchText."%' - OR Loan_Amount LIKE '%".$searchText."%' - OR Loan_Issued_Date LIKE '%".$searchText."%' - OR Monthly_Due LIKE '%".$searchText."%' - OR Monthly_Due LIKE '%".$searchText."%' - OR Due_Start_Date LIKE '%".$searchText."%' - - )"; - $this->db->where($likeCriteria); - } - //$this->db->where('BaseT.userId !=', 1); - $query = $this->db->get(); - - return count($query->result()); - } + /** * This function is used to get the user listing count * @param string $searchText : This is optional search text @@ -48,37 +15,12 @@ class emppaydate_model extends CI_Model */ - function emppayListing($searchText = '', $page, $segment) + function emppayListing() { $this->db->select('T_Emp_Pay_Data.*,T_Employee_Details.FirstName,T_Employee_Details.LastName'); $this->db->from('T_Emp_Pay_Data'); $this->db->join('T_Employee_Details','T_Emp_Pay_Data.EmpID=T_Employee_Details.EmpID'); - - - if(!empty($searchText)) { - $likeCriteria = "(Pay_Data_ID LIKE '%".$searchText."%' - OR EmpID LIKE '%".$searchText."%' - OR Basic_Pay LIKE '%".$searchText."%' - OR HRA_Rate LIKE '%".$searchText."%' - OR OT_Rate LIKE '%".$searchText."%' - OR Allowances LIKE '%".$searchText."%' - OR PF_Rate LIKE '%".$searchText."%' - OR ESI_Rate LIKE '%".$searchText."%' - OR is_Active LIKE '%".$searchText."%' - OR Food_Allowances LIKE '%".$searchText."%' - OR Loan_Amount LIKE '%".$searchText."%' - OR Loan_Issued_Date LIKE '%".$searchText."%' - OR Monthly_Due LIKE '%".$searchText."%' - OR Monthly_Due LIKE '%".$searchText."%' - OR Due_Start_Date LIKE '%".$searchText."%' - - )"; - $this->db->where($likeCriteria); - } - - $this->db->limit($page, $segment); $query = $this->db->get(); - $result = $query->result(); return $result; } diff --git a/application/models/monthlypay_model.php b/application/models/monthlypay_model.php index 21eaf321..718ce286 100755 --- a/application/models/monthlypay_model.php +++ b/application/models/monthlypay_model.php @@ -2,36 +2,7 @@ class monthlypay_model extends CI_Model { - /** - * This function is used to get the user listing count - * @param string $searchText : This is optional search text - * @return number $count : This is row count - */ - function monthlyListingCount($searchText = ''){ - - $this->db->select('*'); - $this->db->from('T_Monthly_Pay_Inputs'); - - - if(!empty($searchText)) { - $likeCriteria = "(Month_Year LIKE '%".$searchText."%' - OR EmpID LIKE '%".$searchText."%' - OR LOP_Days LIKE '%".$searchText."%' - OR OT_Hrs_Worked LIKE '%".$searchText."%' - OR Loan_Recovered LIKE '%".$searchText."%' - - OR Incentives LIKE '%".$searchText."%' - OR Other_Deductions LIKE '%".$searchText."%' - - - )"; - $this->db->where($likeCriteria); - } - //$this->db->where('BaseT.userId !=', 1); - $query = $this->db->get(); - - return count($query->result()); - } + /** * This function is used to get the user listing count * @param string $searchText : This is optional search text @@ -39,30 +10,13 @@ class monthlypay_model extends CI_Model * @param number $segment : This is pagination limit * @return array $result : This is result */ - function monthlyListing($searchText = '', $page, $segment) + function monthlyListing() { $this->db->select('T_Monthly_Pay_Inputs.*,T_Employee_Details.FirstName,T_Employee_Details.LastName'); $this->db->from('T_Monthly_Pay_Inputs'); $this->db->join('T_Employee_Details','T_Monthly_Pay_Inputs.EmpID=T_Employee_Details.EmpID'); - //$this->db->where('month.EmpID=mast.EmpID'); + $this->db->order_by("Month_Year", "desc"); - - - if(!empty($searchText)) { - $likeCriteria = "(Month_Year LIKE '%".$searchText."%' - OR EmpID LIKE '%".$searchText."%' - OR LOP_Days LIKE '%".$searchText."%' - OR OT_Hrs_Worked LIKE '%".$searchText."%' - OR Loan_Recovered LIKE '%".$searchText."%' - - OR Incentives LIKE '%".$searchText."%' - OR Other_Deductions LIKE '%".$searchText."%' - - )"; - $this->db->where('T_Monthly_Pay_Inputs.EmpID',$likeCriteria); - } - - $this->db->limit($page, $segment); $query = $this->db->get(); $result = $query->result(); diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 6e964d2f..ca05c563 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -683,8 +683,8 @@ function GetPOType($ReqNo) function GetRevenuePurchaseOrderDetails($PONO = '') { - $subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,Mat.UOM,Quantity,ReceivedQuantity,Rate,Req.Status,(Quantity *Rate) as BasicValue , ((AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST + - AfterIGST + Insurance)) as Taxamount ,TotalValue,Tax.*,Req.CostCenterCode,Dept.DepartmentName + $subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,Mat.UOM,Quantity,Per,ServiceMaterialDescription,ReceivedQuantity,Rate,Req.Status,(Quantity *Rate) as BasicValue , (( AfterSGST + AfterCGST + + AfterIGST )) as Taxamount ,TotalValue,Tax.*,Req.CostCenterCode,Dept.DepartmentName FROM T_PurchaseOrder_LineItem LineItem join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode join T_Revenue_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo @@ -704,10 +704,10 @@ function GetPOType($ReqNo) function GetRevenuePurchaseOrderDetailsForPDF($PONO = '') { - $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,POMaster.PaymentOtherDescription, - Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue , - ROUND(((AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST + - AfterIGST + Insurance)) ,2)as Taxamount,AdvanceAmount, + $subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.Per,ReqNo,Mat.MaterialCode,Mat.MaterialName,POMaster.PaymentOtherDescription, + Mat.UOM,Mat.HSNCODE,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue , + ROUND(((AfterSGST + AfterCGST + + AfterIGST)) ,2)as Taxamount,AdvanceAmount, TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,LineItem.AmendedDetails as LineAmend,Payment.PaymentTerms FROM T_PurchaseOrder_LineItem LineItem join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode @@ -723,6 +723,24 @@ function GetPOType($ReqNo) return $query->result(); + } + + function getRevenueTaxinforforpdf($PONO) + { + $subQuery ='SELECT group_concat(pl.MaterialCode ORDER BY pl.MaterialCode ASC) as Itemcode,rt.CGST,rt.SGST,rt.IGST,rt.FreightValue,rt.PackagingValue,rt.DiscountValue FROM kasiram9_SIADEV.T_Revenue_Tax rt + + join T_PurchaseOrder_LineItem pl on pl.LineItemNo=rt.LineItemNo + + join T_PurchaseOrder_Master pm on pm.PONO=pl.PONO + + where pm.POType=? and pm.PONO=? + + group by rt.CGST,rt.SGST,rt.IGST,rt.FreightValue,rt.PackagingValue ORDER BY rt.LineItemNo ASC'; + + $query = $this->db->query($subQuery,array("REVENUE",$PONO)); + + return $query->result(); + } // This Method to get the Revenue PO Child Details for Edit the Item diff --git a/application/views/editRevenuepurchaseorder.php b/application/views/editRevenuepurchaseorder.php index a246d487..d622ee8b 100755 --- a/application/views/editRevenuepurchaseorder.php +++ b/application/views/editRevenuepurchaseorder.php @@ -7,6 +7,14 @@ $AvlAmount = 0; $DeliverSchedule=''; $DeliverOption=''; $StatusName=''; +$modeofshipment=''; +$supplierref=''; +$suppofferno=''; +$otherref=''; +$fincap=''; +$revenuesubtype=''; +$insurencestatus=''; +$insurenceno=''; if(!empty($MaxPODate)) { @@ -67,6 +75,8 @@ foreach ($PaymentTerms as $TER) $otherPayment=''; if(!empty($POMaster)) { + //print_r($POMaster); + //print_r($POItem); foreach ($POMaster as $Req) { $SupId = $Req->SupplierID; @@ -88,6 +98,16 @@ if(!empty($POMaster)) $CapitalRange = $Req->CapitalRange; $StatusName=$Req->StatusName; $otherPayment = $Req->PaymentOtherDescription; + $modeofshipment = $Req->Mode_Of_Shipment; + $supplierref = $Req->Supplier_Reference; + $suppofferno = $Req->Supplier_Offer_No; + $otherref = $Req->Other_Reference; + $fincap = $Req->Fincap; + $revenuesubtype = $Req->POSubType; + $insurencestatus = $Req->InsuranceStatus; + $insurenceno = $Req->InsuranceNumber; + // echo $insurenceno; + // echo $otherPayment; } } @@ -151,6 +171,27 @@ if(!empty($RequistionDetails)) statusbar: false, toolbar: false }); + + tinymce.init({ + selector: "textarea#Add_Service_Description", + menubar: false, + statusbar: false, + toolbar: false + }); + + tinymce.init({ + selector: "textarea#Edit_Service_Description", + menubar: false, + statusbar: false, + toolbar: false + }); + tinymce.init({ + selector: "textarea#View_Service_Description", + menubar: false, + statusbar: false, + toolbar: false, + readonly : 1 + }); + diff --git a/application/views/emppayListing.php b/application/views/emppayListing.php index 547296f4..3d97128a 100755 --- a/application/views/emppayListing.php +++ b/application/views/emppayListing.php @@ -54,6 +54,7 @@ @@ -81,7 +82,7 @@ diff --git a/application/views/monthlyListing.php b/application/views/monthlyListing.php index 908ddda3..e5ccb55a 100755 --- a/application/views/monthlyListing.php +++ b/application/views/monthlyListing.php @@ -60,7 +60,7 @@ speed:500 OT Hours Worked in Hrs Loan Recovered in ₹ - Incentives in Rs + Incentives in ₹ Other Deductions in ₹ Action @@ -70,6 +70,7 @@ speed:500 @@ -101,7 +102,7 @@ speed:500