<?
session_start();
$brcode=$_SESSION['brcode'];
$user=$_SESSION['user'];
 include("opendb.php");
$us=mysqli_query($db,"select level from bruser where username='$user'")or die(mysqli_error());
$r=mysqli_fetch_row($us);
$user_level=$r[0];
?>

<SCRIPT>
parent.main.document.location="blank.html";
</script>
<link type="text/css" href="css2/left.css" rel="stylesheet" />	
<body>

<base target=main>
<center>
<font color=white size=4 face=sans-serif><b>Accounts</font><hr>
</center>
<table width=100%>
<?
if($user_level>2)
{
?>
<tr><td><a href="period.php">Period</a></td></tr>
<tr><td><a href="acgroup.php">Group Master</a></td></tr>
<tr><td><a href="ledge.php">Ledger Master</a></td></tr>
<?
}
if(strtoupper($user)!='MANJU' && strtoupper($user)!='PSNCARE')
{
?>
<tr><td><a href="sealedge.php"  style="color: black;font-weight: bold;">Search Ledger</a></td></tr>
<?
} ?>
<?
 if ($user != 'tom' ){
?>
<tr><td><a href="acrepomnu.php" onClick=fun1()>Reports -></a></td></tr>

<?
}
?>
<?if($user_level>2)
{
?>
<tr><td><a href="pl1.php">Open/Close Stk</a></td></tr>
<tr><td><a href="payrec/cshrec.php">Cash Receipts</a></td></tr>
<tr><td><a href="payrec/cshpay.php">Cash Payment</a></td></tr>
<tr><td><a href="payrec/brec.php">Bank Receipts</a></td></tr>
<tr><td><a href="payrec/bpay_1.php">Bank Payment</a></td></tr>
<tr><td><a href="accounts/payrec/bpay_1.php"  style="color: black;font-weight: bold;">Bank Payment (W/Cheque Print)</a></td></tr>
<tr><td><a href="accounts/breco.php">Bank Reconciliation</a></td></tr>
<?
}
?>
<!--
<tr><td><a href="rec.php">Receipts</a></td></tr><tr><td><a href="pay.php">Payments</a></td></tr>

<tr><td><a href="purch.php">Purchase</a></td></tr>
<tr><td><a href="sale.php">Sales</a></td></tr>

<tr><td><a href="journal.php">Journal</a></td></tr>

-->
<?
if($user_level>2)
{
?>
<tr><td><a href="multientry/jour.php" target=x style="color: black;font-weight: bold;">Journal</a></td></tr>
<tr><td><a href="gstmultislct2.php" style="color: black;font-weight: bold;">GST Multiple</a></td></tr>
<tr><td><a href="gstrpt.php" style="color: black;font-weight: bold;">GST Report</a></td></tr>

<tr><td><a href="spares/sap_gstmultiple.php" style="color: black;font-weight: bold;">GST Multiple from SAP</a></td></tr>
<tr><td><a href="gstmultislct2_out.php" style="color: black;font-weight: bold;">GST Multiple Out</a></td></tr>
<tr><td><a href="gstmultislct2_out_disc.php" style="color: black;font-weight: bold;">GST Multiple Out(Disc)</a></td></tr>
<tr><td><a href="gstmultislct2_out_disc_pro.php" style="color: black;font-weight: bold;">GST Multiple Out Pro(Disc)*</a></td></tr>
<tr><td><a href="spares/einvoice_gstincome.php" style="color: black;font-weight: bold;">E-Inv JSON Download(GST Multiple)</a></td></tr>

<tr><td><a href="spares/sap_spareinvoiceupload.php" style="color: black;font-weight: bold;">SAP Extract Upload</a></td></tr>
<tr><td><a href="spares/sap_spareinvoicejson.php" style="color: black;font-weight: bold;">SAP JSON Download</a></td></tr>
<tr><td><a href="gstrpt_out.php" style="color: black;font-weight: bold;">GST Report Out</a></td></tr>
<tr><td><a href="gstrptrev.php" style="color: black;font-weight: bold;">GST OUT(Reverse) Report</a></td></tr>
<tr><td><a href="debitnote_reg.php" style="color: black;font-weight: bold;">Debit note with GST Report</a></td></tr>
<tr><td><a href="multientry/tdsjour.php">TDS Entry</a></td></tr>

<?
}else{
    ?>
    <tr><td><a href="gstmultislct2_out_disc_pro.php" style="color: black;font-weight: bold;">GST Multiple Out Pro(Disc)*</a></td></tr>
    <?
}
?>

<?
if($user_level>2)
{
?>
<tr><td><a href="acrepomnu.html" onClick=fundup()>Dup. copy -></a></td></tr>

</table>
<table width=100%>
<tr><td><a href="accounts/payrec/chqbook_reg.php">Cheque Book Registration</a></td></tr>
<tr><td><a href="accounts/payrec/chqbook_cancel.php">Cheque Cancelation</a></td></tr>
<tr><td><a href="accounts/payrec/chqbook_for.php">Cheque Format Selection</a></td></tr>
<tr><td><a href="accounts/payrec/chqbook_list.php">Cheque Book Register</a></td></tr>
<tr><td><a href="accounts/payrec/chqbook_dup.php">Duplicate Cheque Printing</a></td></tr>
<tr><td><a href="accounts/payrec/chqbook_dupcan.php">Duplicate Cheque Printing(Canon)</a></td></tr>
<tr><td><a href="loc-clear.php">Loc-Clearing</a></td></tr>
<tr><td><a href="clearing.php">BranchEntries-Clearing</a></td></tr>
<tr><td><a href="merge_ledger.php">Merge Ledgers</a></td></tr>
<tr><td><a href="br_othdiv.php">Bank Rec from Other Divisions</a></td></tr>
<tr><td><a href="accounts/bankstate.php">*Claim from Bank Statement</a></td></tr>
</table>
<?
}
?>
<script>
function fun1()
{
 document.location='acrepomnu.php';
}
function fundup()
{
 document.location='dupmnu.html';
}

</script>
