requisition
This commit is contained in:
parent
77a4228156
commit
c504127ac3
@ -468,19 +468,18 @@ if(!empty($ReqPOType))
|
||||
<input type="hidden" name="<?php echo 'te'.$index ?>" id="<?php echo 'tes'.$index ?>" value="<?php echo $record->Quantity ; ?>" />
|
||||
|
||||
<td align="left"><?php echo $record->MaterialCode ; ?></td>
|
||||
<?php if ($materialdesc == ''){?>
|
||||
|
||||
<td align="left"><?php echo $record->MaterialName ; ?></td>
|
||||
<?php }
|
||||
else{?>
|
||||
|
||||
|
||||
<td align="left"><?php echo $record->MaterialDescription; ; ?></td>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<td align="left"><?php echo $record->UOM ; ?></td>
|
||||
|
||||
<td align="left"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="left"><?php echo $record->POQTY ; ?></td>
|
||||
<td align="left"><?php echo $record->StatusName ;?></td>
|
||||
<input type="text" name="<?php echo 'materialdesc'.$index ?>" id="<?php echo 'materialdesc'.$index ?>" value="<?php echo $record->MaterialDescription ; ?>" />
|
||||
<td>
|
||||
<a data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-target='#EditItem' data-toggle="modal" href="#EditItem"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->MaterialCode ; ?> Material details"></i> </a> <a onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $record->MaterialCode ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
|
||||
|
||||
@ -1052,7 +1051,7 @@ $("#myModal1").on("shown.bs.modal", function(e) {
|
||||
|
||||
$("#EditItem").on("shown.bs.modal", function(e) {
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
// alert(userid);
|
||||
//alert(userid);
|
||||
var tr= document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
|
||||
@ -1065,16 +1064,20 @@ $("#EditItem").on("shown.bs.modal", function(e) {
|
||||
//var desc= cellval[8].innerHTML
|
||||
|
||||
//alert(desc)
|
||||
var decs= $('#materialdesc'+userid).val();
|
||||
// alert(upcheck)
|
||||
|
||||
if(upcheck=='SERVICE')
|
||||
{
|
||||
$('#EditotherDescription').hide();
|
||||
$('#EditotherDescription').show();
|
||||
$('#EditotherD').val(decs)
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$('#EditotherDescription').hide();
|
||||
$('#EditotherD').val('')
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user