diff --git a/application/config/constants.php b/application/config/constants.php
index 55fa4a13..caec1e47 100755
--- a/application/config/constants.php
+++ b/application/config/constants.php
@@ -95,6 +95,22 @@ define('PO_RELEASED', 'ST026');
define('PO_AWAITING_RELEASE', 'ST025');
define('PO_APPROVED', 'ST025');
+/*store Status*/
+
+define('STORE_DRAFT', 'ST014');
+define('STORE_CREATED', 'ST015');
+
+/*store requisition*/
+define('STORE REQUISTION STATUS', '6');
+define('STORE_OPEN', 'ST034');
+define('STORE_PENDINGAPPROVAL', 'ST035');
+define('STORE_APPROVAL', 'ST036');
+define('STORE_ISSUSED', 'ST037');
+define('STORE_ONHOLD', 'ST038');
+define('STORE_REJECT', 'ST039');
+
+
+
/* Department Code */
define('ADMIN', 'DEP01');
diff --git a/application/controllers/storerequisition.php b/application/controllers/storerequisition.php
new file mode 100644
index 00000000..37d43f32
--- /dev/null
+++ b/application/controllers/storerequisition.php
@@ -0,0 +1,67 @@
+load->model('monthlypay_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
+ */
+ public function index()
+ {
+ //$this->global['pageTitle'] = 'Siddharth : storesrequisitionslip';
+
+ //$this->loadviews('storesrequisitionslip',$this->global);
+ }
+
+ function addstorerequisitionslip()
+ {
+ $this->global['pageTitle'] = 'Siddharth : Add Store Requisition';
+
+ $this->loadviews('addstorerequisitionslip',$this->global);
+ }
+ function storerequisitionlist()
+ {
+ $this->global['pageTitle'] = 'Siddharth : Store Requisition List';
+
+ $this->loadviews('storerequisitionlist',$this->global);
+ }
+ function storerequisitionlisting()
+ {
+ $this->global['pageTitle'] = 'Siddharth : Store Requisition Listing';
+
+ $this->loadviews('storerequisitionlisting',$this->global);
+ }
+ function approvalstorerequisition()
+ {
+ $this->global['pageTitle'] = 'Siddharth : Approval Store Requisition';
+
+ $this->loadviews('approvalstorerequisitionslip',$this->global);
+ }
+ function pageNotFound()
+ {
+ $this->global['pageTitle'] = 'Siddharth : 404 - Page Not Found';
+
+ $this->loadViews("404", $this->global, NULL, NULL);
+ }
+}
\ No newline at end of file
diff --git a/application/controllers/storerequisitionlist.php b/application/controllers/storerequisitionlist.php
new file mode 100644
index 00000000..d9a5cb35
--- /dev/null
+++ b/application/controllers/storerequisitionlist.php
@@ -0,0 +1,489 @@
+load->model('storerequistion_model');
+
+ $this->load->library('session');
+ $this->load->library('form_validation');
+
+ $this->isLoggedIn();
+ }
+
+
+/*ADD Store requisition line item
+*/
+ function addstores($userId='',$MaterialCode='')
+
+ {
+
+ $this->global['pageTitle'] = 'Siddharth : StoreRequisition Listing';
+ $this->load->model('storerequistion_model');
+ $userId= $this->session->userdata ('userId');
+ $data['DEPCode'] = $this->session->userdata('DEPCode');
+ $data['DepName'] = $this->session->userdata('DepartmentName');
+ //print_r($data['cost']);
+ $data['cost'] = $this->storerequistion_model->getCostUser($userId);
+ $data['MaterialList'] = $this->storerequistion_model->getRawMaterialList($MaterialCode);
+ //$data['Store'] = $this->storerequistion_model->Storeall($userId);
+
+
+ $this->loadViews("addstorerequisitionslip", $this->global,$data,null);
+ }
+
+
+ function addstore()
+ {
+
+ $this->global['pageTitle'] = 'Siddharth : StoreRequisition Listing';
+
+ //$this->load->model('storerequistion_model');
+ $userId= $this->session->userdata ('userId');
+ $data['Store'] = $this->storerequistion_model->Storeall($userId);
+ //print_r($data['Store']);
+ //echo "Check point form con";
+ $this->loadViews("storerequisition", $this->global,$data,null);
+ }
+
+ /**
+ * This function used to load the Delete the StoreRequistion Items
+ */
+ function DeleteReqNo()
+ {
+
+ $StoreReqNo= $this->input->post('id');
+ $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
+ $updateddt = $dt->format('Y-m-d H:i:s');
+ $Request = array('Status'=>REQ_DELETED,'updatedOn'=>$updateddt);
+
+ $this->storerequistion_model->UpdateRequistion($StoreReqNo,$Request);
+
+ echo "Successfully Deleted the ".$StoreReqNo;
+
+ }
+
+/* The Function Edit Store Requistion list */
+ function EditStoreRequistion($MaterialCode='')
+ {
+ $StoreReqNo = $_GET['StoreReqNo'];
+
+ //$StoreReqNo= $this->input->post('id');
+ $this->global['pageTitle'] = 'Siddharth : StoreRequisition Listing';
+ $this->load->model('storerequistion_model');
+ $data['cost'] = $this->storerequistion_model->editRequistDetails($StoreReqNo);
+ // print_r( $data);
+ $data['MaterialList'] = $this->storerequistion_model->getRawMaterialList($MaterialCode);
+
+ $data['DepName'] = $this->session->userdata('DepartmentName');
+ $data['LineItem']=$this ->storerequistion_model->editstorerequistions($StoreReqNo);
+ // $data['StoreReqNO'] = $StoreReqNo ;
+ //print_r($data['LineItem']);
+ $this->loadViews("editstorerequisition", $this->global,$data,null);
+ }
+
+
+
+
+
+ /**get the date formatted**/
+
+ function getDateformat($Val)
+ {
+ $date = new DateTime($Val);
+ $retDate = $date->format('Y-m-d H:i:s');
+ return $retDate;
+ }
+
+
+ /**This function is used to add new StoreRequestion to the system */
+
+ function addNewRequistion()
+ {
+ $Status= $_GET['ID'];
+ $Requestedby = $_GET['RequestedBy'];
+ $CostCenter = $_GET['CostCenter'];
+ $DEPCode = $_GET['DEPCode'];
+ $CreateBy = $this->session->userdata ( 'userId' );
+ $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
+ $createddt = $dt->format('Y-m-d H:i:s');
+ $DeletedRow = $this->input->post('txtDeletedRow');
+ $RowCount = $_GET['txtRowCount'];
+ //echo $RowCount; die();
+ $comma_separated = explode(':', $DeletedRow);
+ $IsExists = $this->storerequistion_model->RequistionIsExists($Requestedby);
+
+ if(count( $IsExists) == 0)
+ {
+ $Request = array( 'Requestedby'=>$Requestedby,'DepartmentCode'=>$DEPCode,'ReqDate'=>$createddt,'CostCenterCode'=>$CostCenter,'Status'=>$Status,'CreatedDate'=>$createddt,'CreatedBy'=>$CreateBy);
+ //print_r($Request);
+ $Req = $this->storerequistion_model->addRequistion($Request);
+
+ foreach ($Req[0] as $value)
+ {
+ $StoreReqNo = $value;
+
+ }
+ //echo $StoreReqNo;
+
+ }
+ else
+ {
+ $Request = array('Requestedby'=>$Requestedby,'DepartmentCode'=>$DEPCode,'ReqDate'=>$createddt,'Status'=>$Status,'CreatedDate'=>$createddt,'CreatedBy'=>$CreateBy,'CostCenterCode'=>$CostCenter);
+
+ $UpdateReq = $this->storerequistion_model->UpdateRequistion($Request,$IsExists[0]['StoreReqNo']);
+ }
+
+ $ReqNumber = '';
+ //print_r($RowCount);die();
+ if(count($Req)>0)
+ {
+ $ReqNumber = $Req[0]['StoreReqNo'];
+ //printf_r($ReqNumber);
+ }
+ else
+ {
+ $ReqNumber = $IsExists[0]['StoreReqNo'];
+ }
+
+ $SkipInsert = False;
+
+ for ($i = 1; $i <= $RowCount; $i++)
+ {
+ $MaterialCode = $this->input->post('MaterialCode'.$i);
+ $QuantityRequired=$this->input->post('Quantity'.$i);
+ $Remarks=$this->input->post('Remarks'.$i);
+ $Request = array('MaterialCode'=>$MaterialCode,'Status'=>$Status,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'StoreReqNo'=>$value);
+
+ $addReq=$this->storerequistion_model->addstoreRequistion($Request);
+
+
+ $SkipInsert = "False";
+ if( count($comma_separated) > 0)
+ {
+
+ for($j = 1; $j < count($comma_separated); $j++)
+ {
+ $deletedRow = $comma_separated[$j] ;
+
+ if($deletedRow == $i )
+ {
+
+ $SkipInsert = "True";
+ break;
+ }
+
+ }
+ }
+
+ }
+
+
+ if($Status == STORE_DRAFT)
+ {
+ echo 'Successfully Saved the Store Requistion details';
+ }
+ else
+ {
+ echo 'Successfully Created the Store Requistion details';
+ }
+
+ }
+
+
+
+ function addstorerequisitionlist()
+ {
+ $this->global['pageTitle'] = 'Siddharth : StoreRequisition Listing';
+ $this->load->model('storerequistion_model');
+
+ $data['Status']= $this->storerequistion_model->getStatus();
+ $data['TotNoOfLine']=$this->storerequistion_model->getRequistionList();
+ //print_r($data['TotNoOfLine']);
+ $this->loadViews("storerequisitionlisting", $this->global,$data,null);
+
+
+ }
+/* this function use to search StoreRequistlist*/
+ function SearchRequistLists()
+ {
+ $userID = $this->session->userdata ( 'userId' );
+ $ReqValue = $this->input->post('SearchDate');
+
+ $Dt = explode("-",$ReqValue);
+
+ $FromDate ='';
+ $ToDate = '';
+ $Status= '';
+ if(count( $Dt)>1)
+ {
+ $FDate = $Dt[0]."-".$Dt[1]."-".$Dt[2];
+ $TDate = $Dt[3]."-".$Dt[4]."-".$Dt[5];
+ $FromDate = $this->getDateformat($FDate);
+ $ToDate = $this->getDateformat($TDate);
+ }
+
+ $St = $this->input->post('STORE REQUISTION STATUS');
+
+
+ if($St == "-1")
+ {
+ $Status = '';
+ }
+ else
+ {
+ $Status = $St;
+ }
+
+ $data['AppList'] = $this->storerequistion_model->getApproverRequistList($userID,$Status,$FromDate, $ToDate);
+
+ $this->global['pageTitle'] = 'Siddharth : ApprovalStoreRequisitionSlip';
+ $data['Status']= $this->storerequistion_model->getStatus();
+
+ $this->loadViews("approvalstorerequisitionslip", $this->global, $data, NULL);
+
+ }
+
+ /*Approve Completed*/
+ function ApproveRequest()
+ {
+ $Status= Trim($_GET['Status']);
+
+ //$StoreReqNo=$this->input->post('StoreReqNo');
+ $StoreReqNo = trim($this->input->post('id'));
+ $Remarks=trim($this->input->post('newcomments'));
+ $ApprovedBy = $this->session->userdata ( 'userId' );
+ $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
+ $ApprovedDate = $dt->format('Y-m-d H:i:s');
+ $Request = array('Status'=>$Status,'Comments'=>$Remarks,'ApprovedOn'=>$ApprovedDate,'Approvedby'=>$ApprovedBy);
+ $this->storerequistion_model->UpdateRequistion($StoreReqNo,$Request);
+ echo "Successfully Updated the Requistion No: ".$StoreReqNo;
+
+ }
+
+
+
+ /**
+ * This function used to load the first screen of the Requistion List Approval Screen
+ */
+ function requisitionlistApproval()
+ {
+ $this->global['pageTitle'] = 'Siddharth :Approvalstorerequisitionlist';
+
+ //$data['Status']= $this->storerequistion_model->getStatus();
+
+ $userID = $this->session->userdata ( 'userId' );
+
+ $data['AppList'] = $this->storerequistion_model->getApproverRequistList($userID);
+
+
+
+ $this->loadViews("requisitionlistapproval", $this->global, $data, NULL);
+ }
+
+ /* To Edit the view store request*/
+ function ViewRequest()
+ {
+
+
+ $StoreReqNo= $this->input->post('id');
+ $result = $this->storerequistion_model->getRequistItemList($StoreReqNo);
+ $ReqList = $this->storerequistion_model->getRequistDetails($StoreReqNo);
+ $DepNo = $ReqList[0]['DepartmentName'];
+ //$CostList = $this->requistion_model->GetCostCenterByDept($DepNo);
+ $HTML="";
+ for ($i = 0; $i < count($result); $i++)
+ {
+ $SNo = $i + 1;
+ $MaterialCode = $result[$i]['MaterialCode'];
+ $MaterialName = $result[$i]['MaterialName'];
+ $UOM = $result[$i]['UOM'];
+ $Quantity = $result[$i]['QuantityRequired'];
+ $Remarks= $result[$i]['Remarks'];
+ $HTML.="
+ | ".$SNo." |
+ ".$MaterialCode." |
+ ".$MaterialName." |
+ ".$UOM." |
+ ".$Quantity." |
+ ".$Remarks." |
+
+
";
+
+ //$index = $index + 1;
+
+ }
+ $CostCode = '';
+ $ReqType = '';
+ $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
+ $Year = $dt->format('Y');
+ if(count($ReqList)>0)
+ {
+
+ $ReqType = $ReqList[0]['Requestedby'];
+
+ $CostCode = $ReqList[0]['CostCenterName'];
+ //$AvlBudget=$ReqList[0]['CostCenterName'];
+ }
+
+ $AvlBudget = $this->storerequistion_model->GetAvailableBudgetAmount($CostCode,$Year,$ReqType);
+ //print_r($result);
+ $AvilBudAmt = '0';
+ if(count($AvlBudget)>0)
+ {
+ $AvilBudAmt = $AvlBudget[0]['BudgetAmount'] - $AvlBudget[0]['Totalvalue'];
+ }
+ //echo $AvilBudAmt;
+ die(json_encode(array('Items' =>$HTML,'Requist'=>$ReqList,'AvilBudAmount'=>number_format($AvilBudAmt,2))));
+ }
+
+
+//not completed
+ function EditStoreRequisitions()
+ {
+ $StoreReqNo =$this->input->post('txtReqNo');
+ // echo $StoreReqNo;
+ $Status = $this->input->post('txtStatus');
+ $Requestedby = $this->input->post('RequestedBy');
+ $CostCenter = $this->input->post('CostCenter');
+ //echo $CostCenter;
+ $UpdatedBy = $this->session->userdata ('userId' );
+ //$ReqDate=$this->input->post('Date')
+ $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
+ $updatedDate = $dt->format('Y-m-d H:i:s');
+ $DEPCode = $_GET['DEPCode'];
+ $DeletedRow = $this->input->post('txtDeletedRow');
+
+ $RowCount = $this->input->post('txtRowCount');
+ //print_r($RowCount); die();
+ $comma_separated = explode(':', $DeletedRow);
+
+
+
+ if(strlen($Status) >1)
+ {
+
+ $Request = array('Requestedby'=>$Requestedby,'DepartmentCode'=>$DEPCode,'ReqDate'=>$updatedDate,'CostCenterCode'=>$CostCenter,'Status'=>$Status,'updatedOn'=>$updatedDate );
+
+
+ //print_r($Request); die();
+
+ $UpdateReq = $this->storerequistion_model->UpdateRequistion($StoreReqNo,$Request);
+
+ //echo"string"; die();
+ // foreach ($UpdateReq as $value)
+ // {
+ // $StoreReqNo = $value;
+
+ // }
+
+ }
+
+ $SkipInsert = False;
+
+ for ($i = 1; $i <= $RowCount; $i++)
+ {
+
+ //echo"hi";
+ $MaterialCode = $this->input->post('EditMaterialCode');
+
+
+ $QuantityRequired=$this->input->post('EditQuantity');
+ //echo"$QuantityRequired"; die();
+ $Remarks=$this->input->post('EditRemarks');
+
+ $Request = array('MaterialCode'=>$MaterialCode,'Status'=>$Status,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks);
+//print_r($Request);die();
+ $addReq = $this->storerequistion_model->addstoreRequistion($Request);
+
+ $SkipInsert = "False";
+ if(count($comma_separated) > 0)
+ {
+ for($j = 1; $j < count($comma_separated); $j++)
+ {
+ $deletedRow = $comma_separated[$j] ;
+
+ if($deletedRow == $i )
+ {
+ $SkipInsert = "True";
+ break;
+ }
+
+ }
+ }
+
+ if($SkipInsert == "False")
+ {
+ //echo "string"; die();
+ $MaterialCode = $this->input->post('EditMaterialCode'.$i);
+ echo"MaterialCode"; die();
+ $QuantityRequired=$this->input->post('Quantity'.$i);
+ $Remarks=$this->input->post('Remarks'.$i);
+
+ $Request = array('MaterialCode'=>$MaterialCode,'Status'=>$Status,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'StoreReqNo'=>$StoreReqNo);
+
+ //print_r($Request);die();
+
+ $IsExists = $this->storerequistion_model->LineItemIsExists($StoreReqNo,$MaterialCode);
+ if(count( $IsExists) == 0)
+ {
+ $ReqDetails = array('StoreReqNo'=>$StoreReqNo, 'MaterialCode'=>$MaterialCode,'QuantityRequired'=>$QuantityRequired,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDate);
+
+ $this->storerequistion_model->addRequistionDetails($ReqDetails);
+ }
+ else
+ {
+ $ReqDetails = array('StoreReqNo'=>$StoreReqNo, 'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDate);
+
+ $this->storerequistion_model->UpdateRequistionLineItem($ReqDetails,$StoreReqNo,$MaterialCode);
+ }
+
+
+ }
+
+ }
+ echo 'Successfully updated the Requistion details';
+
+
+
+
+
+ }
+
+ /**
+ * This function used to load the Delete the Requistion Items
+ */
+ function DeleteRequistionForm()
+ {
+
+ $ReqList= $this->input->post('id');
+ $StoreReqNo ='';
+ $MaterialCode = '';
+ if(count($ReqList) > 0)
+ {
+ $StoreReqNo = $ReqList[0];
+ $MaterialCode = $ReqList[1];
+ }
+
+ $this->storerequistion_model->DeleteRequistionLineItem( $StoreReqNo,$MaterialCode);
+
+ echo "Successfully Deleted the Line item".$StoreReqNo;
+
+ }
+
+ }
+
\ No newline at end of file
diff --git a/application/controllers/storestatus.php b/application/controllers/storestatus.php
old mode 100644
new mode 100755
diff --git a/application/logs/log-2017-07-05.php b/application/logs/log-2017-07-05.php
new file mode 100644
index 00000000..a17112c6
--- /dev/null
+++ b/application/logs/log-2017-07-05.php
@@ -0,0 +1,117 @@
+
+
+ERROR - 2017-07-05 13:38:50 --> Severity: Notice --> Use of undefined constant STORE_REJECT - assumed 'STORE_REJECT' /opt/lampp/htdocs/siddharth_application/application/models/storerequistion_model.php 283
+ERROR - 2017-07-05 13:38:50 --> Severity: Notice --> Use of undefined constant STORE_DRAFT - assumed 'STORE_DRAFT' /opt/lampp/htdocs/siddharth_application/application/models/storerequistion_model.php 283
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:38:51 --> Severity: Notice --> Use of undefined constant STORE_PENDINGAPPROVAL - assumed 'STORE_PENDINGAPPROVAL' /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 237
+ERROR - 2017-07-05 13:48:54 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:48:54 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:48:54 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:48:54 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:48:54 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:48:54 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:52:26 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:52:26 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:52:26 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:52:26 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:52:26 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 13:52:26 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:00:11 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:00:11 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:00:11 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:00:11 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:00:11 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:00:11 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:00:34 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:00:34 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:00:34 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:00:34 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:00:34 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:00:34 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:25 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:25 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:25 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:25 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:25 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:25 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:44 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:44 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:44 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:44 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:44 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:01:44 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:03:29 --> Severity: Notice --> Undefined property: stdClass::$StatusName /opt/lampp/htdocs/siddharth_application/application/views/editstorerequisition.php 353
+ERROR - 2017-07-05 14:03:53 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:03:53 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:03:53 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:03:53 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:03:53 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:03:53 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:04:37 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:04:37 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:04:37 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:04:37 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:04:37 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:04:37 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/storerequisitionlisting.php 53
+ERROR - 2017-07-05 14:05:24 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:24 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:24 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:24 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:24 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:24 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:35 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:35 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:35 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:35 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:35 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
+ERROR - 2017-07-05 14:05:35 --> Severity: Notice --> Undefined index: RequisitionStatus /opt/lampp/htdocs/siddharth_application/application/views/approvalstorerequisitionslip.php 33
diff --git a/application/models/storerequistion_model.php b/application/models/storerequistion_model.php
new file mode 100644
index 00000000..3fb73e86
--- /dev/null
+++ b/application/models/storerequistion_model.php
@@ -0,0 +1,410 @@
+db->select ('ED.FirstName,CM.CostCenterCode,CM.CostCenterName,CB.BudgetAmount,CB.BudgetType');
+ $this->db-> from(' T_CostCenter_Master CM');
+ $this->db->join ('T_CostCenter_Departments CD ',' CD.CostCenterCode = CM.CostCenterCode');
+ $this->db->join ('T_CostCenter_Budget CB ',' CB.CostCenterCode = CM.CostCenterCode');
+ $this->db->join ('T_Employee_Details ED ','ED.Departmentcode = CD.DEPCode');
+ $this->db->join ('tbl_users TU ',' TU.EmpID = ED.EmpID ');
+ $this->db->where('TU.userId ',$userId);
+ //$this->db->where('CB.BudgetType','SERVICE');
+
+ $query = $this->db->get();
+ $result = $query->result();
+ //print_r( $result );
+
+ return $result;
+
+ }
+
+
+
+
+ function getRawMaterialList($MaterialCode='')
+ {
+ $this->db->select('MaterialName,UOM,MaterialCode');
+ $this->db->from('T_MaterialMaster');
+ //$this->db->where('MaterialCode',$MaterialCode );
+ $query = $this->db->get();
+ $result = $query->result();
+ // print_r($result);
+ return $result;
+ }
+
+/**
+ * This function is used to add the Raise store Requestion into the Database
+ * @return array $result : This is result of the query
+ */
+ function addRequistion($ReqDate='')
+ {
+
+ $this->db->trans_start();
+ $this->db->insert('T_Store_Requestion_Master', $ReqDate);
+ $insert_id = $this->db->affected_rows();
+ $this->db->trans_complete();
+ if($insert_id>0)
+ {
+ $subQuery = 'select max(StoreReqNo) as StoreReqNo from T_Store_Requestion_Master';
+
+ $query = $this->db->query($subQuery);
+
+ return $query->result_array();
+ }
+
+ //return $insert_id;
+
+ }
+
+ /**
+ * This function is used to update the details into Database
+ * @return array $result : This is result of the query
+ */
+ function UpdateRequistion($StoreReqNo,$Request)
+ {
+
+ $this->db->where('StoreReqNo',$StoreReqNo);
+ $this->db->update('T_Store_Requestion_Master',$Request);
+
+
+ return TRUE;
+ }
+
+ function getRequistionList()
+ {
+ $this->db->select('Sm.StoreReqNo,Sm.Requestedby,Sm.ReqDate,Sm.Status,Sd.Remarks,Sd.QuantityRequired,Sd.QuantityIssued,St.StatusName ');
+ $this->db->from ('T_Store_Requestion_Master Sm');
+ $this->db->join('T_Store_Requestion_Details Sd ',' Sd.StoreReqNo = Sm.StoreReqNo');
+ $this->db->join('T_Status St','St.StatusCode = Sm.Status');
+ // $this->db->where('Sm.Status ','ST036');
+
+ $query = $this->db->get();
+ $result = $query->result();
+ // print_r($this->db->last_query());
+ //print_r($result);
+ return $result;
+
+ }
+
+/*this function used to Add Store Requistion*/
+ function addstoreRequistion($Request)
+ {
+ //print_r($Request);
+ $this->db->trans_start();
+ $this->db->insert('T_Store_Requestion_Details',$Request);
+ $insert_id = $this->db->affected_rows();
+ $this->db->trans_complete();
+ if($insert_id>0)
+ {
+ $subQuery = 'select max(StoreReqLineItemNo) as StoreReqLineItemNo from T_Store_Requestion_Details';
+
+ $query = $this->db->query($subQuery);
+
+ return $query->result_array();
+ }
+
+
+ }
+
+ /**
+ * This function is used to add the Line item details to the Database
+ * @return array $result : This is result of the query
+ */
+ function addRequistionDetails($StoreReqLineItemNo)
+ {
+ //echo "nsmdnsjkkjasdf"; die();
+ $this->db->trans_start();
+ $this->db->insert('T_Store_Requestion_Details', $StoreReqLineItemNo
+ );
+ $insert_id = $this->db->affected_rows();
+ $this->db->trans_complete();
+ //print_r($this->db->last_query());
+ return $insert_id;
+
+ }
+
+
+
+ /**
+ * This function is used to check the Request Line Item is in Draft status
+ * @return array $result : This is result of the query
+ */
+ function LineItemIsExists($StoreReqNo,$MaterialCode)
+ {
+ $this->db->select('StoreReqNo');
+ $this->db->from('T_Store_Requestion_Details');
+ $this->db->where('StoreReqNo ',$StoreReqNo );
+ $this->db->where('MaterialCode ',$MaterialCode );
+ $query = $this->db->get();
+
+ if ($query->num_rows > 0) {
+ //echo $result->num_rows;
+ return $query->result_array();
+ }
+ }
+
+ /**
+ * This function is used to update the details into Database
+ * @return array $result : This is result of the query
+ */
+ function UpdateRequistionLineItem($StoreReqNo,$MaterialCode,$Request)
+ {
+ $this->db->where('StoreReqNo', $StoreReqNo);
+ $this->db->where('MaterialCode', $MaterialCode);
+ $this->db->update('T_Store_Requestion_Details',($Request));
+
+ return TRUE;
+ }
+ /**
+ * This function is used to delete the Line item from details into Database
+ * @return array $result : This is result of the query
+ */
+ function DeleteRequistionLineItem( $StoreReqNo,$MaterialCode)
+ {
+ $this->db->where('StoreReqNo', $StoreReqNo);
+ $this->db->where('MaterialCode', $MaterialCode);
+ $this->db->delete('T_Store_Requestion_Details');
+
+ return TRUE;
+ }
+
+
+
+ /**
+ * This function is used to get the userId information
+ * @return array $result : This is result of the query
+ */
+ function getStatus()
+ {
+ $this->db->select('StatusCode,StatusName ');
+ $this->db->from('T_Status');
+ $this->db->where('Remarks', 'STORE REQUISTION STATUS');
+ //$this->db->where('StatusCode!=', REQ_DRAFT);
+ $query = $this->db->get();
+ // print_r($query);
+ return $query->result();
+ }
+
+
+ function editstorerequistions($StoreReqNo)
+ {
+
+ $this->db->select('StoreReqNo,Sr.MaterialCode,Sr.QuantityRequired,Sr.Status,Sr.Remarks,Mm.MaterialName,Mm.UOM ');
+ $this->db->from('T_Store_Requestion_Details Sr');
+ $this->db->join('T_MaterialMaster Mm' ,' Mm.MaterialCode = Sr.MaterialCode');
+ $this->db->where('StoreReqNo',$StoreReqNo);
+ $query = $this->db->get();
+ return $query->result();
+ }
+
+
+ /**
+ * This function is used to check the Request is in Draft status
+ * @return array $result : This is result of the query
+ */
+ function RequistionIsExists($ReqDate)
+ {
+ $this->db->select('StoreReqNo');
+ $this->db->from('T_Store_Requestion_Master');
+ //$this->db->where('Status ',REQ_DRAFT );
+ $this->db->where('ReqDate',$ReqDate );
+ $query = $this->db->get();
+
+ if ($query->num_rows > 0) {
+ //echo $result->num_rows;
+ return $query->result_array();
+ }
+ }
+ /**
+ * This function is used to check the Request is in Draft status
+ * @return array $result : This is result of the query
+ */
+ function Storerequisition($MaterialCode)
+ {
+ $this->db->select('StoreReqNo');
+ $this->db->from('T_Store_Requestion_Details');
+ //$this->db->where('Status ',REQ_DRAFT );
+ $this->db->where('MaterialCode',$MaterialCode);
+ $query = $this->db->get();
+
+ if ($query->num_rows > 0) {
+ //echo $result->num_rows;
+ return $query->result_array();
+ }
+ }
+
+ /** COMPLETED
+ * This function is used to get the List of Store Requist details to the approver
+ * @return array $result : This is result of the query
+ */
+ function getApproverRequistList($UserID,$Status = '',$FromDate='' ,$ToDate='')
+ {
+ // echo 'UserId: '.$UserID . 'From: '.$FromDate .'TO: '. $ToDate. 'Status: '. $Status;
+
+
+ $subQuery = ' select distinct Str.StoreReqNo,Str.Requestedby,Str.ReqDate,Str.Status,Str.CreatedDate,Str.Comments,St.StatusName
+ from T_Store_Requestion_Master Str
+ join T_Status St on St.StatusCode = Str.Status
+ join T_Employee_Details Emp on Emp.Departmentcode =Str.DepartmentCode
+ join T_DepartmentDetails Dept on Dept.DEPCode = Emp.Departmentcode
+ where Str.Status not in(?,?) and Emp.Departmentcode in (select DEPCode from T_DepartmentDetails where HeadDept=
+ (select HeadDept from T_DepartmentDetails where DEPCode = (select Departmentcode from T_Employee_Details where
+ EmpID=(select EmpID from tbl_users where userId=?))))';
+ $subQuery1 = $subQuery;
+ $query ='';
+
+ if($FromDate != '' && $ToDate != '' && $Status !='' )
+ {
+
+ $Where = 'and Str.CreatedDate >= ? and Str.CreatedDate <= ? and Status=?';
+ $subQuery1 .= $Where;
+ $query = $this->db->query($subQuery1, array(STORE_REJECT,STORE_DRAFT,$UserID,$FromDate,$ToDate,$Status));
+ }
+ else if($FromDate != '' && $ToDate != '' && $Status =='')
+ {
+ $Where = 'and Str.CreatedDate >= ? and Str.CreatedDate <= ? ';
+ $subQuery1 .= $Where;
+ $query = $this->db->query($subQuery1, array(STORE_REJECT,STORE_DRAFT,$UserID,$FromDate,$ToDate));
+ }
+ else if($Status != '' && $FromDate == '' && $ToDate == '')
+ {
+ $Where = 'and Status = ?';
+ $subQuery1 .= $Where;
+ $query = $this->db->query($subQuery1, array(STORE_REJECT,STORE_DRAFT,$UserID,$Status));
+ }
+
+ else
+ {
+ $query = $this->db->query($subQuery, array(STORE_REJECT,STORE_DRAFT,$UserID));
+ }
+
+ //print_r($this->db->last_query());
+ return $query->result();
+ }
+ /**
+ * This function is used to get the Store Requsition List for the login user
+ * @return array $result : This is result of the query
+ */
+ function getRequistDetails($StoreReqNo='',$NoArray='')
+ {
+
+ $subQuery = 'select StoreReqNo,Str.Requestedby,Str.ReqDate,Dept.DepartmentName,Cm.CostCenterName,Bud.BudgetAmount,Bud.BudgetType from T_Store_Requestion_Master Str
+ join T_DepartmentDetails Dept on Dept.DEPCode = Str.DepartmentCode
+ join T_CostCenter_Master Cm on Cm.CostCenterCode =Str.CostCenterCode
+ join T_CostCenter_Budget Bud on Bud.CostCenterCode =Cm.CostCenterCode
+ where StoreReqNo =? ';
+
+
+
+ // print_r($this->db->last_subquery());
+ $query = $this->db->query($subQuery, array($StoreReqNo));
+ if($NoArray == '')
+ {
+ return $query->result_array();
+ }
+ else
+ {
+ return $query->result();
+ }
+
+ }
+ function editRequistDetails($StoreReqNo)
+ {
+$this->db->select('StoreReqNo,Sr.CostCenterCode,Cc.CostCenterName
+ ');
+ $this->db->from('T_Store_Requestion_Master Sr');
+ $this->db->join('T_CostCenter_Master Cc ',' Cc.CostCenterCode=Sr.CostCenterCode');
+ $this->db->where('StoreReqNo',$StoreReqNo);
+ $query = $this->db->get();
+ return $query->result();
+
+
+ }
+// function editRequistItemList($StoreReqNo)
+// {
+// $this->db->select('StoreReqNo,Mat.MaterialCode,Str.QuantityRequired,Str.Remarks,Mat.MaterialName,Mat.UOM
+// ');
+// $this->db->from('T_Store_Requestion_Details Str');
+// $this->db->join('T_MaterialMaster Mat ',' Mat.MaterialCode = Str.MaterialCode');
+// $this->db->where('StoreReqNo',$StoreReqNo);
+// $query = $this->db->get();
+// return $query->result();
+
+
+
+
+
+// }
+
+
+
+
+ /**
+ * This function is used to get the Store Requsition List for the login user
+ * @return array $result : This is result of the query
+ */
+ function getRequistItemList($StoreReqNo,$NoArray='')
+ {
+
+ $subQuery = ' select Str.StoreReqNo,Str.MaterialCode,Str.QuantityRequired,Str.Remarks,Mat.MaterialName,Mat.UOM,Ss.StatusName
+ from T_Store_Requestion_Details Str
+ join T_MaterialMaster Mat on Mat.MaterialCode = Str.MaterialCode
+ join T_Status Ss on Ss.StatusCode = Str.Status
+ where Str.StoreReqNo =?';
+
+
+
+
+ $query = $this->db->query($subQuery, array($StoreReqNo));
+ if($NoArray == '')
+ {
+ return $query->result_array();
+ }
+ else
+ {
+ return $query->result();
+ }
+ }
+
+
+ /**
+ * This function is used to get the Available BudgetAmount for the Cost center
+ * @return array $result : This is result of the query
+ */
+ function GetAvailableBudgetAmount($CostCode,$Year,$BudgetType)
+ {
+ $this->db->select('BudgetAmount');
+ $this->db->from('T_CostCenter_Budget');
+ $this->db->where('CostCenterCode',$CostCode );
+ $this->db->where('BudgetYear',$Year );
+ $this->db->where('BudgetType',$BudgetType );
+ $query = $this->db->get();
+
+ return $query->result_array();
+ }
+
+ /*this function used to get the all store requistion list view*/
+ function Storeall($StoreReqNo,$IsArray='')
+ {
+
+ $result = $this->db-> query("CALL P_GET_AllSTOREREQUISTION('".$StoreReqNo."')") or die(mysql_error());
+
+ {
+ //echo 'Store Line item Inserted successfully';
+ if($IsArray != '')
+ {
+
+ return $result->result_array();
+ }
+ else
+ {
+ return $result->result();
+ }
+ }
+ }
+ }
\ No newline at end of file
diff --git a/application/views/addstorerequisitionslip.php b/application/views/addstorerequisitionslip.php
new file mode 100644
index 00000000..b6973792
--- /dev/null
+++ b/application/views/addstorerequisitionslip.php
@@ -0,0 +1,751 @@
+ format('d-m-y');
+
+// print_r($cost);die();
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 'form-label-left requistion ','name' => 'requistion','id' => 'requistion');
+
+ echo form_open($this->config->base_url().'storerequisitionlist
+ / addstores',$attributes); ?>
+
+
+
+
+
+
+
+ 'RequestedBy','value' => set_value('RequestedBy',$name) ,'id'=>'RequestedBy','class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+ 'DepartmentName','value' => set_value('DepartmentName',$DEPCode . "-".$DepName), 'id'=>'DepartmentName','class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'Date','value' => set_value('Date',$CurrentDate), 'id' =>"Date", 'class' => 'form-control num' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ 'Select Cost Center Name');
+ //print_r( $options);
+
+ if(!empty($cost))
+ {
+ foreach ($cost as $SID):
+ // echo $SID->ConfigValue;
+ $Costs[$SID->CostCenterCode] = $SID->CostCenterCode .'-'. $SID->CostCenterName ;
+
+ endforeach;
+
+ }
+ echo form_dropdown('CostCenter', $Costs,set_value('CostCenter'),'id="CostCenter"' ,'class="form-control select2"' ,'readonly="true"','required="true"');
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
Add Line Item
+
+
+
+
+
+
+
+
+
+
+
+
+ 'Material Code');
+ //print_r( $options);
+
+ if(!empty($MaterialList))
+ {
+ foreach ($MaterialList as $MID):
+
+
+ $options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"');
+
+ ?>
+
+
+
+
+
+
+
+ 'Description','value' => set_value('Description'),'id'=>'Description', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event)','maxlength'=>'20');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 'Material Code');
+ //print_r( $options);
+
+ if(!empty($MaterialList))
+ {
+
+ foreach ($MaterialList as $MID):
+
+
+ $options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('EditMaterialCode', $options,set_value('EditMaterialCode'),'id="EditMaterialCode"' ,'class="form-control"');
+
+ ?>
+
+
+
+
+
+
+ 'EditDescription','value' => set_value('EditDescription'),'id'=>'EditDescription', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'EditUOM','value' => set_value('EditUOM'),'id'=>'EditUOM', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event)','maxlength'=>'20');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'EditRemarks','value' => set_value('EditRemarks'),'id'=>'EditRemarks', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | SNO |
+ Item Code |
+ Description |
+ UOM |
+ Quantity |
+ Remarks |
+ Action |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/approvalstorerequisitionslip.php b/application/views/approvalstorerequisitionslip.php
new file mode 100644
index 00000000..f00c3026
--- /dev/null
+++ b/application/views/approvalstorerequisitionslip.php
@@ -0,0 +1,478 @@
+
+
+
+
+
+
+
+
+
+
Store Requisition Approval List
+ 'form-label-left Approve ','name' => 'Approve','id' => 'Approve');
+
+ echo form_open($this->config->base_url().'storerequisitionlist/SearchRequistLists',$attributes); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Store Requisition Number |
+ Requested By |
+ Requested Date |
+ Status |
+ Action |
+ comments |
+
+
+
+
+
+
+ | StoreReqNo ?> |
+ Requestedby?> |
+ ReqDate);
+ $ReqDate= $Cdt->format('d-m-Y');
+ echo $ReqDate;
+ ?> |
+ StatusName ?> |
+ Status) == STORE_PENDINGAPPROVAL)
+ {
+
+ ?>
+
+
+
+ |
+
+ Comments ?> |
+
+
+
+
+
+
+ | STREQ0001 |
+ Kasiraman |
+ 20/6/2017 |
+ Pending Approval |
+
+
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/editCapitalPo.php b/application/views/editCapitalPo.php
old mode 100644
new mode 100755
diff --git a/application/views/editstorerequisition.php b/application/views/editstorerequisition.php
new file mode 100644
index 00000000..0891bcff
--- /dev/null
+++ b/application/views/editstorerequisition.php
@@ -0,0 +1,875 @@
+ format('d-m-y');
+
+// print_r($cost);die();
+
+
+
+
+$CostCenterCode='';
+$StoreReqNo='';
+
+foreach ($cost as $key ) {
+
+ $CostCenterCode = $key->CostCenterName;
+ $StoreReqNo=$key->StoreReqNo;
+ //print_r($CostCenterCode);# code...
+}
+ ?>
+
+
+
+
+
+
+
+
+ 'form-label-left requistion ','name' => 'requistion','id' => 'requistion');
+
+ echo form_open($this->config->base_url().'storerequisitionlist
+ /EditStoreRequistion',$attributes);
+
+
+ ?>
+
+
+
+
+
+
+
+
+ 'RequestedBy','value' => set_value('RequestedBy',$name), 'id'=>'RequestedBy','class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true');
+ echo form_input($data);
+
+ ?>
+
+
+
+ 'DepartmentName','value' => set_value('DepartmentName',$DEPCode . "-".$DepName), 'id'=>'DepartmentName','class' => 'form-control num' ,'required' => 'true' ,'readonly' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'Date','value' => set_value('Date',$CurrentDate), 'id' =>"Date", 'class' => 'form-control num' ,'required' => 'true');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+ CostCenterName;
+ //print_r( $options);
+
+ if(!empty($cost))
+ //print_r($cost);
+ {
+ foreach ($cost as $SID):
+ // echo $SID->ConfigValue;
+ $Costs[$SID->CostCenterCode] = $SID->CostCenterCode .'-'. $SID->CostCenterName ;
+
+ endforeach;
+
+ }
+ echo form_dropdown('CostCenter', $Costs,set_value('CostCenter'),'id="CostCenter"' ,'class="form-control select2"' ,'readonly="true"','required="true"');
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
Add Line Item
+
+
+
+
+
+
+
+
+
+
+
+
+ 'Material Code');
+ //print_r( $options);
+
+ if(!empty($MaterialList))
+ {
+ foreach ($MaterialList as $MID):
+
+
+ $options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"');
+
+ ?>
+
+
+
+
+
+
+
+ 'Description','value' => set_value('Description'),'id'=>'Description', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event)','maxlength'=>'20');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'Remarks','value' => set_value('Remarks'),'id'=>'Remarks', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 'Material Code');
+ //print_r( $options);
+
+ if(!empty($MaterialList))
+ {
+
+ foreach ($MaterialList as $MID):
+
+
+ $options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName;
+
+ endforeach;
+ }
+
+ echo form_dropdown('EditMaterialCode', $options,set_value('EditMaterialCode'),'id="EditMaterialCode"' ,'class="form-control"');
+
+ ?>
+
+
+
+
+
+
+ 'EditDescription','value' => set_value('EditDescription'),'id'=>'EditDescription', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+ 'EditUOM','value' => set_value('EditUOM'),'id'=>'EditUOM', 'class' => 'form-control','readonly' => 'true' );
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'EditQuantity','value' => set_value('EditQuantity'),'id'=>'EditQuantity', 'class' => 'form-control' ,'onkeypress'=>'return isNumberKey(event)','maxlength'=>'20');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+ 'EditRemarks','value' => set_value('EditRemarks'),'id'=>'EditRemarks', 'class' => 'form-control');
+ echo form_input($data);
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | SNO |
+ Item Code |
+ Description |
+ UOM |
+ Quantity |
+ Remarks |
+ Action |
+
+
+
+
+
+ |
+
+
+ MaterialCode ?> |
+ MaterialName ?> |
+
+ UOM ?> |
+
+ QuantityRequired ?> |
+
+
+ Remarks ?> |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/storerequisition.php b/application/views/storerequisition.php
new file mode 100644
index 00000000..a637e9ea
--- /dev/null
+++ b/application/views/storerequisition.php
@@ -0,0 +1,164 @@
+cnt;
+ $StoreReqNo = $St->StoreReqNo;
+ }
+ //echo $ReqNo;
+}?>
+
+
+
+
+
+
+
+
+
+
+
+
+ 0 ) {?>
+The Store Requisition No is in Draft status. Please act on the requisition.Then only you can raise New StoreRequisition.
+
+
+
+
+
+ | Store Requisition No |
+ Tot No.OfLineItem |
+ Issued Item Count |
+ Pending Item Count |
+ Status |
+ Requested Date |
+ Remarks |
+ Action |
+
+
+
+
+
+
+
+
+
+ | StoreReqNo ?> |
+
+ TotalNoofLineItems ?> |
+ IssuesItems ?> |
+ PendingItems ?> |
+
+
+
+ StatusName ?> |
+ ReqDate ?> |
+ Remarks ?> |
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/storerequisitionlisting.php b/application/views/storerequisitionlisting.php
new file mode 100644
index 00000000..e44d5993
--- /dev/null
+++ b/application/views/storerequisitionlisting.php
@@ -0,0 +1,407 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Store Requisition No |
+ Requested Date |
+ Requested Quantity |
+ Issued Quantity |
+ Status |
+ Requester Comments |
+
+
+
+
+
+
+
+
+
+ | StoreReqNo ?> |
+
+
+ ReqDate) ;
+ $ReqDate = $rdate->format('d-m-Y');
+ echo $ReqDate; ?> |
+ QuantityRequired ?> |
+ QuantityIssued ?> |
+
+ StatusName ?> |
+ Remarks ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/storestatus.php b/application/views/storestatus.php
old mode 100644
new mode 100755