From 641877ce7ad673a8e042b6ab5807008d69010298 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 12 Jun 2018 09:00:11 +0000 Subject: [PATCH] file --- .../controllers/emergencypurchaseorder.php | 31 ++++--------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/application/controllers/emergencypurchaseorder.php b/application/controllers/emergencypurchaseorder.php index cc528142..7becbf9f 100755 --- a/application/controllers/emergencypurchaseorder.php +++ b/application/controllers/emergencypurchaseorder.php @@ -972,7 +972,7 @@ $RequestedBy = $this->input->post('drpDepartment'); // $emergencyitemcode = $this->input->post('emergencyitemcode'.$i); // ($this->input->post('materialCode'.$i)); - +} $counts = $this->input->post('hidecounter'); $constants = $this->input->post('hideconstant'); @@ -1019,46 +1019,27 @@ $RequestedBy = $this->input->post('drpDepartment'); } } } - //$myfile = array('FilePath'=>$filename); - //$emergencyitemcode = $this->input->post('materialCode'.$i); + $myfile = array('FilePath'=>$filename,'PONO'=>$PONO,'IGRNO'=>$IGRNO); - // print_r($myfile); + $this->purchaseorder_model->fileupload($myfile); - //addfiledetails($addfilelist); -//print_r($myfile); + } - - - - -} - // $file =$this->addfile(); - // $emergencyitemcode = $this->input->post('materialCode'.$i); - // $myfile = array('FilePath'=>$file,'MaterialCode'=>$emergencyitemcode,'PONO'=>$PONO,'IGRNO'=>$IGRNO); - // $result= $this->purchaseorder_model->fileupload($myfile); - - - // if($ItemStatus = SPECIAL_PO){ - + } - } - - // } - //if($result > 0) - // { echo ""; redirect('purchaseorder/PurchaseOrderList','refresh'); - // } + }