diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php
index 6871213b..55c8d4ea 100755
--- a/application/controllers/amendmentpurchaseorder.php
+++ b/application/controllers/amendmentpurchaseorder.php
@@ -4,43 +4,41 @@ require APPPATH . '/libraries/BaseController.php';
/**
* Class : Amendment Purchase Order controller
- * User Class to control all user related operations.
- * @author : Velmurugan
+ * amendmentpurchaseorder Class to control all amendmented po's related operations.
+ * @author : Venba Info Tech - Velmurugan
* @version : 1.1
- * @since : 10 Jul 2017
+ * @since : 18 November 2017
*/
class amendmentpurchaseorder extends BaseController
{
/**
- * This is default constructor of the class
+ * default constructor of the class
*/
public function __construct()
{
parent::__construct();
- //$this->load->model('amendment_model');
$this->load->model('purchaseorder_model');
$this->load->library('session');
$this->load->library('form_validation');
- // $this->load->library('pagination');
-
$this->isLoggedIn();
- }
+ }
+
/**
- * This function used to load the first screen of the user
+ * Index Page for this controller(default function of the class)
*/
public function index()
{
-
-
- $this->load->library('pagination');
-
+
+ $this->load->library('pagination');
$forwhat='amendment';
$data['POData'] = $this->purchaseorder_model->purchaseorderListing($forwhat);
$this->global['pageTitle'] = 'Siddharth : Amendment Purchase Order';
$this->loadviews('AmendPOlist',$this->global,$data,NULL);
}
-
+ /**
+ * For editing purpose and it has oldest all released po.
+ */
function EditAmendPurchaseOrder()
{
$PONO = $_GET['PONO'];
@@ -51,20 +49,21 @@ class amendmentpurchaseorder extends BaseController
$result = array();
$ReqArray = array();
$Status = '';
+
foreach ($Req as $SID):
$ReqArray[] = $SID->ReqNo ;
$result[] = $this->purchaseorder_model->getRawPOMaterialList($SID->ReqNo);
- endforeach;
- $data['MaterialList'] = $result;//$this->purchaseorder_model->getRawMaterialList($ReqType,$ReqArray);
+
+ endforeach;
+ $data['MaterialList'] = $result;
$data['Suplist'] = $this->purchaseorder_model->getSupplierName();
$data['Payment']=$this->purchaseorder_model->getPaymentTermsDetails();
$data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
- //print_r($data['Payment']);
/* Cost code from Requisition - Client Review Fix
Start here */
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
$data['RequistionDetails'] = $ReqDetails;
- // $data['RequistionDetails'] = $ReqDetails;
+
foreach ($data['RequistionDetails'] as $ReqDet)
{
@@ -79,20 +78,21 @@ class amendmentpurchaseorder extends BaseController
}
$CostCode = '';
$this->load->model('costcenter_model');
- $FYStart = '';
- $FYEnd = '';
- $FiscalYear = $this->costcenter_model->getFiscalYear();
- if(!empty($FiscalYear))
+
+ $FYStart = '';
+ $FYEnd = '';
+ $FiscalYear = $this->costcenter_model->getFiscalYear();
+
+ if(!empty($FiscalYear))
{
- foreach ($FiscalYear as $Fy)
- {
- $FYStart =$Fy->StartYear;
- $FYEnd =$Fy->EndYear;
- }
+ foreach ($FiscalYear as $Fy)
+ {
+ $FYStart =$Fy->StartYear;
+ $FYEnd =$Fy->EndYear;
+ }
+ }
- }
-
- $FYdt = $FYStart." - ".$FYEnd ;
+ $FYdt = $FYStart." - ".$FYEnd ;
foreach ($ReqDetails as $Rs):
$CostCode = $Rs->CostCenterCode;
endforeach;
@@ -108,161 +108,123 @@ class amendmentpurchaseorder extends BaseController
$data['MaxPODate'] = $this->purchaseorder_model->getLastCreatedPODate();
$data['TaxType'] = $this->purchaseorder_model->getConfigValue('C006');
$data['FreightType'] = $this->purchaseorder_model->getConfigValue('C018');
- $data['PoTypeOptions'] = $this->purchaseorder_model->getConfigValue('C026');
- if($ReqType == SERVICE)
- {
+ $data['PoTypeOptions'] = $this->purchaseorder_model->getConfigValue('C026');
+ if($ReqType == SERVICE)
+ {
- $data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO);
- $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
- $data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
- $this->global['pageTitle'] = 'Siddharth : Edit Service Purchase order form';
- $this->loadViews("editServiceAmendPO", $this->global, $data, NULL);
- }
+ $data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetails($PONO);
+ $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
+ $data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
+ $this->global['pageTitle'] = 'Siddharth : Edit Service Purchase order form';
+ $this->loadViews("editServiceAmendPO", $this->global, $data, NULL);
+ }
else if($ReqType == REVENUE)
{
- //$data['Payment']=$this->purchaseorder_model->getSupplierPayment();
- $data['POSTATUS']=$this->purchaseorder_model->GetPOStatus($PONO);
- $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
- $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
- //echo "FROM CON";
- //print_r($data['Payment']);
- $this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
- $this->loadViews("editRevenueAmendPO", $this->global, $data, NULL);
+
+ $data['POSTATUS']=$this->purchaseorder_model->GetPOStatus($PONO);
+ $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetails($PONO);
+ $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
+ $this->global['pageTitle'] = 'Siddharth : Edit Revenue Purchase order form';
+ $this->loadViews("editRevenueAmendPO", $this->global, $data, NULL);
}
-
else if($ReqType == IMPORT)
{
-
-
$AvlBudget = $this->purchaseorder_model->GetAvailableImportBudgetAmount($CostCode,$FYdt,$ReqType);
-
- //print_r($AvlBudget);
- if(count($AvlBudget)>0)
- {
- $data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
- }
- // print_r($data);
- $data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetails($PONO);
- $data['Currency']=$this->purchaseorder_model->GetCurrencytype();
- $data['PoTypeOptions'] = $this->purchaseorder_model->getConfigValue('C026');
+ if(count($AvlBudget)>0)
+ {
+ $data['AvlBudAmt'] = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
+ }
+
+ $data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetails($PONO);
+ $data['Currency']=$this->purchaseorder_model->GetCurrencytype();
+ $data['PoTypeOptions'] = $this->purchaseorder_model->getConfigValue('C026');
- foreach($data['POMaster'] as $CUR)
- {
-
- //print_r($CUR->CurrencyType);
- $Currency=$CUR->CurrencyType;
-
- }
- // $data[$Rate->ExchangeRate]=$Rate->ExchangeRate;
- $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
- $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
- $data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
- //print_r($data['PaymentTerms']);
- $unicode ='';
- foreach ($data['CurrencyDetail'] as $Detail)
- {
- $unicode=$Detail->FontCode2000;
- }
+ foreach($data['POMaster'] as $CUR)
+ {
+ $Currency=$CUR->CurrencyType;
+ }
+
+ $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
+ $data['PaymentTerms']=$this->purchaseorder_model->GetPaymentTerms($PONO);
+ $data['INRSYMBOL']=$this->purchaseorder_model->GetINRCurrencytype('INR');
+
+ $unicode ='';
+ foreach ($data['CurrencyDetail'] as $Detail)
+ {
+ $unicode=$Detail->FontCode2000;
+ }
- foreach ($data['CurrencyDetail'] as $Detail)
- {
- $currencycode=$Detail->Currency_Code;
- }
+ foreach ($data['CurrencyDetail'] as $Detail)
+ {
+ $currencycode=$Detail->Currency_Code;
+ }
- //print_r($unicode);
- $data['unicode']=$unicode;
- $data['currencycode']=$currencycode;
- $this->global['pageTitle'] = 'Siddharth : Edit Import Purchase order form';
- $this->loadViews("editImportAmendPO", $this->global, $data, NULL);
+
+ $data['unicode']=$unicode;
+ $data['currencycode']=$currencycode;
+ $this->global['pageTitle'] = 'Siddharth : Edit Import Purchase order form';
+ $this->loadViews("editImportAmendPO", $this->global, $data, NULL);
}
else if($ReqType == CAPITAL)
{
- $CapitalRange = $_GET['CapitalRange'];
-
- $CapitalAvlBudget = $this->purchaseorder_model->GetAvailableCapitalBudgetAmount($CostCode,$FYdt,$ReqType);
-
-
- if(count($CapitalAvlBudget)>0)
- {
-
-
- $data['AvlCapitalBudAmt'] = $CapitalAvlBudget[0]['BudgetAmount'] - $CapitalAvlBudget[0]['Totalvalue'];
+ $CapitalRange = $_GET['CapitalRange'];
+ $CapitalAvlBudget = $this->purchaseorder_model->GetAvailableCapitalBudgetAmount($CostCode,$FYdt,$ReqType);
- }
- if($CapitalRange=='0'){
+ if(count($CapitalAvlBudget)>0)
+ {
+ $data['AvlCapitalBudAmt'] = $CapitalAvlBudget[0]['BudgetAmount'] - $CapitalAvlBudget[0]['Totalvalue'];
+ }
+ if($CapitalRange=='0'){
$data['POItem'] = $this->purchaseorder_model->getCapitalPurchaseOrderDetails($PONO);
-
- }
+ }
else if($CapitalRange=='1'){
$data['POItem'] = $this->purchaseorder_model->getDomesticCapitalPurchaseOrderDetails($PONO);
-
- }
+ }
- $data['requestedBy'] = $this->purchaseorder_model->GetRequesedByDetails($PONO);
-
-
+ $data['requestedBy'] = $this->purchaseorder_model->GetRequesedByDetails($PONO);
+ $CapitalRange='';
- $CapitalRange='';
-
- foreach($data['POItem'] as $Rate)
- {
-
-
- $exRate=$Rate->ExchangeRate;
+ foreach($data['POItem'] as $Rate)
+ {
+ $exRate=$Rate->ExchangeRate;
$CapitalRange=$Rate->CapitalRange;
+ }
-
- }
-
- foreach($data['POItem'] as $CUR)
- {
-
-
+ foreach($data['POItem'] as $CUR)
+ {
$Currency=$CUR->CurrencyType;
+ }
+ if($CapitalRange=='0'){
-
- }
-
- if($CapitalRange=='0'){
-
- $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
-
-
+ $data['CurrencyDetail']=$this->purchaseorder_model->GetCurrencyDetail($Currency);
$data['ExchangeRate']=$exRate;
-
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
- }
- else if($CapitalRange=='1'){
+ }
+ else if($CapitalRange=='1'){
$data['CurrencyDetail']='';
-
$data['ExchangeRate']=$exRate;
-
$data['Currency']=$this->purchaseorder_model->GetCurrencytype();
- }
-
-
- $this->global['pageTitle'] = 'Siddharth : Edit Capital Purchase order form';
- $this->loadViews("editCapitalAmendPO", $this->global, $data, NULL);
- }
+ }
+ $this->global['pageTitle'] = 'Siddharth : Edit Capital Purchase order form';
+ $this->loadViews("editCapitalAmendPO", $this->global, $data, NULL);
+ }
}
-
+ /**
+ * To Store release Revenue Po values after edit
+ */
function EditRevenuePurchaseOrder()
{
$NewPO='';
$MAD='';
-
$PONO =$this->input->post('txtPONO');
- // echo "Revenue Amendment";
- // echo "OLD PO IS" . $PONO;
-
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
$SupplierID = $this->input->post('drpSupplier');
@@ -271,17 +233,16 @@ class amendmentpurchaseorder extends BaseController
$dt = $this->input->post('Deliverydt');
$predeliverydate=$this->input->post('beforeDeliverydt');
$preschedule=$this->input->post('beforeScheduleby');
- //$Deliverydt = $this->getDateformat($dt);
$DeliverySchedule1 = $this->input->post('Scheduleby');
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
- $Deliverydt=null;
- $DeliverySchedule = $this->input->post('Scheduleby');
+ $Deliverydt=null;
+ $DeliverySchedule = $this->input->post('Scheduleby');
}
else{
- $Deliverydt = $this->getDateformat($dt);
- $DeliverySchedule = '';
+ $Deliverydt = $this->getDateformat($dt);
+ $DeliverySchedule = '';
}
$Modeofshipment=$this->input->post('addmodeofshipment');
@@ -292,47 +253,37 @@ class amendmentpurchaseorder extends BaseController
$revenuetype=$this->input->post('PoTypeOptions');
$insurancestatus=$this->input->post('insurancestatus');
if($insurancestatus == 1){
- $insuranceno=$this->input->post('insuranceno');
+ $insuranceno=$this->input->post('insuranceno');
}else{
- $insuranceno="";
+ $insuranceno="";
}
-
$POType = $this->input->post('POType');
$PoRange = $this->input->post('Range');
$PaymentTermsText=$this->input->post('beforePaymentTermsText');
$PaymentTerms=$this->input->post('PaymentTerms');
$Otherpayment=$this->input->post('Otherpayment');
$Otherpaymentamend=$this->input->post('Otherpayment');
- //echo $Otherpayment;
$prePaymentTerms=$this->input->post('beforePaymentTerms');
$preTotalOdervalue=$this->input->post('preTotalOdervalue');
- $MAD.="Amended TotalOrder Value: :" . $preTotalOdervalue ."
";
+ $MAD.="Current TotalOrder Value: :" . $preTotalOdervalue ."
";
$testdate=date("Y-m-d");
if($PaymentTerms!=$prePaymentTerms)
{
if($prePaymentTerms != 'PT08'){ $Otherpaymentamend='';}
- $MAD.="Amended PaymentTerms : ". $PaymentTermsText . $Otherpaymentamend ."
";
+ $MAD.="Current PaymentTerms : ". $PaymentTermsText . $Otherpaymentamend ."
";
}
if(($dt != $predeliverydate)|| ($DeliverySchedule1 != $preschedule))
{
-
-
- $MAD.='Amended Delivery Option : ' . $predeliverydate . $preschedule . '
' ;
+ $MAD.='Current Delivery Option : ' . $predeliverydate . $preschedule . '
' ;
}
- $SpecialInstruction = $this->input->post('txtSpcialInstruction');//$_POST['txtSpcialInstruction'];//$this->input->post('txtSpcialInstruction');//t->post('txtSpcialInstruction'));
-
- //echo $MAD;
-
+ $SpecialInstruction = $this->input->post('txtSpcialInstruction');
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummary');
$POStatus = $this->input->post('txtStatus');
-
$updatedBy = $this->session->userdata ( 'userId' );
-
$RowCount = $this->input->post('txtRowCount');
-
$dtt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updateddt = $dtt->format('Y-m-d H:i:s');
if(empty($Deliverydt))
@@ -345,38 +296,22 @@ class amendmentpurchaseorder extends BaseController
}
- $POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'PORange'=>$PoRange,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Reference'=>$supplierreference,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'InsuranceNumber'=>$insuranceno,'POSubType'=>$revenuetype,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD);
- //print_r($POMaster);
-
-
-
- $LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
- if(count($LastPO)>0)
- {
+ $POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'PORange'=>$PoRange,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Reference'=>$supplierreference,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'InsuranceNumber'=>$insuranceno,'POSubType'=>$revenuetype,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD);
+ $LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
+ if(count($LastPO)>0)
+ {
$NewPO = $LastPO[0]['PONO'];
- }
+ }
- //echo "NEW PO IS " . $NewPO;
- //echo "";
- //change old po status as Amendment
- $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
- //print_r($PODetail);
- $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
- //echo $APO."Affected";
- //die();
- //print_r($LastPO);
+ $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
+ $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
- $LineItemStatus = REQITEM_NEW;
-
+ $LineItemStatus = REQITEM_NEW;
+ for ($i = 1; $i <= $RowCount; $i++)
+ {
- //echo 'before for loop';
- //echo $RowCount;
-
- for ($i = 1; $i <= $RowCount; $i++)
- {
- //echo "inside loop";
$CAD='';
$MaterialCode = $this->input->post('materialCode'.$i);
$Quantity = $this->input->post('quantity'.$i);
@@ -440,147 +375,139 @@ class amendmentpurchaseorder extends BaseController
if(($Quantity-$preqty)!=0)
{
- $rowspanvalue++;
- $CAD.="
| Amended Quantity : ".$preqty ." | Current Qty : ".$Quantity." |
";
+ $rowspanvalue++;
+ $CAD.="| Current Quantity : ".$preqty ." | Revised Qty : ".$Quantity." |
";
}
if(($itemRate-$preitemrate)!=0)
{
- $rowspanvalue++;
- $CAD.="| Amended Rate : " . $preitemrate." | Current Item Rate : ".$itemRate." |
";
+ $rowspanvalue++;
+ $CAD.="| Current Rate : " . $preitemrate." | Revised Item Rate : ".$itemRate." |
";
}
if($DiscountType != $beforeDiscountType){
- $rowspanvalue++;
- $CAD.="| Amended DiscountType : " . $beforeDiscountType." | Current DiscountType : ".$DiscountType." |
";
+ $rowspanvalue++;
+ $CAD.="| Current DiscountType : " . $beforeDiscountType." | Revised DiscountType : ".$DiscountType." |
";
}
if(($DiscountValue-$preDiscountValue)!=0)
{
- $rowspanvalue++;
- $CAD.="| Amended Discount : ". $preDiscountValue ." | Current Discount : ".$DiscountValue." |
";
+ $rowspanvalue++;
+ $CAD.="| Current Discount : ". $preDiscountValue ." | Revised Discount : ".$DiscountValue." |
";
}
if(($AfterDiscount-$beforeAfterDiscount)!=0)
{
$rowspanvalue++;
- $CAD.="| Amended Discount Value : ". $beforeAfterDiscount ." | Current Discount Value : ".$AfterDiscount." |
";
+ $CAD.="| Current Discount Value : ". $beforeAfterDiscount ." | Revised Discount Value : ".$AfterDiscount." |
";
}
if($PackagingType != $beforePackagingType){
$rowspanvalue++;
- $CAD.="| Amended Packaging Type : ". $beforePackagingType ." | Current Packaging Type : ".$PackagingType." |
";
+ $CAD.="| Current Packaging Type : ". $beforePackagingType ." | Revised Packaging Type : ".$PackagingType." |
";
}
if(($PackagingValue-$prePackagingValue)!=0)
{
$rowspanvalue++;
- $CAD.="| Amended Package Value : ". $prePackagingValue." | Current Package Value : ".$PackagingValue." |
";
+ $CAD.="| Current Package Value : ". $prePackagingValue." | Revised Package Value : ".$PackagingValue." |
";
}
if(($AfterPackagingValue-$beforeAfterPackagingValue)!=0)
{
$rowspanvalue++;
- $CAD.="| Amended Package Value : ". $beforeAfterPackagingValue." | Current Package Value : ".$AfterPackagingValue." |
";
+ $CAD.="| Current Package Value : ". $beforeAfterPackagingValue." | Revised Package Value : ".$AfterPackagingValue." |
";
}
if(($VatValue-$preVatValue)!=0)//SGST
{
$rowspanvalue++;
- $CAD.="| Amended SGST : ". $preVatValue." | Current SGST : ".$VatValue." |
";
+ $CAD.="| Current SGST : ". $preVatValue." | Revised SGST : ".$VatValue." |
";
}
if(($AfterVatValue-$beforeAfterVatValue)!=0)//SGST
{
$rowspanvalue++;
- $CAD.="| Amended SGST value : ". $beforeAfterVatValue." | Current SGST Value : ".$AfterVatValue." |
";
+ $CAD.="| Current SGST value : ". $beforeAfterVatValue." | Revised SGST Value : ".$AfterVatValue." |
";
}
if(($GSTValue-$preGSTValue)!=0)//CGST
{
$rowspanvalue++;
- $CAD.="| Amended CGST : ". $preGSTValue." | Current CGST : ".$GSTValue." |
";
+ $CAD.="| Current CGST : ". $preGSTValue." | Revised CGST : ".$GSTValue." |
";
}
if(($AfterGSTValue-$beforeAfterGSTValue)!=0)//CGST
{
$rowspanvalue++;
- $CAD.="| Amended CGST Value : ". $beforeAfterGSTValue." | Current CGST Value : ".$AfterGSTValue." |
";
+ $CAD.="| Current CGST Value : ". $beforeAfterGSTValue." | Revised CGST Value : ".$AfterGSTValue." |
";
}
if(($OtherTaxValue-$preOtherTaxValue)!=0)//IGST
{
$rowspanvalue++;
- $CAD.="| Amended IGST : ". $preOtherTaxValue." | Current IGST : ".$OtherTaxValue." |
";
+ $CAD.="| Current IGST : ". $preOtherTaxValue." | Revised IGST : ".$OtherTaxValue." |
";
}
if(($AfterOtherTaxValue-$beforeAfterOtherTaxValue)!=0)//IGST
{
$rowspanvalue++;
- $CAD.="| Amended IGST : ". $beforeAfterOtherTaxValue." | Current IGST : ".$AfterOtherTaxValue." |
";
+ $CAD.="| Current IGST : ". $beforeAfterOtherTaxValue." | Revised IGST : ".$AfterOtherTaxValue." |
";
}
if($FreightType != $beforeFreightType){
$rowspanvalue++;
- $CAD.="| Amended Freight Type : ". $beforeFreightType." | Current Freight Type : ".$FreightType." |
";
+ $CAD.="| Current Freight Type : ". $beforeFreightType." | Revised Freight Type : ".$FreightType." |
";
}
if(($FreightType=="PER TRIP") || ($beforeFreightType=="PER TRIP")){
- if($NoofTrips != $beforeNoofTrips)
- {
+ if($NoofTrips != $beforeNoofTrips)
+ {
$rowspanvalue++;
- $CAD.="| Amended No of Trips : ". $beforeNoofTrips." | Current No of Trips : ".$NoofTrips." |
";
- }
+ $CAD.="| Current No of Trips : ". $beforeNoofTrips." | Revised No of Trips : ".$NoofTrips." |
";
+ }
}
if(($FreightValue-$preFreightValue)!=0)
{
$rowspanvalue++;
- $CAD.="| Amended Freight : ". $preFreightValue." | Current Freight : ".$FreightValue." |
";
+ $CAD.="| Current Freight : ". $preFreightValue." | Revised Freight : ".$FreightValue." |
";
}
if(($AfterFreightValue-$beforeAfterFreightValue)!=0)
{
$rowspanvalue++;
- $CAD.="| Amended Freight Value : ". $beforeAfterFreightValue." | Current Freight Value : ".$AfterFreightValue." |
";
+ $CAD.="| Current Freight Value : ". $beforeAfterFreightValue." | Revised Freight Value : ".$AfterFreightValue." |
";
}
if(($InsuranceValue-$preInsuranceValue)!=0)
{
$rowspanvalue++;
- $CAD.="| Amended Insurance Value : ". $preInsuranceValue." | Current Insurance Value : ".$InsuranceValue." |
";
+ $CAD.="| Current Insurance Value : ". $preInsuranceValue." | Revised Insurance Value : ".$InsuranceValue." |
";
}
if($rowspanvalue>0)
{
$rowspanvalue++;
-
$CAD2='';
$CAD2=$CAD;
$CAD='';
$CAD="| ".$MaterialCode." |
";
$CAD.=$CAD2;
}
- // echo $CAD;
- // die();
- $ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
-
+ $ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
if(count($ReceivedQty)>0)
- {
+ {
$RecQtyvalue = $ReceivedQty[0]['ReceivedQuantity'];
- }
+ }
-
-
- $POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'ReceivedQuantity'=>$RecQtyvalue,'Quantity'=>$Quantity,'Per'=>$per,'ServiceMaterialDescription'=>$servicematerialdescription,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CostCenterCode'=>$CostCenter,'ServiceFrequency'=>$ServiceFrequency,'AmendedDetails'=>$CAD);
- //print_r($POLineItemList);
+ $POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'ReceivedQuantity'=>$RecQtyvalue,'Quantity'=>$Quantity,'Per'=>$per,'ServiceMaterialDescription'=>$servicematerialdescription,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CostCenterCode'=>$CostCenter,'ServiceFrequency'=>$ServiceFrequency,'AmendedDetails'=>$CAD);
- $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
+ $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
- if(count($POLineItem)>0)
- {
+ if(count($POLineItem)>0)
+ {
$LineItemNo = $POLineItem[0]['LineItemNo'];
- }
+ }
- $RevenueTaxList = array('LineItemNo'=>$LineItemNo, 'DiscountType'=>$DiscountType,'DiscountValue'=>$DiscountValue,'AfterDiscount'=>$AfterDiscount,'PackagingType'=>$PackagingType,'PackagingValue'=>$PackagingValue,'PackagingCalulatedOn'=>$PackagingOption,'AfterPackagingValue'=>$AfterPackagingValue,'FreightType'=>$FreightType,'NoOfTrip'=>$NoofTrips,'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'SGST'=>$VatValue,'AfterSGST'=>$AfterVatValue,'CGST'=>$GSTValue,'AfterCGST'=>$AfterGSTValue,'IGST'=>$OtherTaxValue,'AfterIGST'=>$AfterOtherTaxValue,'Insurance'=>$InsuranceValue,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt);
- // print_r($RevenueTaxList);
- $RevenueList = $this->purchaseorder_model->addRevenueTax($RevenueTaxList);
-
- }
+ $RevenueTaxList = array('LineItemNo'=>$LineItemNo, 'DiscountType'=>$DiscountType,'DiscountValue'=>$DiscountValue,'AfterDiscount'=>$AfterDiscount,'PackagingType'=>$PackagingType,'PackagingValue'=>$PackagingValue,'PackagingCalulatedOn'=>$PackagingOption,'AfterPackagingValue'=>$AfterPackagingValue,'FreightType'=>$FreightType,'NoOfTrip'=>$NoofTrips,'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'SGST'=>$VatValue,'AfterSGST'=>$AfterVatValue,'CGST'=>$GSTValue,'AfterCGST'=>$AfterGSTValue,'IGST'=>$OtherTaxValue,'AfterIGST'=>$AfterOtherTaxValue,'Insurance'=>$InsuranceValue,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt);
- echo 'Purchase Order Amended Successfully! PO Number Is: '.$PONO .'- New PO Number is'.$NewPO;
- }
+ $RevenueList = $this->purchaseorder_model->addRevenueTax($RevenueTaxList);
+
+ }
+
+ echo 'Purchase Order Amended Successfully! PO Number Is: '.$PONO .'- New PO Number is'.$NewPO;
+ }
-
-
-
-
-function UpdateAmendServicePurchaseOrder()
+ /**
+ * To Store release Service Po values after edit
+ */
+ function UpdateAmendServicePurchaseOrder()
{
$PONO =$this->input->post('txtPONO');
@@ -588,75 +515,63 @@ function UpdateAmendServicePurchaseOrder()
$MAD='';
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
- //echo $PODate;
- $SupplierID = $this->input->post('drpSupplier');
+
+ $SupplierID = $this->input->post('drpSupplier');
$DeliveryAddr = $this->input->post('txtDeliveryAddress');
$dt = $this->input->post('Deliverydt');
$DeliveryOption = $this->input->post('DateRange');
if($DeliveryOption==1){
- $Deliverydt =null;
- $DeliverySchedule = $this->input->post('Scheduleby');
+ $Deliverydt =null;
+ $DeliverySchedule = $this->input->post('Scheduleby');
}
- else{
- $Deliverydt = $this->getDateformat($dt);
- // echo "IF" . $Deliverydt;
- $DeliverySchedule = '';
+ else{
+ $Deliverydt = $this->getDateformat($dt);
+ $DeliverySchedule = '';
}
$ddate=$this->input->post('Deliverydt');
-
$beforeddate=$this->input->post('beforeDeliverydt');
-
$testdate=date("Y-m-d");
-
$dschedule=$this->input->post('Scheduleby');
-
$beforedschedule=$this->input->post('beforeScheduleby');
-
$preTotalordervalue=$this->input->post('preTotalordervalue');
+ $MAD.="Current TotalOrder Value: " . $preTotalordervalue . "
";
- $MAD.="Amended TotalOrder Value: " . $preTotalordervalue . "
";
if(($ddate != $beforeddate)||($dschedule != $beforedschedule))
{
- $MAD.="Amended DeliveryOption : " . $beforeddate . $beforedschedule."
";
+ $MAD.="Current DeliveryOption : " . $beforeddate . $beforedschedule."
";
}
- // if($dschedule != $beforedschedule)
- // {
- // $MAD.="Amended DeliveryOption : " . $beforedschedule . $beforeddate."
";
- // }
-
$PaymentTermsText=$this->input->post('beforePaymentTermsText');
- $PaymentTerms=$this->input->post('PaymentTerms');
+ $PaymentTerms=$this->input->post('PaymentTerms');
$Otherpayment=$this->input->post('Otherpayment');
$Otherpaymentamend=$this->input->post('Otherpayment');
$beforePaymentTerms=$this->input->post('beforePaymentTerms');
+
if($PaymentTerms != $beforePaymentTerms)
{
if($beforePaymentTerms != 'PT08'){ $Otherpaymentamend='';}
- $MAD.="Amended PaymentTerms : ". $PaymentTermsText . $Otherpaymentamend."
";
+ $MAD.="Current PaymentTerms : ". $PaymentTermsText . $Otherpaymentamend."
";
}
- //echo "MAD IS" . $MAD . "
";
- $POType = $this->input->post('POType');
-
+ $POType = $this->input->post('POType');
$ModeOfShipment=$this->input->post('addmodeofshipment');
- $SupplierReference=$this->input->post('amendsupplierreference');
- $SuppliersOfferNo=$this->input->post('amendsupplierofferno');
- $OtherReferences=$this->input->post('amendotherreference');
- $Fincap=$this->input->post('amendfincap');
- $InsuranceOptions=$this->input->post('insuranceStatus');
- $InsuranceNo=$this->input->post('insuranceNo');
- $ServiceTypeOptions=$this->input->post('PoTypeOptions');
- $DescriptionOfPo = $this->input->post('amenddescofpo');
+ $SupplierReference=$this->input->post('amendsupplierreference');
+ $SuppliersOfferNo=$this->input->post('amendsupplierofferno');
+ $OtherReferences=$this->input->post('amendotherreference');
+ $Fincap=$this->input->post('amendfincap');
+ $InsuranceOptions=$this->input->post('insuranceStatus');
+ $InsuranceNo=$this->input->post('insuranceNo');
+ $ServiceTypeOptions=$this->input->post('PoTypeOptions');
+ $DescriptionOfPo = $this->input->post('amenddescofpo');
$scopeofwork = $this->input->post('ScopeofWork');
$TotalOrderValueSummary = $this->input->post('txtTotalOrderValueSummary');
$POStatus = $this->input->post('txtStatus');
$updatedBy = $this->session->userdata ( 'userId' );
$RowCount = $this->input->post('txtRowCount');
- //echo 'RowCount is' . $RowCount;
+
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updateddt = $dt->format('Y-m-d H:i:s');
$WorkStatus=$this->input->post('workstatus');
@@ -666,33 +581,28 @@ function UpdateAmendServicePurchaseOrder()
$Deliverydt=null;
}
if($PaymentTerms != 'PT08'){
- $Otherpayment='';
-
+ $Otherpayment='';
}
$POMaster = array('ParentPO'=>$PONO,'POType'=>$POType,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$scopeofwork,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'ServiceWorkStatus'=>$WorkStatus,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'Description_Of_Service'=>$DescriptionOfPo,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions);
- //print_r($POMaster);
-
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
- //print_r($LastPO);
- $NewPO = '';
- if(count($LastPO)>0)
- {
+
+ $NewPO = '';
+ if(count($LastPO)>0)
+ {
$NewPO = $LastPO[0]['PONO'];
- }
+ }
- $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
+ $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
- $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
+ $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
$LineItemStatus = REQITEM_NEW;
for ($i = 1; $i <= $RowCount; $i++)
{
-
- //echo "Inside Loop";
$CAD='';
$MaterialCode = $this->input->post('materialCode'.$i);
$MaterialName=$this->input->post('materialName'.$i);
@@ -717,7 +627,6 @@ function UpdateAmendServicePurchaseOrder()
$otherallowance = $this->input->post('otherallowance'.$i);
$beforeotherallowance = $this->input->post('beforeotherallowance'.$i);
$servicematerialdescription = $this->input->post('servicematerialdescription'.$i);
-
$CostCenter = $this->input->post('costCode'.$i);
$POLineItemNo = $this->input->post('LineItemNo'.$i);
$TotalOrderValue = $this->input->post('TotalOrderValue'.$i);
@@ -726,7 +635,8 @@ function UpdateAmendServicePurchaseOrder()
$RecQtyvalue=0;
$rowspanvalue=0;
$ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
- if(count($ReceivedQty)>0)
+
+ if(count($ReceivedQty)>0)
{
$RecQtyvalue = $ReceivedQty[0]['ReceivedQuantity'];
}
@@ -734,33 +644,33 @@ function UpdateAmendServicePurchaseOrder()
if($Quantity != $beforeQuantity)
{
$rowspanvalue++;
- $CAD.="| Amended Qty : " . $beforeQuantity ." | Current Qty : " . $Quantity . " |
";
+ $CAD.="| Current Qty : " . $beforeQuantity ." | Revised Qty : " . $Quantity . " |
";
}
if($itemRate != $beforeitemRate)
{
$rowspanvalue++;
- $CAD.="| Amended Rate : " . $beforeitemRate ." | Current Rate : " . $itemRate . " |
";
+ $CAD.="| Current Rate : " . $beforeitemRate ." | Revised Rate : " . $itemRate . " |
";
}
if(($SGST != $beforeSGST) && ($AfterSGST != $beforeSGSTvalue))
{
$rowspanvalue+=2;
- $CAD.="| Amended SGST% : " . $beforeSGST ." | Current SGST% : " . $SGST . " |
| Amended SGST value : " . $beforeSGSTvalue ." | Current SGST value: " . $AfterSGST . " |
";
+ $CAD.="| Current SGST% : " . $beforeSGST ." | Revised SGST% : " . $SGST . " |
| Current SGST value : " . $beforeSGSTvalue ." | Revised SGST value: " . $AfterSGST . " |
";
}
if(($CGST != $beforeCGST) && ($AfterCGST != $beforeCGSTvalue))
{
$rowspanvalue+=2;
- $CAD.="| Amended CGST% : " . $beforeCGST ." | Current CGST% : " . $CGST . " |
| Amended CGST value : " . $beforeCGSTvalue ." | Current CGST value: " . $AfterCGST . " |
";
+ $CAD.="| Current CGST% : " . $beforeCGST ." | Revised CGST% : " . $CGST . " |
| Current CGST value : " . $beforeCGSTvalue ." | Revised CGST value: " . $AfterCGST . " |
";
}
if(($IGST != $beforeIGST) && ($AfterIGST != $beforeIGSTvalue))
{
$rowspanvalue+=2;
- $CAD.="| Amended IGST% : " . $beforeIGST ." | Current IGST% : " . $IGST . " |
| Amended IGST value : " . $beforeIGSTvalue ." | Current IGST value: " . $AfterIGST . " |
";
+ $CAD.="| Current IGST% : " . $beforeIGST ." | Revised IGST% : " . $IGST . " |
| Current IGST value : " . $beforeIGSTvalue ." | Revised IGST value: " . $AfterIGST . " |
";
}
if($otherallowance != $beforeotherallowance)
{
$rowspanvalue++;
- $CAD.="| Amended OtherAllowances : " . $beforeotherallowance ." | Current OtherAllowances : " . $otherallowance . " |
";
+ $CAD.="| Current OtherAllowances : " . $beforeotherallowance ." | Revised OtherAllowances : " . $otherallowance . " |
";
}
if($rowspanvalue>0)
{
@@ -771,63 +681,50 @@ function UpdateAmendServicePurchaseOrder()
$CAD="| ".$MaterialCode."-".$MaterialName." |
";
$CAD.=$CAD2;
}
-
- //echo "
CAD IS" . $CAD . "
";
-
+
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'ServiceMaterialDescription'=>$servicematerialdescription,'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CostCenterCode'=>$CostCenter,'ServiceFrequency'=>$ServiceFrequency,'ReceivedQuantity'=>$RecQtyvalue,'AmendedDetails'=>$CAD,'Per'=>$Per);
- //print_r($POLineItemList);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
- if(count($POLineItem)>0)
- {
- $LineItemNo = $POLineItem[0]['LineItemNo'];
- }
+ if(count($POLineItem)>0)
+ {
+ $LineItemNo = $POLineItem[0]['LineItemNo'];
+ }
-
-
$ServiceTaxList = array('LineItemNo'=>$LineItemNo,'CGST'=>$CGST,'After_CGST'=>$AfterCGST,'SGST'=>$SGST,'After_SGST'=>$AfterSGST,'IGST'=>$IGST,'After_IGST'=>$AfterIGST,'otherallowance'=>$otherallowance, 'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt);
- //print_r($ServiceTaxList);
$ServiceList =$this->purchaseorder_model->addServiceTax($ServiceTaxList);
}
echo 'PO Number is'.$PONO . ' is Amended Successfully! - New Amended PO Number is '.$NewPO;
}
-
+ /**
+ * To Store Capital Po values after edit
+ */
function EditAmendCapitalPurchaseOrder()
{
-
-
-
-
$PONO =$this->input->post('txtPONO');
- //echo $PONO."--";
$MAD='';
$DeliverySchedule = '';
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
- $SupplierID = $this->input->post('drpSupplier');
+ $SupplierID = $this->input->post('drpSupplier');
$DeliveryAddr = $this->input->post('DeliveryAddr');
$dt = $this->input->post('Deliverydate');
- //echo $dt . "-";
- //die();
$POType = $this->input->post('POType');
$PoRange = $this->input->post('capitalType');
-
$DeliveryOption = $this->input->post('DateRange');
$Deliverydt = '';
- if(($DeliveryOption==1)||($DeliveryOption==2)){
+ if(($DeliveryOption==1)||($DeliveryOption==2)){
$Deliverydt = null;
-
+
if($DeliveryOption==1){
- $DeliverySchedule = $this->input->post('Scheduleby');}
- }
- else{
- $Deliverydt = $this->getDateformat($dt);
-
+ $DeliverySchedule = $this->input->post('Scheduleby');}
+ }
+ else{
+ $Deliverydt = $this->getDateformat($dt);
$DeliverySchedule = '';
- }
+ }
$predispatch=$this->input->post('beforeDisins');
$curdispatch=$this->input->post('Dispatch');
@@ -844,116 +741,97 @@ function UpdateAmendServicePurchaseOrder()
$Otherpayment=$this->input->post('Otherpayment');
$Otherpaymentamend=$this->input->post('Otherpayment');
$PreServiceTotalorder = $this->input->post('preServiceTotalorderValue');//For Domestic Pre Total Value
- $Totalserviceorder = $this->input->post('Totalservicesummary');//For Domestic Current Total value
- //echo "Tjb" . $Totalserviceorder."--" . $PreServiceTotalorder;die();
+ $Totalserviceorder = $this->input->post('Totalservicesummary');//For Domestic Revised Total value
$TotalCapitalorder= $this->input->post('CapitalToatlOrder');//For International total CapitalOrder
$preTotalCapitalorder= $this->input->post('preinterTotalorderValue');//For International pre total CapitalOrder
- $ModeOfShipment=$this->input->post('addmodeofshipment');
- $SupplierReference=$this->input->post('amendsupplierreference');
- $SuppliersOfferNo=$this->input->post('amendsupplierofferno');
- $OtherReferences=$this->input->post('amendotherreference');
- $Fincap=$this->input->post('amendfincap');
- $InsuranceOptions=$this->input->post('insuranceStatus');
- $InsuranceNo=$this->input->post('insuranceNo');
- $ServiceTypeOptions=$this->input->post('PoTypeOptions');
- //echo $TotalCapitalorder . "-" . $preTotalCapitalorder;
+ $ModeOfShipment=$this->input->post('addmodeofshipment'); $SupplierReference=$this->input->post('amendsupplierreference');
+ $SuppliersOfferNo=$this->input->post('amendsupplierofferno');
+ $OtherReferences=$this->input->post('amendotherreference');
+ $Fincap=$this->input->post('amendfincap');
+ $InsuranceOptions=$this->input->post('insuranceStatus');
+ $InsuranceNo=$this->input->post('insuranceNo');
+ $ServiceTypeOptions=$this->input->post('PoTypeOptions');
+
if($PoRange==1){
- $MAD.="Amended TotalOrder Value: " . $PreServiceTotalorder . "
";
+ $MAD.="Current TotalOrder Value: " . $PreServiceTotalorder . "
";
}else if($PoRange==0){
- $MAD.="Amended TotalOrder Value: " . $preTotalCapitalorder . "
";
+ $MAD.="Current TotalOrder Value: " . $preTotalCapitalorder . "
";
}
if($PaymentMethod != $prePaymentmethod)
{
if($prePaymentmethod != 'PT08'){ $Otherpaymentamend='';}
- $MAD.="Amended Paymemnt Terms : " .$prePaymentmethodtext."
";
+ $MAD.="Current Paymemnt Terms : " .$prePaymentmethodtext."
";
}
if($predispatch != $curdispatch)
{
- $MAD.="Amended Delivery Option : " .$predispatch.$preDeliverySchedule.$preDate."
";
+ $MAD.="Current Delivery Option : " .$predispatch.$preDeliverySchedule.$preDate."
";
}
if($DeliverySchedule1!= $preDeliverySchedule)
{
- $MAD.="Amended DeliveyOption : " .$preDeliverySchedule.$preDate.$predispatch."
";
+ $MAD.="Current DeliveyOption : " .$preDeliverySchedule.$preDate.$predispatch."
";
}
if($preDate != $Date)
{
- $MAD.="Amended DeliveyOption : " .$preDate.$preDeliverySchedule."
";
+ $MAD.="Current DeliveyOption : " .$preDate.$preDeliverySchedule."
";
}
- //echo "
" . $MAD;
- //die();
- $capitalType = $this->input->post('capitalType');
- $currencytypeID = $this->input->post('currencytype');
- if($capitalType=='1'){
+ $capitalType = $this->input->post('capitalType');
+ $currencytypeID = $this->input->post('currencytype');
+ if($capitalType=='1'){
$CapitalRange = '1';
- $ExchangeRateOn = '';
- $ExchangeRate='';
-
- }
- else{
-
- $CapitalRange = '0';
- $ExchangeRateOn = $this->input->post('ExchangeRateOn');
- $ExchangeRateOn = $this->getDateformat($ExchangeRateOn);
- $ExchangeRate=$this->input->post('ExchangeRt');
- }
-
-
+ $ExchangeRateOn = '';
+ $ExchangeRate='';
+ }
+ else{
+ $CapitalRange = '0';
+ $ExchangeRateOn = $this->input->post('ExchangeRateOn');
+ $ExchangeRateOn = $this->getDateformat($ExchangeRateOn);
+ $ExchangeRate=$this->input->post('ExchangeRt');
+ }
+
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
if($PoRange==1){
- $FinalTotalOrder = $Totalserviceorder;
+ $FinalTotalOrder = $Totalserviceorder;
}else if($PoRange==0)
{
$FinalTotalOrder=$TotalCapitalorder;
- }
- $POStatus = $this->input->post('txtStatus');
-
+ }
- $CreateBy = $this->session->userdata ( 'userId' );
+ $POStatus = $this->input->post('txtStatus');
+ $CreateBy = $this->session->userdata ( 'userId' );
$RowCount = $this->input->post('txtRowCount');
- //echo $RowCount;
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$createddt = $dt->format('Y-m-d H:i:s');
$updateddt = $dt->format('Y-m-d H:i:s');
- //echo "FINAL-".$Deliverydt;
+
if(empty($Deliverydt)){
$Deliverydt=null;
- //echo "*INSIDE IF" .$Deliverydt;
}
- // echo "*" .$Deliverydt;
+
if($PaymentMethod != 'PT08'){
$Otherpayment='';
}
- $updatedBy = $this->session->userdata ( 'userId' );
+ $updatedBy = $this->session->userdata ( 'userId' );
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$FinalTotalOrder,'POType'=>$POType,'PODate'=>$PODate,'Status'=>PO_RELEASED,'CapitalRange'=>$PoRange,'ExchangeRate'=>$ExchangeRate,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'PaymentTerms'=>$PaymentMethod,'PaymentOtherDescription'=>$Otherpayment,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CurrencyType'=>$currencytypeID,'AmendedDetails'=>$MAD,'Import_DispatchDetails'=>$curdispatch,'Import_PlaceofOrgin'=>$PlaceOforigin,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions);
- // print_r($POMaster);
-
- $LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$CreateBy,$PONO);
+ $LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$CreateBy,$PONO);
- foreach($LastPO as $PO):
+ foreach($LastPO as $PO):
$NewPO=$PO['PONO'];
- endforeach;
-
- // echo "NEW PO IS " . $NewPO."";
-
-
- $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
- //print_r($PODetail);
- $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
- // echo $APO."Affected";
-
- $LineItemStatus = REQITEM_NEW;
-
+ endforeach;
+ $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
+
+ $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
- //echo "Before Loopp";
- for ($i = 1; $i <= $RowCount; $i++)
- {
+ $LineItemStatus = REQITEM_NEW;
+
+ for ($i = 1; $i <= $RowCount; $i++)
+ {
$CAD='';
$MaterialCode = $this->input->post('materialCode'.$i);
@@ -962,7 +840,7 @@ function UpdateAmendServicePurchaseOrder()
$Reqnumber = $this->input->post('Reqnumber'.$i);
$preitemRate = $this->input->post('itemRate'.$i);
$itemRate = $this->input->post('rateInUs'.$i);
- $Per = $this->input->post('per'.$i);
+ $Per = $this->input->post('per'.$i);
$Exchangerate = $this->input->post('echangeRate'.$i);
$BasicPriceinmton = $this->input->post('rateInUs'.$i);
$Productprice = $this->input->post('basicvalInINR'.$i);
@@ -1012,22 +890,17 @@ function UpdateAmendServicePurchaseOrder()
$ClearingCharge = $this->input->post('ClearingCharge'.$i);
- $NetValue = $this->input->post('NetValue'.$i);
+ $NetValue = $this->input->post('NetValue'.$i);
- $DutyImpact=$this->input->post('DutyImpact'.$i);
+ $DutyImpact=$this->input->post('DutyImpact'.$i);
-
-
-
-
- //echo $BasicPriceinmton;
$CostCenter = $this->input->post('CPCostCode'.$i);
$SGST = $this->input->post('SGST'.$i);
$preSGST = $this->input->post('beforeSGST'.$i);
- $CGST = $this->input->post('CGST'.$i);
+ $CGST = $this->input->post('CGST'.$i);
$preCGST = $this->input->post('beforeCGST'.$i);
- $IGST = $this->input->post('IGST'.$i);
+ $IGST = $this->input->post('IGST'.$i);
$preIGST = $this->input->post('beforeIGST'.$i);
$SGSTvalue=$this->input->post('afterSGST'.$i);
@@ -1037,201 +910,159 @@ function UpdateAmendServicePurchaseOrder()
$IGSTvalue=$this->input->post('afterIGST'.$i);
$preIGSTvalue=$this->input->post('beforeIGSTvalue'.$i);
$otherallowance=$this->input->post('otherallowance'.$i);
- $preotherallowance=$this->input->post('beforeotherallowance'.$i);
- $DiscountType = $this->input->post('DisType'.$i);
+ $preotherallowance=$this->input->post('beforeotherallowance'.$i);
+ $DiscountType = $this->input->post('DisType'.$i);
$DiscountValue = $this->input->post('DisVal'.$i);
$AfterDiscount = $this->input->post('AfterDisVal'.$i);
- $preDiscountType = $this->input->post('beforeDisType'.$i);
+ $preDiscountType = $this->input->post('beforeDisType'.$i);
$preDiscountValue = $this->input->post('beforeDisVal'.$i);
$preAfterDiscount = $this->input->post('beforeAfterDisVal'.$i);
- $TotalServiceOrderValue = $this->input->post('totalservicevalue'.$i);
- $CapitalItemDescrition = $this->input->post('CapitalItemDescrition'.$i);
- $FreightType = $this->input->post('FreightType'.$i);
- $FreightValue = $this->input->post('FreightVal'.$i);
- $AfterFreightValue = $this->input->post('AfterFreightVal'.$i);
- $NOOfTrip = $this->input->post('NoOfTrip'.$i);
- $POLineItemNo = $this->input->post('LineItemNo'.$i);
-
+ $TotalServiceOrderValue = $this->input->post('totalservicevalue'.$i);
+ $CapitalItemDescrition = $this->input->post('CapitalItemDescrition'.$i);
+ $FreightType = $this->input->post('FreightType'.$i);
+ $FreightValue = $this->input->post('FreightVal'.$i);
+ $AfterFreightValue = $this->input->post('AfterFreightVal'.$i);
+ $NOOfTrip = $this->input->post('NoOfTrip'.$i);
+ $POLineItemNo = $this->input->post('LineItemNo'.$i);
$FreightTypeloc=$this->input->post('Ftype'.$i);
$FreightNoofTriploc=$this->input->post('NoTrip'.$i);
$Freightrateloc=$this->input->post('Fvalue'.$i);
$FreightAmountloc=$this->input->post('Afvalue'.$i);
-
-
$beforeFreightTypeloc=$this->input->post('beforeFtype'.$i);
$beforeFreightNoofTriploc=$this->input->post('beforeNoTrip'.$i);
$beforeFreightrateloc=$this->input->post('beforeFvalue'.$i);
$beforeFreightAmountloc=$this->input->post('beforeAfvalue'.$i);
-
-
-
-
-
-
-
-
$rowspanvalue=0;
if($Quantity != $preQuantity)
{
$rowspanvalue++;
- $CAD.="| Amended Qty : " . $preQuantity ." | Current Qty : " . $Quantity . " |
";
+ $CAD.="| Current Qty : " . $preQuantity ." | Revised Qty : " . $Quantity . " |
";
}
- if($itemRate != $preitemRate)
- {
+ if($itemRate != $preitemRate)
+ {
$rowspanvalue++;
- $CAD.="| Amended Rate : " . $preitemRate ." | Current Rate : " . $itemRate . " |
";
- }
+ $CAD.="| Current Rate : " . $preitemRate ." | Revised Rate : " . $itemRate . " |
";
+ }
if($PoRange==1){
- if(($DiscountValue!=$preDiscountValue) && ($AfterDiscount!=$preAfterDiscount)){
- $rowspanvalue+=2;
- $CAD.="| Amended Discount : " . $preDiscountValue ." | Current Discount : " . $DiscountValue . " |
| Amended Discount value : " . $preAfterDiscount ." | Current Discount value: " . $AfterDiscount . " |
";
+ if(($DiscountValue!=$preDiscountValue) && ($AfterDiscount!=$preAfterDiscount)){
+ $rowspanvalue+=2;
+ $CAD.="| Current Discount : " . $preDiscountValue ." | Revised Discount : " . $DiscountValue . " |
| Current Discount value : " . $preAfterDiscount ." | Revised Discount value: " . $AfterDiscount . " |
";
}
- if(($SGST != $preSGST) && ($SGSTvalue != $preSGSTvalue))
- {
- $rowspanvalue+=2;
- $CAD.="| Amended SGST% : " . $preSGST ." | Current SGST% : " . $SGST . " |
| Amended SGST value : " . $preSGSTvalue ." | Current SGST value: " . $SGSTvalue . " |
";
- }
- if(($CGST != $preCGST) && ($CGSTvalue != $preCGSTvalue))
- {
- $rowspanvalue+=2;
- $CAD.="| Amended CGST% : " . $preCGST ." | Current CGST% : " . $CGST . " |
| Amended CGST value : " . $preCGSTvalue ." | Current CGST value: " . $CGSTvalue . " |
";
- }
- if(($IGST != $preIGST) && ($IGSTvalue != $preIGSTvalue))
- {
- $rowspanvalue+=2;
- $CAD.="| Amended IGST% : " . $preIGST ." | Current IGST% : " . $IGST . " |
| Amended IGST value : " . $preIGSTvalue ." | Current IGST value: " . $IGSTvalue . " |
";
- }
- if($otherallowance != $preotherallowance)
- {
- $rowspanvalue++;
- $CAD.="| Amended OtherAllowances : " . $preotherallowance ." | Current OtherAllowances : " . $otherallowance . " |
";
- }
+ if(($SGST != $preSGST) && ($SGSTvalue != $preSGSTvalue))
+ {
+ $rowspanvalue+=2;
+ $CAD.="| Current SGST% : " . $preSGST ." | Revised SGST% : " . $SGST . " |
| Current SGST value : " . $preSGSTvalue ." | Revised SGST value: " . $SGSTvalue . " |
";
+ }
+ if(($CGST != $preCGST) && ($CGSTvalue != $preCGSTvalue))
+ {
+ $rowspanvalue+=2;
+ $CAD.="| Current CGST% : " . $preCGST ." | Revised CGST% : " . $CGST . " |
| Current CGST value : " . $preCGSTvalue ." | Revised CGST value: " . $CGSTvalue . " |
";
+ }
+ if(($IGST != $preIGST) && ($IGSTvalue != $preIGSTvalue))
+ {
+ $rowspanvalue+=2;
+ $CAD.="| Current IGST% : " . $preIGST ." | Revised IGST% : " . $IGST . " |
| Current IGST value : " . $preIGSTvalue ." | Revised IGST value: " . $IGSTvalue . " |
";
+ }
+ if($otherallowance != $preotherallowance)
+ {
+ $rowspanvalue++;
+ $CAD.="| Current OtherAllowances : " . $preotherallowance ." | Revised OtherAllowances : " . $otherallowance . " |
";
+ }
+ if($FreightTypeloc != $beforeFreightTypeloc)
+ {
+ $rowspanvalue++;
+ $CAD.="| Current Freight Type : " . $beforeFreightTypeloc ." | Revised Qty : " . $FreightTypeloc . " |
";
+ }
+ if($FreightNoofTriploc != $beforeFreightNoofTriploc)
+ {
+ $rowspanvalue++;
+ $CAD.="| Current Freight Nooftrips : " . $beforeFreightNoofTriploc ." | Revised Freight Nooftrips: " . $FreightNoofTriploc . " |
";
+ }
+ if($Freightrateloc != $beforeFreightrateloc)
+ {
+ $rowspanvalue++;
+ $CAD.="| Current Freight Rate : " . $beforeFreightrateloc ." | Revised Freight Rate: " . $Freightrateloc . " |
";
+ }
- if($FreightTypeloc != $beforeFreightTypeloc)
- {
- $rowspanvalue++;
- $CAD.="| Amended Freight Type : " . $beforeFreightTypeloc ." | Current Qty : " . $FreightTypeloc . " |
";
- }
+ if($FreightAmountloc != $beforeFreightAmountloc)
+ {
+ $rowspanvalue++;
+ $CAD.="| Current Freight Amount : " .$beforeFreightAmountloc ." | Revised Freight Amount: " . $FreightAmountloc . " |
";
+ }
-
-
- if($FreightNoofTriploc != $beforeFreightNoofTriploc)
- {
- $rowspanvalue++;
- $CAD.="| Amended Freight Nooftrips : " . $beforeFreightNoofTriploc ." | Current Freight Nooftrips: " . $FreightNoofTriploc . " |
";
- }
-
-
-
- if($Freightrateloc != $beforeFreightrateloc)
- {
- $rowspanvalue++;
- $CAD.="| Amended Freight Rate : " . $beforeFreightrateloc ." | Current Freight Rate: " . $Freightrateloc . " |
";
- }
-
-
- if($FreightAmountloc != $beforeFreightAmountloc)
- {
- $rowspanvalue++;
- $CAD.="| Amended Freight Amount : " .$beforeFreightAmountloc ." | Current Freight Amount: " . $FreightAmountloc . " |
";
- }
-
-
- if(($Assable-$beforeAssable)!=0)
- {
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Assessable : ".$beforeAssable ." | Current CustomDuty:".$Assable." |
";
- }
-
-
-
- if(($Subtotal-$beforeSubtotal)!=0)
- {
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Subtotal : ".$beforeSubtotal ." | Current Subtotal:".$Subtotal." |
";
- }
-
-
-
- if(($Igst-$beforeIgst)!=0)
- {
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended IGST Percentage : ".$beforeIgst ." | Current IGST Percentage:".$Igst." |
";
- }
-
-
-
-
-
- }
- if($rowspanvalue>0)
- {
- $rowspanvalue++;
- $CAD2='';
- $CAD2=$CAD;
- $CAD='';
- $CAD="| ".$MaterialCode." |
";
- $CAD.=$CAD2;
- }
+ if(($Assable-$beforeAssable)!=0)
+ {
-
-
- $POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD,'Per'=>$Per,'ServiceMaterialDescription'=>$CapitalItemDescrition);
-
-
- $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
-
- $LineItemNo = '';
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Assessable : ".$beforeAssable ." | Revised CustomDuty:".$Assable." |
";
+ }
+
+ if(($Subtotal-$beforeSubtotal)!=0)
+ {
+
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Subtotal : ".$beforeSubtotal ." | Revised Subtotal:".$Subtotal." |
";
+ }
+
+ if(($Igst-$beforeIgst)!=0)
+ {
+
+ $rowspanvalue++;
+ $CAD=$CAD."| Current IGST Percentage : ".$beforeIgst ." | Revised IGST Percentage:".$Igst." |
";
+ }
+
+ }
+ if($rowspanvalue>0)
+ {
+ $rowspanvalue++;
+ $CAD2='';
+ $CAD2=$CAD;
+ $CAD='';
+ $CAD="| ".$MaterialCode." |
";
+ $CAD.=$CAD2;
+ }
+
+ $POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD,'Per'=>$Per,'ServiceMaterialDescription'=>$CapitalItemDescrition);
+ $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
+ $LineItemNo = '';
- foreach($POLineItem as $line):
+ foreach($POLineItem as $line):
$LineItemNo = $line['LineItemNo'];
- endforeach;
+ endforeach;
- if(trim($POType) == CAPITAL )
- {
- if($capitalType=='1'){
+ if(trim($POType) == CAPITAL )
+ {
+ if($capitalType=='1'){
$ServiceTaxList = array('LineItemNo'=>$LineItemNo, 'CGST'=>$CGST,'After_CGST'=>$CGSTvalue,'SGST'=>$SGST,'After_SGST'=>$SGSTvalue,'IGST'=>$IGST,'After_IGST'=>$IGSTvalue, 'otherallowance'=>$otherallowance,'TotalValue'=>$TotalServiceOrderValue,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'discount'=>$DiscountType,'discountval'=>$DiscountValue,'Afterdiscountval'=>$AfterDiscount,'FreightType'=>$FreightTypeloc,'NoOfTrip'=>$FreightNoofTriploc,'FreightValue'=>$Freightrateloc,'AfterFreightValue'=>$FreightAmountloc);
-
$ServiceTax = $this->purchaseorder_model->addServiceTax($ServiceTaxList);
- } //echo "Service";
- else if($capitalType=='0'){ //print_r($ServiceTax);
+ }
+ else if($capitalType=='0'){
$ImportTaxList = array('LineItemNo'=>$LineItemNo, 'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'Grossdutypayable'=>$Grossdutypayable,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem,'FreightType'=>$FreightType,'NoOfTrip'=>$NOOfTrip,'FreightValue'=>$FreightValue,'AfterFreightValue'=>$AfterFreightValue,'AssessableValue'=>$Assable,'SubTotal'=>$Subtotal,'IGST'=>$Igst,'AfterIGST'=>$AfterIgst,'DutyImpact'=>$DutyImpact,'NetValue'=>$NetValue,'ClearingCharge'=>$ClearingCharge);
-
-
$ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
- }
-
- }
-
-
-
- }
+ }
+ }
+
+ }
echo 'Purchase Order'.$PONO.'Amended Successfully! New PO Number Is: '.$NewPO ;
}
-
- function EditAmendImportPO()
+ /**
+ * To Store release import Po values after edit
+ */
+ function EditAmendImportPO()
{
-
-
- //echo 'dsds';
- //die();
- $MAD='';
+ $MAD='';
$PONO =$this->input->post('txtPONO');
- //echo $PONO;
$POdt = '';
$createddt='';
@@ -1243,14 +1074,13 @@ function UpdateAmendServicePurchaseOrder()
$Deliverydt = $this->getDateformat($dt);
$POType = $this->input->post('POType');
$PoRange = $this->input->post('txtPoRange');
- //$DeliveryOption = $this->input->post('DateRange');
+
$updatedBy = $this->session->userdata ( 'userId' );
-
$Exchangerate=$this->input->post('ExchangeRate');
$Edt=$this->input->post('Exchangerateon');
$ExchangeRateCalculatedon=$this->getDateformat($Edt);
- //$ExchangeRateCalculatedon=$this->input->post('Exchangerateon');
+
$CurrencyType=$this->input->post('currencytype');
$DeliveryOption = $this->input->post('DateRange');
@@ -1269,17 +1099,12 @@ function UpdateAmendServicePurchaseOrder()
$Dispatch = $this->input->post('Dispatch');
$DeliverySchedule = '';
}
-
-
-
$SpcialInstruction = $this->input->post('txtSpcialInstruction');
- // $TotalOrder = $this->input->post('txtTotalorderValue');
+
$TotalOrder = $this->input->post('txttot');
$AmendTotal=$this->input->post('txttotamend');
- $MAD.="Amended Total Order Value: :" . $AmendTotal ."
";
- //$beforeTotalOrder=$this->input->post()
- //echo "Total Order:".$TotalOrder;
+ $MAD.="Current Total Order Value: :" . $AmendTotal ."
";
$POStatus = $this->input->post('txtStatus');
$CreateBy = $this->session->userdata ( 'userId' );
@@ -1304,78 +1129,50 @@ function UpdateAmendServicePurchaseOrder()
$Insurance=$this->input->post('Insurance');
- if($Insurance=='YES')
- {
+ if($Insurance=='YES')
+ {
$Insurancenumber=$this->input->post('insurancenumber');
$insurestatus='1';
- }
- else
+ }
+ else
{
- $Insurancenumber='';
- $insurestatus='0';
+ $Insurancenumber='';
+ $insurestatus='0';
}
-
-
- $importoption=$this->input->post('Importoption');
-
+ $importoption=$this->input->post('Importoption');
if($PaymentTerms!=$beforePaymentTerms)
{
- //$MAD=$MAD."Amended Payment Terms:". $beforePaymentTerms ."";
- $MAD.="Amended Payment Terms " . $beforePaymentTerms."
";
+
+ $MAD.="Current Payment Terms " . $beforePaymentTerms."
";
}
- //$Payableat=$this->input->post('PayableAT');
+
$Palaceoforigin=$this->input->post('PlaceOforigin');
-
$beforePalaceoforigin=$this->input->post('beforePlaceOforigin');
if($Palaceoforigin!=$beforePalaceoforigin)
{
- //$MAD=$MAD."Amended Place of Origin:". $beforePalaceoforigin ."";
- $MAD.=$MAD."Amended Place of Origin: " . $beforePalaceoforigin."
";
+
+ $MAD.=$MAD."Current Place of Origin: " . $beforePalaceoforigin."
";
}
- //echo $MAD;
- //die();
-
-
-
- //echo $RowCount;
- // PO Master
- // PO Master
+
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'Import_PlaceofOrgin'=>$Palaceoforigin,'Mode_Of_Shipment'=>$Shipmentmode,'Supplier_Reference'=>$SupplierRef,'Supplier_Offer_No'=>$SupplierOffer,'Other_Reference'=>$otherRef,'Fincap'=>$finCap,'AmendedDetails'=>$MAD,'PaymentOtherDescription'=>$OtherPayment,'InsuranceStatus'=>$insurestatus,'InsuranceNumber'=>$Insurancenumber,'POSubType'=>$importoption);
- //print_r($POMaster);
- //die();
-
- // $POList = array('SupplierID'=>$Supp,lierID, 'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'POType'=>$POType,'Import_PlaceofOrgin'=>$Palaceoforigin);
-
-
- //print_r($POMaster);
-
- $LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$CreateBy,$PONO);
- $NewPO = '';
- if(count($LastPO)>0)
- {
+ $LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$CreateBy,$PONO);
+ $NewPO = '';
+ if(count($LastPO)>0)
+ {
$NewPO = $LastPO[0]['PONO'];
- }
-
- //echo $NewPO;
+ }
- $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
- // print_r($PODetail);
- $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
- // echo "Affected Rows:";
- // print_r($APO);
-
- $LineItemStatus = REQITEM_NEW;
-
-
+ $PODetail=array('Status'=>PO_AMENDED);//TO SET PARENT PO AS AMENDMENT STATUS
- //echo "Before Loop";
- for ($i = 1; $i <= $RowCount; $i++)
- {
- //echo "Inside Loop";
- // die();
+ $APO=$this->purchaseorder_model->updateAmendPOMaster($PONO,$PODetail);
+
+ $LineItemStatus = REQITEM_NEW;
+
+ for ($i = 1; $i <= $RowCount; $i++)
+ {
$CAD='';
$MaterialCode = $this->input->post('materialCode'.$i);
$Quantity = $this->input->post('quantity'.$i);
@@ -1385,68 +1182,45 @@ function UpdateAmendServicePurchaseOrder()
$Reqnumber = $this->input->post('Reqnumber'.$i);
$itemRate = $this->input->post('itemRate'.$i);
$beforeitemRate=$this->input->post('beforeitemRate'.$i);
- //$Exchangerate = $this->input->post('Exchangerate'.$i);
+
$BasicPriceinmton = $this->input->post('BasicPriceInMTon'.$i);
$Productprice = $this->input->post('ProductPrice'.$i);
$LandingCharge = $this->input->post('LandingCharge'.$i);
$beforeLandingCharge = $this->input->post('beforeLandingCharge'.$i);
- //echo $LandingCharge;
- //echo $beforeitemRate;
- // die();
-
$AfterLandingCharge = $this->input->post('AfterLandingCharge'.$i);
-
$CustomDuty = $this->input->post('CustomDuty'.$i);
$beforeCustomDuty=$this->input->post('beforeCustomDuty'.$i);
$AfterCustomDuty = $this->input->post('AfterCustomDuty'.$i);
-
-
$CustomEd= $this->input->post('CustomEdCess1'.$i);
$beforeCustomEd=$this->input->post('beforeCustomEdCess'.$i);
$AfterCustomEd= $this->input->post('AfterCustomEdCess1'.$i);
- // echo $CustomEd;
- // echo 're';
- // echo $AfterCustomEd;
-
$CustomSH = $this->input->post('CustomSHCess'.$i);
$beforeCustomSH=$this->input->post('beforeCustomSHCess'.$i);
$AfterCustomSH = $this->input->post('AfterCustomSHCess'.$i);
-
-
$Grossdutypayable = $this->input->post('Grossdutypayable1'.$i);
$beforeGrossdutypayable = $this->input->post('beforeGrossdutypayable'.$i);
- //echo $Grossdutypayable;
-
-
$Assable=$this->input->post('AssessableValue'.$i);
$beforeAssable=$this->input->post('beforeAssessableValue'.$i);
-
-
+
$Subtotal=$this->input->post('SubTotal'.$i);
$beforeSubtotal=$this->input->post('beforeSubTotal'.$i);
$Igst=$this->input->post('IGST'.$i);
$beforeIgst=$this->input->post('beforeIGST'.$i);
$AfterIgst=$this->input->post('AfterIGST'.$i);
-
-
- $CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
- $beforeCustomDutyExpensesPerKG = $this->input->post('beforeCustomDutyExpensesPerKG'.$i);
-
-
-
-
+ $CustomDutyExpensesPerKG = $this->input->post('CustomDutyExpensesPerKG'.$i);
+ $beforeCustomDutyExpensesPerKG = $this->input->post('beforeCustomDutyExpensesPerKG'.$i);
$FreightType=$this->input->post('FreightType'.$i);
$NoOfTrip=$this->input->post('NoOfTrip'.$i);
@@ -1455,32 +1229,18 @@ function UpdateAmendServicePurchaseOrder()
$per=$this->input->post('Per'.$i);
-
-
$beforeFreightType=$this->input->post('beforeFreightType'.$i);
$beforeNoOfTrip=$this->input->post('beforeNoOfTrip'.$i);
$beforeFreightrate=$this->input->post('beforeFreightValue'.$i);
$beforeFreightamount=$this->input->post('beforeAfterFreightValue'.$i);
$beforeper=$this->input->post('beforePer'.$i);
- // if($RMCIncludingCustomersPerKG-$beforeRMCIncludingCustomersPerKG )
- // {
- // $CAD="Amended RMC Including Customs".$beforeRMCIncludingCustomersPerKG ."";
- // }
-
- $QuantityKG = $this->input->post('QuantityKG'.$i);
-
- $ClearingCharge = $this->input->post('ClearingCharge'.$i);
-
- $NetValue = $this->input->post('NetValue'.$i);
-
- $DutyImpact=$this->input->post('DutyImpact'.$i);
-
-
+ $QuantityKG = $this->input->post('QuantityKG'.$i);
+ $ClearingCharge = $this->input->post('ClearingCharge'.$i);
+ $NetValue = $this->input->post('NetValue'.$i);
+ $DutyImpact=$this->input->post('DutyImpact'.$i);
$specialinstruction=$this->input->post('Addinstruction'.$i);
-
- //$POLineItemNo = $this->input->post('LineItemNo'.$i);
$CostCenter = $this->input->post('costCode'.$i);
$Totalvalueitem=$this->input->post('txtTotalorderValue');
@@ -1490,147 +1250,108 @@ function UpdateAmendServicePurchaseOrder()
if(($itemRate-$beforeitemRate)!=0)
{
- $rowspanvalue++;
- //$CAD="Amended Quantity :".$beforeQuantity ."";
- $CAD=$CAD."| Amended Rate : ".$beforeitemRate ." | Current Rate:".$itemRate." |
";
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Rate : ".$beforeitemRate ." | Revised Rate:".$itemRate." |
";
}
if(($Quantity-$beforeQuantity)!=0)
{
- $rowspanvalue++;
- //$CAD="Amended Quantity :".$beforeQuantity ."";
- $CAD=$CAD."| Amended Quantity : ".$beforeQuantity ." | Current Quantity:".$Quantity." |
";
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Quantity : ".$beforeQuantity ." | Revised Quantity:".$Quantity." |
";
}
if(($LandingCharge-$beforeLandingCharge)!=0)
{
- //$CAD=$CAD."Amended Landing :".$beforeLandingCharge ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Landing percentage : ".$beforeLandingCharge ." | Current Landing Percentage:".$LandingCharge." |
";
+
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Landing percentage : ".$beforeLandingCharge ." | Revised Landing Percentage:".$LandingCharge." |
";
}
-
-
-
if(($CustomDuty-$beforeCustomDuty)!=0)
{
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended CustomDuty : ".$beforeCustomDuty ." | Current CustomDuty:".$CustomDuty." |
";
+
+ $rowspanvalue++;
+ $CAD=$CAD."| Current CustomDuty : ".$beforeCustomDuty ." | Revised CustomDuty:".$CustomDuty." |
";
}
-
if($CustomEd-$beforeCustomEd)
{
$rowspanvalue++;
- //$CAD=$CAD."Amended CustomEd :".$beforeCustomEd ."";
- $CAD=$CAD."| Amended CustomEd : ".$beforeCustomEd ." | Current CustomEd:".$CustomEd." |
";
-
+ $CAD=$CAD."| Current CustomEd : ".$beforeCustomEd ." | Revised CustomEd:".$CustomEd." |
";
}
if($CustomSH-$beforeCustomSH)
{
$rowspanvalue++;
- //$CAD=$CAD."Amended CustomSH :".$beforeCustomSH ."";
- $CAD=$CAD."| Amended CustomSH : ".$beforeCustomSH ." | Current CustomSH:".$CustomSH." |
";
-
+ $CAD=$CAD."| Current CustomSH : ".$beforeCustomSH ." | Revised CustomSH:".$CustomSH." |
";
}
-
-
-
if($FreightType!=$beforeFreightType)
{
- //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Freight Type: ".$beforeFreightType ." | Current Freight Type:".$FreightType." |
";
- }
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Freight Type: ".$beforeFreightType ." | Revised Freight Type:".$FreightType." |
";
+ }
if($NoOfTrip-$beforeNoOfTrip)
{
- //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."";
+
$rowspanvalue++;
- $CAD=$CAD."| Amended No of Trip: ".$beforeNoOfTrip ." | Current Additional Excise duty:".$NoOfTrip." |
";
+ $CAD=$CAD."| Current No of Trip: ".$beforeNoOfTrip ." | Revised Additional Excise duty:".$NoOfTrip." |
";
}
-
-
if($Freightrate-$beforeFreightrate)
{
- //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Freightrate: ".$beforeFreightrate ." | Current Freightrate:".$Freightrate." |
";
- }
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Freightrate: ".$beforeFreightrate ." | Revised Freightrate:".$Freightrate." |
";
+ }
if($Freightamount-$beforeFreightamount)
{
- //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."";
+
$rowspanvalue++;
- $CAD=$CAD."| Amended Freight Amount: ".$beforeFreightamount ." | Current Freight Amount:".$Freightamount." |
";
+ $CAD=$CAD."| Current Freight Amount: ".$beforeFreightamount ." | Revised Freight Amount:".$Freightamount." |
";
}
if($per!=$beforeper)
{
- //$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."";
$rowspanvalue++;
- $CAD=$CAD."| Amended Per Value: ".$beforeper ." | Current Per Value:".$per." |
";
+ $CAD=$CAD."| Current Per Value: ".$beforeper ." | Revised Per Value:".$per." |
";
}
-
-
-
-
if(($Assable-$beforeAssable)!=0)
{
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Assessable : ".$beforeAssable ." | Current CustomDuty:".$Assable." |
";
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Assessable : ".$beforeAssable ." | Revised CustomDuty:".$Assable." |
";
}
-
-
if(($Subtotal-$beforeSubtotal)!=0)
{
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Subtotal : ".$beforeSubtotal ." | Current Subtotal:".$Subtotal." |
";
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Subtotal : ".$beforeSubtotal ." | Revised Subtotal:".$Subtotal." |
";
}
-
-
if(($Igst-$beforeIgst)!=0)
{
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended IGST Percentage : ".$beforeIgst ." | Current IGST Percentage:".$Igst." |
";
+ $rowspanvalue++;
+ $CAD=$CAD."| Current IGST Percentage : ".$beforeIgst ." | Revised IGST Percentage:".$Igst." |
";
}
-
-
if(($Grossdutypayable-$beforeGrossdutypayable)!=0)
{
- //$CAD=$CAD."Amended CustomDuty :".$beforeCustomDuty ."";
- $rowspanvalue++;
- $CAD=$CAD."| Amended Gross Duty Payable : ".$beforeGrossdutypayable ." | Current Gross Duty Payable:".$Grossdutypayable." |
";
+ $rowspanvalue++;
+ $CAD=$CAD."| Current Gross Duty Payable : ".$beforeGrossdutypayable ." | Revised Gross Duty Payable:".$Grossdutypayable." |
";
}
-
-
-
-
-
-
if($rowspanvalue>0)
{
- $rowspanvalue++;
-
+ $rowspanvalue++;
$CAD2='';
$CAD2=$CAD;
$CAD='';
@@ -1638,43 +1359,31 @@ function UpdateAmendServicePurchaseOrder()
$CAD.=$CAD2;
}
-
-
-
-
-
+ $POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD,'Per'=>$per,'ServiceMaterialDescription'=>$specialinstruction);
- $POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD,'Per'=>$per,'ServiceMaterialDescription'=>$specialinstruction);
- //print_r($POLineItemList);
+ $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
- $POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
-
- if(count($POLineItem)>0)
- {
+ if(count($POLineItem)>0)
+ {
$LineItemNo = $POLineItem[0]['LineItemNo'];
- }
- // foreach($POLineItem as $line):
- // $LineItemNo = $line['LineItemNo'];
- // endforeach;
+ }
-
- $ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'Grossdutypayable'=>$Grossdutypayable,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem,'FreightType'=>$FreightType,'NoOfTrip'=>$NoOfTrip,'FreightValue'=>$Freightrate,'AfterFreightValue'=>$Freightamount,'AssessableValue'=>$Assable,'SubTotal'=>$Subtotal,'IGST'=>$Igst,'AfterIGST'=>$AfterIgst,'DutyImpact'=>$DutyImpact,'NetValue'=>$NetValue,'ClearingCharge'=>$ClearingCharge);
- // print_r($ImportTaxList);
- //die();
- $ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
+ $ImportTaxList = array('LineItemNo'=>$LineItemNo,'BasicPriceInMTon'=>$BasicPriceinmton,'ProductPrice'=>$Productprice,'LandingCharge'=>$LandingCharge,'AfterLandingCharge'=>$AfterLandingCharge,'CustomDuty'=>$CustomDuty,'AfterCustomDuty'=>$AfterCustomDuty,'CustomEdCess'=>$CustomEd,'CustomSHCess'=>$CustomSH,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'Grossdutypayable'=>$Grossdutypayable,'CustomDutyExpensesPerKG'=>$CustomDutyExpensesPerKG,'QuantityKG'=>$QuantityKG,'AfterCustomSHCess'=>$AfterCustomSH,'AfterCustomEdCess'=>$AfterCustomEd,'TotalValue'=>$Totalvalueitem,'FreightType'=>$FreightType,'NoOfTrip'=>$NoOfTrip,'FreightValue'=>$Freightrate,'AfterFreightValue'=>$Freightamount,'AssessableValue'=>$Assable,'SubTotal'=>$Subtotal,'IGST'=>$Igst,'AfterIGST'=>$AfterIgst,'DutyImpact'=>$DutyImpact,'NetValue'=>$NetValue,'ClearingCharge'=>$ClearingCharge);
+ $ImportList = $this->purchaseorder_model->addImportTax($ImportTaxList);
-
}
- echo 'Purchase Order is'.$PONO.'Amended Successfully! New PO Number is: '.$NewPO ; }
+ echo 'Purchase Order is'.$PONO.'Amended Successfully! New PO Number is: '.$NewPO ;
+ }
-
-
- function getDateformat($Val)
+ /**
+ * To convert the dateformat (date with time) and store to DB
+ */
+ function getDateformat($Val)
{
- $date = new DateTime($Val,new DateTimeZone('Asia/Kolkata'));
- $retDate = $date->format('Y-m-d H:i:s');
- return $retDate;
+ $date = new DateTime($Val,new DateTimeZone('Asia/Kolkata'));
+ $retDate = $date->format('Y-m-d H:i:s');
+ return $retDate;
}
}
diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php
index 2cbe2450..c7abcbc5 100755
--- a/application/controllers/purchaseorder.php
+++ b/application/controllers/purchaseorder.php
@@ -1267,11 +1267,12 @@ class purchaseorder extends BaseController
$PoStatus='';
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformationforPDF();
- $data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
+ $data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
$data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO);
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
+ $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
$data['reveuetax']=$this->purchaseorder_model->getRevenueTaxinforforpdf($PONO);
+ $data['AmendmentPDF'] = $this->purchaseorder_model->amendpdf($PONO);
$Currencycode='';
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
@@ -1368,11 +1369,11 @@ $AdvanceAmount=0.00;
// $this->load->view('includes/pdfheader');
// Load the pdf page with multiviews
- $PoStatus='';
+ $PoStatus='';
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformationforPDF();
- $data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
+ $data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
$data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetailsForpdf($PONO);
-
+ $data['AmendmentPDF'] = $this->purchaseorder_model->amendpdf($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$data['serviceTaxList'] = $this->purchaseorder_model->GetServiceTaxDetails($PONO);
@@ -1487,7 +1488,7 @@ public function importpoprint($PONO)
$data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
$data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetailsForPDF($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
-
+ $data['AmendmentPDF'] = $this->purchaseorder_model->amendpdf($PONO);
$data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
//print_r( $data['RequistionDetails']);
foreach ($data['POItem'] as $Reqdby)
@@ -2846,7 +2847,7 @@ function addNewImportPurchaseOrder()
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformationforPDF();
$data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
$data['POItem'] = $this->purchaseorder_model->GetCapitalPurchaseOrderDetailsForPDF($PONO);
-
+ $data['AmendmentPDF'] = $this->purchaseorder_model->amendpdf($PONO);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$CurrencyType='';
diff --git a/application/logs/log-2018-01-02.php b/application/logs/log-2018-01-02.php
new file mode 100644
index 00000000..b7db7e6b
--- /dev/null
+++ b/application/logs/log-2018-01-02.php
@@ -0,0 +1,576 @@
+
+
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+
+
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:41 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:42 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:43 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:44 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:45 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:46 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:47 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:48 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:49 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:50 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:51 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:52 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:53 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:54 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:56 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 314
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 315
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 316
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:50:57 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\siddharth_application\application\controllers\user.php 317
+ERROR - 2018-01-02 13:51:19 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38
+ERROR - 2018-01-02 13:51:31 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\classes\grad.php 3
+ERROR - 2018-01-02 13:51:31 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\classes\mpdfform.php 3
+ERROR - 2018-01-02 13:51:31 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\classes\cssmgr.php 3
+ERROR - 2018-01-02 13:51:31 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\classes\otl.php 12
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:32 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-01-02 13:51:33 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\siddharth_application\application\third_party\mpdf\classes\ttfontsuni.php 51
diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php
index 32f7f632..b565969b 100755
--- a/application/models/purchaseorder_model.php
+++ b/application/models/purchaseorder_model.php
@@ -1742,4 +1742,18 @@ function GetRequistionMasterUsingReqNo($Req){
}
+function amendpdf($PONO='')
+{
+ $Amend ='select p.PONO,p.ParentPO,p.Status,p.TotalOrderValue,
+ m.Status as parentpostatus,
+ m.TotalOrderValue as partenttotalorder
+ from T_PurchaseOrder_Master as p
+ join T_PurchaseOrder_Master as m
+ on m.PONO = p.ParentPO
+ where p.PONO = ?';
+ $amendment = $this->db->query($Amend,array($PONO));
+
+ return $amendment->result();
+}
+
}
diff --git a/application/views/Report_purchase.php b/application/views/Report_purchase.php
index 0360331e..78725f21 100755
--- a/application/views/Report_purchase.php
+++ b/application/views/Report_purchase.php
@@ -466,7 +466,7 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- //messageTop: $('h3').text(),
+ messageTop: 'Report Purchase',
title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/Report_purchase_inward.php b/application/views/Report_purchase_inward.php
index c3649bc2..b5bcdaa5 100755
--- a/application/views/Report_purchase_inward.php
+++ b/application/views/Report_purchase_inward.php
@@ -489,7 +489,7 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- //messageTop: $('h3').text(),
+ messageTop: 'Report Purchase-Inward',
title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbookall.php b/application/views/cashbookall.php
index a7344a24..48186804 100755
--- a/application/views/cashbookall.php
+++ b/application/views/cashbookall.php
@@ -267,8 +267,8 @@ if(!empty($depmenu))
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: 'cashbook Overall Report',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbookmonthlydep.php b/application/views/cashbookmonthlydep.php
index 25ddaf3d..458ad378 100755
--- a/application/views/cashbookmonthlydep.php
+++ b/application/views/cashbookmonthlydep.php
@@ -185,8 +185,8 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: 'PARTICULAR DEPARTMENT CASHBOOK REPORT',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbookmonthlyexp.php b/application/views/cashbookmonthlyexp.php
index b289d659..4c681bca 100755
--- a/application/views/cashbookmonthlyexp.php
+++ b/application/views/cashbookmonthlyexp.php
@@ -190,8 +190,8 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: 'PARTICULAR DEPARTMENT CASHBOOK REPORT',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbookmonthlyexpenses.php b/application/views/cashbookmonthlyexpenses.php
index 42b1171c..9b7f43f5 100755
--- a/application/views/cashbookmonthlyexpenses.php
+++ b/application/views/cashbookmonthlyexpenses.php
@@ -184,8 +184,8 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: ' DEPARTMENT WISE CASHBOOK REPORT',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbooktoday.php b/application/views/cashbooktoday.php
index ce399d23..017bf681 100755
--- a/application/views/cashbooktoday.php
+++ b/application/views/cashbooktoday.php
@@ -169,8 +169,8 @@ if(!empty($Indiancurrency))
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: 'DEPARTMENT WISE CASHBOOK REPORT',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbookyearlyexpenses.php b/application/views/cashbookyearlyexpenses.php
index 126c965a..65b45460 100755
--- a/application/views/cashbookyearlyexpenses.php
+++ b/application/views/cashbookyearlyexpenses.php
@@ -194,8 +194,8 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: 'CASHBOOK REPORT- YEAR(2017-2018)',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/cashbookyearmonthwise.php b/application/views/cashbookyearmonthwise.php
index 3a50b78c..a22ca8e3 100755
--- a/application/views/cashbookyearmonthwise.php
+++ b/application/views/cashbookyearmonthwise.php
@@ -155,8 +155,8 @@ $(document).ready(function() {
{
extend: 'excelHtml5',
footer: 'true',
- messageTop: $('h3').text(),
- title: 'DEPARTMENT WISE CASHBOOK REPORT',
+ //messageTop: $('h3').text(),
+ title: $('h3').text(),
exportOptions: {
columns: ':visible'
diff --git a/application/views/includes/pdfheader.php b/application/views/includes/pdfheader.php
index 04771d6b..cd871f31 100755
--- a/application/views/includes/pdfheader.php
+++ b/application/views/includes/pdfheader.php
@@ -150,7 +150,12 @@
|
- PURCHASE ORDER
+ parentpostatus == 'ST030') { ?>
+ AMENDMENT PURCHASE ORDER
+
+ PURCHASE ORDER
+
+
|
diff --git a/application/views/monthlypayinputs.php b/application/views/monthlypayinputs.php
index 5dd3efcc..b3615607 100755
--- a/application/views/monthlypayinputs.php
+++ b/application/views/monthlypayinputs.php
@@ -211,7 +211,7 @@ $('html').bind('keypress', function(e)