store edit
This commit is contained in:
parent
1a9e6a3e9f
commit
a1ad9d322b
@ -118,7 +118,9 @@ class storerequisitionlist extends BaseController
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$createddt = $dt->format('Y-m-d H:i:s');
|
||||
$DeletedRow = $this->input->post('txtDeletedRow');
|
||||
$RowCount = $this->input->post('txtRowCount');
|
||||
$RowCount = $this->input->post('txtRowCount');
|
||||
// echo $RowCount;
|
||||
// die();
|
||||
$Status = $this->input->post('txtStatus');
|
||||
$Requestedby = $this->session->userdata ( 'EmpID' );
|
||||
$comma_separated = explode(':', $DeletedRow);
|
||||
@ -149,11 +151,11 @@ class storerequisitionlist extends BaseController
|
||||
|
||||
for($j = 1; $j < count($comma_separated); $j++)
|
||||
{
|
||||
$deletedRow = $comma_separated[$j] ;
|
||||
$deletedRow = $comma_separated[$j];
|
||||
|
||||
if($deletedRow == $i )
|
||||
{
|
||||
|
||||
|
||||
$SkipInsert = "True";
|
||||
break;
|
||||
}
|
||||
@ -167,6 +169,8 @@ class storerequisitionlist extends BaseController
|
||||
$Remarks=$this->input->post('Remarks'.$i);
|
||||
$Request = array('MaterialCode'=>$MaterialCode,'Status'=>$StoreItemStatus ,'QuantityRequired'=>$QuantityRequired,'Remarks'=>$Remarks,'StoreReqNo'=>$StoreReqNo);
|
||||
|
||||
print_r($Request);
|
||||
|
||||
$addReq=$this->storerequistion_model->addstoreRequistion($Request);
|
||||
}
|
||||
}
|
||||
|
||||
@ -583,7 +583,7 @@ $('.EditItem').click(function(){
|
||||
$('#Quantity'+userid).val(editQuantity);
|
||||
$('#Remarks'+userid).val(editRemarks);
|
||||
|
||||
$('#txtRowCount').val(userid);
|
||||
// $('#txtRowCount').val(userid);
|
||||
});
|
||||
|
||||
function Deleterow(rowid)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user