From 874b229c65be7114d84f27275ee448610482d86c Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Sat, 9 Jun 2018 11:54:01 +0530 Subject: [PATCH] emergency controller changes --- .../controllers/emergencypurchaseorder.php | 25 +++---------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/application/controllers/emergencypurchaseorder.php b/application/controllers/emergencypurchaseorder.php index a27d679a..0c48f2bf 100755 --- a/application/controllers/emergencypurchaseorder.php +++ b/application/controllers/emergencypurchaseorder.php @@ -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');