add line item button hide

This commit is contained in:
venbatechnologies@gmail.com 2017-10-27 13:03:19 +05:30
parent c143077330
commit c6c3cf5fd3
3 changed files with 36 additions and 2 deletions

View File

@ -1057,8 +1057,25 @@ $(document).ready(function () {
<div class="container-fluid"> <div class="container-fluid">
<div style="padding-right:10px"> <div style="padding-right:10px">
<div align="right"> <div align="right">
<?php
if($PONOStatus == PO_RELEASED)
{?>
<?php }
else if($PONOStatus==PO_DRAFT ||$PONOStatus==PO_CREATED || $PONOStatus==PO_APPROVED)
{?>
<a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a> <a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
<?}?>
<!-- Model for servicepo --> <!-- Model for servicepo -->
<div class="modal fade" id="SERVICE" role="dialog"> <div class="modal fade" id="SERVICE" role="dialog">
<div class="modal-dialog"> <div class="modal-dialog">

View File

@ -2669,7 +2669,24 @@ function calculateEditTaxValue()
<div align="right"> <div align="right">
<div align="right"> <div align="right">
<?php
if($PONOStatus == PO_RELEASED)
{?>
<?php }
else if($PONOStatus==PO_DRAFT ||$PONOStatus==PO_CREATED || $PONOStatus==PO_APPROVED)
{?>
<a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a> <a data-toggle="modal" ><button type="submit" onclick="myFunction();" class="btn btn-primary" id="abcd" >Select Line Item</button> </a>
<?}?>
</div> </div>
<!-- Model for revenue po --> <!-- Model for revenue po -->

View File

@ -845,7 +845,7 @@ if($PONOStatus == PO_RELEASED)
{?> {?>
<!-- <a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a> --> <!-- <a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a> -->
<?php <?php
} else {?> } else if ($PONOStatus==PO_DRAFT ||$PONOStatus==PO_CREATED || $PONOStatus==PO_APPROVED) {?>
<a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a><?php <a data-toggle="modal" data-target="#importpomodel" class="btn btn-primary" data-dismiss="modal" onclick="myFunction();" >Add Line Item </a><?php
}?> }?>
@ -2812,7 +2812,7 @@ echo form_textarea($data);
<?php <?php
if($PONOStatus != PO_RELEASED) if($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED || $PONOStatus==PO_APPROVED)
{?> {?>
<td> <a data-target='#editimportpomodel' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#editimportpomodel"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a> <td> <a data-target='#editimportpomodel' data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" data-toggle="modal" href="#editimportpomodel"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the <?php echo $record->ReqNo ; ?> Requisition details"></i>&nbsp;&nbsp;&nbsp;</a> <a href='#' onclick = "DeleteRow(<?php echo $index ; ?>)" class="link" data-id="<?php echo $index ; ?>" data-userid="<?php echo $index ; ?>" id="Del" ><span class="glyphicon glyphicon-trash"></span></a>
<?php <?php