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'); - // } + }