emergency controller changes

This commit is contained in:
venbatechnologies@gmail.com 2018-06-09 11:54:01 +05:30
parent 0505148606
commit 874b229c65

View File

@ -450,19 +450,8 @@ function add($pathname)
{
$LineItemNo = $POLineItem[0]['LineItemNo'];
}
/*----------------------------*/
// $logpo =array('PONO'=>$PONO,'Date'=>$PODate,'POType'=>$POType,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'SupplierID'=>$SupplierID,'LineItemNos'=>$LineItemNo);
// $this->purchaseorder_model->newlogpo($logpo);
/*----------------------------*/
if(trim($POType) == SERVICE )
{
// echo 'Success';
$ServiceTaxList = array('LineItemNo'=>$LineItemNo, 'CGST'=>$Cgst,'After_CGST'=>$AfterCgst,'SGST'=>$Sgst,'After_SGST'=>$AfterSgst,'IGST'=>$Igst,'After_IGST'=>$AfterIgst,'otherallowance'=>$OtherAmt,'TotalValue'=>$TotalOrderValue, 'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt);
@ -492,11 +481,11 @@ function add($pathname)
$Picture = $this->add($pathname);
//echo $Picture;
$arr[] = array($Picture);
}
}
//print_r($arr);
foreach($arr as $ma){
@ -508,17 +497,11 @@ function add($pathname)
}
}
$myfile = array('FilePath'=>$filename);
$myfile = array('FilePath'=>$filename,'PONO'=>$PONO);
$myfile = array('FilePath'=>$filename,'PONO'=>$PONO);
$this->purchaseorder_model->fileupload($myfile);
//addfiledetails($addfilelist);
//print_r($myfile);
}
/**/
// $myfile = array('FilePath'=>$file,'PONO'=>$PONO); //'MaterialCode'=>$MaterialCode,
// $result= $this->purchaseorder_model->fileupload($myfile);
}
@ -553,7 +536,7 @@ $myfile = array('FilePath'=>$filename,'PONO'=>$PONO);
$txtspl=$this->input->post('txtSpecial');
//echo "Emergency Revenue PO";
$POdt =$this->input->post('PODate');
$PODate = $this->getDateformat($POdt);
$SupplierID = $this->input->post('drpSupplier');