Purchase Departmen

This commit is contained in:
gandhimathi Bharathirajan 2017-06-14 09:57:01 +05:30
parent 6a7d2a80ac
commit d637854aef

View File

@ -79,6 +79,8 @@
<!-- fullCalendar 2.2.5-->
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.print.css" media="print">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
<style>
.error{
@ -149,7 +151,7 @@
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
</a>
</li>
<?php
<?php
if($role == ROLE_ADMIN || $DEPCode == SALES || $DEPCode == FINANCE )
{
?>
@ -250,7 +252,7 @@
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Requisition<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<?php if($role == ROLE_MANAGER || $role == ROLE_EMPLOYEE || $role == ROLE_ADMIN )
<?php if($role == ROLE_MANAGER || $role == ROLE_EMPLOYEE || $role == ROLE_ADMIN )
{
?>
<li class="treeview">
@ -275,7 +277,7 @@
<?Php
} ?>
<?Php
if($DEPCode == FINANCE)
if($DEPCode != FINANCE || $DEPCode == PURCHASE)
{
?>
@ -294,7 +296,8 @@
?>
<?php
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
//if(($DEPCode == FINANCE && $role == ROLE_MANAGER)|| ($(DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)))
if($DEPCode == FINANCE || $DEPCode == PURCHASE )
{
?>
@ -302,7 +305,8 @@
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<?php
if($DEPCode == FINANCE)
//if($DEPCode != FINANCE || $DEPCode == PURCHASE)
if( $DEPCode == PURCHASE)
{
?>
<li class="treeview">
@ -316,7 +320,8 @@
}
?>
<?php
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
//if($DEPCode == PURCHASE && $role == ROLE_EMPLOYEE)
if($DEPCode == PURCHASE )
{
?>
<li class="treeview">
@ -328,14 +333,36 @@
<?php
}
?>
<!-- For Finance Team for PO approval list-->
<?php
//if($DEPCode == FINANCE && $role == ROLE_MANAGER)
if($DEPCode == FINANCE && $role == ROLE_MANAGER)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorder/poapproval">
<i class="fa fa-users"></i>
<span>Approve Purchase Order</span>
</a>
</li>
<?php
}
?>
<!-- this page is for gate keeper for view the full po list-->
<?php
//if($DEPCode != FINANCE && $DEPCode == PURCHASE)
if( $DEPCode == PURCHASE)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorder/viewfullpurchaseorder">
<i class="fa fa-history"></i>
<span>View Purchase Order</span>
</a>
</li>
<?php
}
?>
</ul>
</li>
<?php