<?
session_start();
$brcode=$_SESSION['brcode'];
$user=$_SESSION['user'];
$user_session=$_SESSION['user_session'];
$level=$_SESSION['level'];
$fin_year='2023-24';
include("opendb.php");
$ure=mysqli_query($db,"select level,dept,desig from bruser where username='$user' and brcode = '$brcode'");
$urow=mysqli_fetch_row($ure);
$dept=$urow[1];
$level=$urow[0];
$br=mysqli_query($db,"select * from branch where brcode='$brcode'");
$brrow=mysqli_fetch_row($br);
$ker=mysqli_query($db,"select brstate from branch where brcode='$brcode'");
$kar=mysqli_fetch_array($ker);
?>
<style>
.tbl{
    font-size: 14px;
    background-color: #ffffff;
    width: 100%;
    padding-top: 50px;
      border-collapse: inherit;
}
</style>
<script type="text/javascript">
function timedMsg()
{
//alert('Server will shutdown at 12.30 pm today and will open at 12.45 \nLogout Now - vijay');
var t=setTimeout("timedMsg()",50000)
}
</script>
<body onLoad=timedMsg()>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<div id="cssmenu">
<ul>
<li><a href='index2.php'>HOME</a></li>
<!--
<li><a href='#'>Sales</a>
	<ul>
	    <li><a href='service/iqsource.php'>Source</a></li>
	    <li><a href='prospectmaster.php'>Prospect</a></li>
	    <li><a href='pcmaster.php'>Platform/Criteria</a></li>
	    <li><a href='service/locmaster.php'>Location</a></li>
	    <li><a href='service/target.php'>Target</a></li>
	    <li><a href='service/model.php'>Pre-sale Model</a></li>
	    <li><a href='inquiry.php'>Inquiry</a></li>
	    <li><a href='list.php'>Followup Report</a></li>
	    <li><a href='service/tabill.php'>T.A Bill</a></li>
	    
	    	</ul>
</li>

<li><a href='#'>Sales</a>
	<ul>
	<li><a href='service/iqsource.php'>Source</a></li>
	<li><a href='prospectmaster.php'> Prospect</a></li>
	<li><a href='inquiry.php' >Inquiry</a></li>
	<li><a href='list.php'>Followup Report</a></li>
		<li><a href='service/tabill.php'>T.A Bill</a></li>
	<li><a href='service/manrepo3.php'>Exec Report</a></li>
	
	
	</ul>
</li>

<li><a href='#'>Sales</a>
	<ul>
	<li><a href='service/chuser.php'>Change User</a></li>
	
	<li><a href='service/prospadd.php'>SAP B1 Report</a></li>
	<li><a href='service/manrepo1.php'>Exec Report</a></li>
	<li><a href='service/modrepo1.php'>Model wise Report</a></li>

	
	</ul>
</li>

-->
<?
if(strtolower($user)=='arun' ||strtolower($user)== 'krishna' || strtolower($user)=='manjunath' || strtolower($user)=='manish'|| strtolower($user)=='vinod'|| strtolower($user)=='akhil' || strtolower($user)=='nagasekhar' || strtolower($user)=='joy')
{
    ?>
    <li><a href='#'>Spares</a>
	<ul>
    <li><a href='#'>Spares Invoice -></a>
	<ul>
	<li><a href='spares/invoice11new.php'>Sale Order</a></li>
	<li><a href='spares/invoice33new.php'>Edit Sale Order</a></li>
	<li><a href='spares/prnsaleordr.php'>Print Sale Order Picking List</a></li>
	<li><a href='spares/prnspareinvoice_new1.php'>Duplicate Bill (New)</a></li>
	<li><a href='spares/saleorderrpt.php'>Sale Order Report</a></li>
	<li><a href='spares/autocoupongen.php'>AUTOSPEC Coupon Generate</a></li>
	 <?
			if((substr(strtolower($user),0,8)=='laxmeesh')||(strtolower($user)=='narasimhamurthy')||(strtolower($user)=='narasimha')||(strtolower($user)=='murthy') ||(strtolower($user)=='rakesh') ||(strtolower($user)=='joy'))
             {
			?>
			<!-- <li><a href='spares/boschinvoice.php'>Transfer To PSN Automobiles</a></li> -->
			<li><a href='spares/boshinvdownload.php'>Transfer To PSN Auto(Download)</a></li>
			<?
             }
			?>
	</ul>
    </li></ul><?
}

if((strtolower($user)=='oblesh')||(strtolower($user)=='prasad')||(strtolower($user)=='yathish')||(strtolower($user)=='ratheesha')||(strtolower($user)=='narasimhamurthy')||(strtolower($user)=='narasimha')||(strtolower($user)=='solomon'))
{
?>
<li><a href='#'>Accounts</a>
	<ul>
	<li><a href='accounts/sealedge.php'>Search Ledger</a></li>
	<li><a href='spares/stockrepo_br2new.php'>Search Stock(All Br)</a></li>
    <li><a href='#'>Reports -></a>
			<ul>
			<li><a href='accounts/cbookmnu.php'>Cash Book</a></li>
			<li><a href='accounts/bnkbookmnu.php'>Bank Book</a></li>
			<li><a href='accounts/listledgers2.php'>Ledger-Dt wise</a></li>
			<li><a href='tbmnu.php'>Trial Balance</a></li>
			<li><a href='accounts/dstate.php'>Daily Statement</a></li>
			<li><a href='accounts/db1.php'>Day Book</a></li>
			<li><a href='accounts/debtaging.php'>Debtors Aging List(Dr)</a></li>
			<li><a href='db3.php'>Debtors Aging List(Dr)D/Wise</a></li>
			<?
			if($brcode=='HUBACC'){
			?>
			<li><a href='db3allbr_valvo.php'>Debtors Aging (Dr)D/Wise(VALVO+PPL)</a></li>
			<?}?>
			<li><a href='db3_future.php'>Debtors Aging D/Wise-Future</a></li>
			<li><a href='accounts/debtaging2.php'>Debtors Aging List(Cr)</a></li>
			
			<li><a href='accounts/jour1.php'>Journal Entries</a></li>
			</ul>
	</li>
	</ul>
</li>
<li><a href='#'>Spares</a>
	<ul>
<li><a href='#'>Spares Invoice -></a>
	<ul>
	<li><a href='spares/invoice11new.php'>Sale Order</a></li>
	<li><a href='spares/prnspareinvoice_new1.php'>Duplicate Bill (New)</a></li>
	<li><a href="prnspareinvoice_dup1_22022025.php">Duplicate Bill (New Format)</a></li>
	<li><a href='spares/saleorderrpt.php'>Sale Order Report</a></li>
	<li><a href='spares/autocoupongen.php'>AUTOSPEC Coupon Generate</a></li>
	 <?
			if((substr(strtolower($user),0,8)=='laxmeesh')||(strtolower($user)=='narasimhamurthy')||(strtolower($user)=='narasimha')||(strtolower($user)=='murthy') ||(strtolower($user)=='rakesh'))
             {
			?>
			<li><a href='spares/boshinvdownload.php'>Transfer To PSN Auto(Download)</a></li>
			<?
             }
			?>
	</ul>
</li>
<li><a href='#'>Proforma -></a>
	<ul>
	<li><a href='spares/quotenew.php'>Proforma Order</a></li>
	<li><a href='spares/quoteinvoice.php'>Proforma Invoice</a></li>
	<li><a href='spares/prnquoteinvoice_dup1.php' target='blank'>Duplicate Print</a></li>
	<li><a href='spares/qdup.php'>Report</a></li>
	</ul>
</li>
<li><a href='spares/stockaging21.php'>Stock Report NEW</a></a></li>
<li><a href='prospectmaster.php'>Prospects</a></li>
<li><a href='spares/customervisit.php'>Customer/Prospect Visit</a></li>
</ul>
</li>
<li><a href='#'>Reports</a>
	<ul>
	    <?if(strtolower($user) =='basavaraju' || strtolower($user) =='basavaraj'|| strtolower($user) =='anson'){?>
	        <li><a href='forcecommrept.php'>Force Commission Report</a></li>
	    <?}else{?>
	    <li><a href='service/manrepo2new.php'>Daily Sales Report</a></li>
	    <?}?>
	<li><a href='#'>Account Reports  -></a>
	    <ul>    
	    <li><a href='accounts/cbookmnu.php'>Cash Book</a></li>
        <li><a href='accounts/sealedge.php'>Search Ledger</a></li>
	<li><a href='crbilling.php'>Cr Billing Report</a></li>
	<li><a href='crbillingacc.php'>Cr Billing Report(Accessories)</a></li>
	<li><a href='crbillingoil.php'>Cr Billing Report(Oil)</a></li>
			<li><a href='service/saleretreg.php'>Sales-Return Register</a></li>
			
			</li>
	    </ul>
	<!--<li><a href='#'>Spare Tr Reports -></a>
			<ul>
				<li><a href='spares/transinrepo.php'>Transfer In</a></li>
				<li><a href='spares/transoutrepo.php'>Transfer Out</a></li>
				<li><a href='spares/transoutrepotel.php'>Transfer Out I</a></li>
				<li><a href='spares/transwaroutrepo.php'>Transfer Out II</a></li>
				<li><a href='spares/transwaroutrepo2.php'>Transfer Out-2</a></li>
				<li><a href='spares/deltranswarout.php'>DEL Transfer Out</a></li>
				<li><a href='spares/transwarinrepo.php'>Transfer IN I</a></li>
				<li><a href='spares/phtranswarinrepo.php'>Transfer IN II</a></li>
				<li><a href='spares/wartransstat2.php'>Warranty Status 2</a></li>
				<li><a href='spares/deadtranout.php'>Dead Stock Transfer(Branch)</a></li>
				<li><a href='spares/deadtranoutall.php'>Dead Stock Transfer(All Br)</a></li>
			</ul>
	</li>
	<li><a href='#'>SaleTax Rtn Repo -></a>
				<ul>
					<li><a href='sparesalestax_vat.php'>*SpareInvoice(Vat)</a></li>
					<li><a href='sparesalestax_cst.php'>*SpareInvoice(CST)</a></li>
					<li><a href='warsparesalestax.php'>*WarSpareInvoice</a></li>
					<li><a href='salesreturnsalestax.php'>*Sales Return</a></li>
					<li><a href='wsalesreturnsalestax.php'>*Warr.Sales Return</a></li>
					<li><a href='puchasesalestax.php'>*Purhcase</a></li>
					<li><a href='spares/invrepo_staxban.php'>Spare Invoice-VAT</a></li>
					<li><a href='spares/winvrepo_stax.php'>WInvoice</a></li>
					<li><a href='spares/invrepo_staxcstban.php'>Spare Invoice-CST</a></li>
					<!--<li><a href='spares/troutrepo_stax.php'>Spare Transfer Out</a></li>
					<li><a href='spares/trinrepo_stax.php'>Spare Transfer IN</a></li> 
					<li><a href='spares/waroutrepo_stax.php'>Warranty Transfer Out</a></li>
					<li><a href='spares/warinrepo_stax.php'>Warranty Transfer IN</a></li>
					<li><a href='spares/purrepo_stax.php'>Spare Purchase-VAT</a></li>
					<li><a href='spares/purrepo_staxcst.php'>Spare Purchase-CST</a></li>
					<li><a href='spares/saleret_stax.php'>Sales Return</a></li>
					<li><a href='spares/purret_stax.php'>Purchase Return</a></li>
					<li><a href='transferinreport.php'>StockTransferIn</a></li>
					<li><a href='transferreport.php'>StockTransferOut</a></li>
				</ul>
	</li>-->		
	<li><a href='#'>GST Reports  -></a>
	    <ul>
	        <li><a href='#'>Vehicle Reports  -></a>
	        <ul>
	        <li><a href='service/purreg_gst.php'>Purchase Report GST</a></li>
	        <li><a href='service/salereg_newgst.php'>Sale Report GST</a></li>
	        </ul>
	        </li>
	        <li><a href='spares/purrepo_gst.php'>Purchase Report GST</a></li>
	        <li><a href='spares/invrepo_gstaxper.php'>Sale Report % Wise/Inv Type</a></li>
	        <li><a href='spares/invrepo_gstaxper1.php'>Sale Report % Wise</a></li>
	        <li><a href='spares/invrepo_gst.php'>Sale Report GST</a></li>
	        <li><a href='spares/crnotereport.php'>Sales Return Report</a></li>
	        <li><a href='spares/invrepo_gsthsn.php'>Sales-HSNCODE Summary</a></li>
	        <li><a href='spares/invrepo_retgsthsn.php'>Salesreturn-HSNCODE Summary</a></li>
	        <li><a href='spares/purrepo_gsthsn.php'>Purchase-HSNCODE Summary</a></li>
	        <li><a href='spares/troutrepo_stax.php'>Spare TransferOUT GST</a></li>
	        <li><a href='spares/trinrepo_stax.php'>Spare TransferIN GST</a></li>
	          
	          <li><a href='spares/drnotereport.php'>Purchase Return Report</a></li>
	          <li><a href='spares/gst_salesrpt.php'>Details Sales Report</a></li>
	          <li><a href='spares/gst_salemanurpt.php'>Details Sales Report(Manuf wise)</a></li>
	          <li><a href='spares/gst_salesrpt_sum.php'>Customer Summary Report</a></li>
	          <li><a href='spares/gst_salesrpt_sum1.php'>Customer Summary(-Returm)</a></li>
	        </ul>
	</li>
	<li><a href='#'>Spare Invoice -></a>
			<ul>
				<li><a href='spares/invrepoeng.php'>Invoice-Report Eng wise</a></li>
				<?if($brcode=='BLRACC' || $brcode=='HYDACC' || $brcode=='HUBACC'){?>
				    <li><a href='spares/invrepomanu.php'>Invoice-Report Supplier wise(Accessories)</a></li>
				<?}?>
					<li><a href='spares/invrepodsr.php'>Invoice-Report DSR</a></li>
				<li><a href='spares/invrepostatewise.php'>Invoice-Report State wise</a></li>
				<!-- <li><a href='spares/invrepoeng-gr3.php'>Eng Grp Report(Sales-Return)</a></li>
				<li><a href='spares/invrepoeng-gr4.php'>Eng Grp Report(Sales-Return)</a></li> -->
				<li><a href='spares/viswas.php'>Proj Viswas Report</a></li>
				<li><a href='spares/discrptdetails.php'>Spare Dis Invoice Report</a></li>
				<li><a href='.#'>Quotation Reports -></a>
							<ul>
							<li><a href='spares/quotrepo.php'>Quotation Report</a></li>
							<li><a href='spares/quotrepoeng4.php'>Quot-Report Eng Wise</a></li>
							<li><a href='spares/quotandinvoice.php'>Quot v/s Inv-Order Wise</a></li>
							<li><a href='spares/pendingquotparts2.php'>Pending Quot Parts</a></li>
							<li><a href='spares/orderlossreport.php'>Back Order  Report</a></li>
							<li><a href='spares/invoicewithoutquot.php'>Invoice Wout Quot Report</a></li>
							<li><a href='spares/allbrquotrepo2.php'>All Br Quot Report</a></li>
							</ul>
				</li>
				<li><a href='#'>Invoice-Reports -></a>
						<ul>
						<li><a href='spares/invrepoeng-gr2.php'>Invoice-Rpt Eng/Gr</a></li>
						<li><a href='spares/invrepo.php'>Invoice-Report 1</a></li>
						<li><a href='spares/invrepooil.php'>Invoice-Report 1(Oil)</a></li>
						<li><a href='spares/invrepo2.php'>Invoice-Report 2</a></li>
						<li><a href='spares/invreposum.php'>Invoice-Summary</a></li>
						<li><a href='spares/invrepogr.php'>Invoice-Gr wise</a></li>
						<li><a href='spares/invrepo3.php'>Invoice-Cust wise</a></li>
						<li><a href='spares/invrepo4.php'>Invoice-Cust wise(All Br)</a></li>
						<li><a href='spares/invrepocust-grp.php'>Invoice-Cust(Group)</a></li>
						<li><a href='spares/invcust.php'>Invoice-Cust(Single)</a></li>
						</ul>
				</li>
				<li><a href='spares/winvcust.php'>Wrty Invoice Summary</a></li>
				<li><a href='spares/invrepogr-all.php'>Counter Sale-Gr/Br wise</a></li>
				<!--
				<li><a href='spares/invrepogr-allnoserv.php'>Counter&JCard-Gr/Br wise-No Serv</a></li>
				<li><a href='spares/invrepogr-odrf_wh.php'>Counter Sale-Gr/Br wise(ODRF Parts)</a></li>  -->
				<li><a href='spares/jcardgridrepo.php'>JCard Grid Report</a></li>
				<li><a href='spares/jcardgridreposum.php'>JCard Grid(Summry)</a></li>
				<li><a href='spares/jcardgridreponew.php'>JCard Grid(Detail)</a></li>
				<li><a href='spares/invrepogr-alltmp.php'>Counter&JCard-Gr/Br wise</a></li>
				<li><a href='spares/invrepo_gst_ndp.php'>Sales in NDP Cost</a></li>
				<li><a href='spares/invrepofoc.php'>Invoice FOC</a></li>
				<li><a href='spares/warrepo.php'>Warranty Invoice</a></li>
				
				<li><a href='spares/allwarrepo.php'>WI-Cancel</a></li>
			</ul>
	</li>
	<li><a href='#'>Miscellaneous -></a>
		<ul>
		    <li><a href='spares/srepopending.php'>Pending Sale Order</a></li>
		    <li><a href='spares/srepopendingnew.php'>*Pending Sale Order New</a></li>
			<? /*<li><a href='spares/wartrrepoin.php'>Warranty Transfer In</a></li>
			<li><a href='spares/wartrrepout.php'>Warranty Transfer Out</a></li>
			<li><a href='spares/recon.php'>Reconciliation</a></li>
			<li><a href='spares/itpur.php'>Item Purchase</a></li>
			<li><a href='spares/sparewsalesnew.php'>W_Spare Sales Report</a></li>
			<li><a href='spares/warpending.php'>Warranty Pending (BR)</a></li>
			<li><a href='spares/warpending_all.php'>Warranty Pending(At BR)</a></li>
			<li><a href='spares/sparetrinwarph_allbr.php'>Warranty Pen From kubota</a></li> */?>
		</ul>
	</li>
	<li><a href='#'>Stock Reports-></a>
			<ul>
			<li><a href='spares/stockrepo_br2new.php'>Search Stock(All Br)</a></li>
			<li><a href='spares/bucketsparerepo.php'>Non Stock Item Report</a></li>
			<!-- <li><a href='spares/stockagingnew.php'>Dead Stock Report</a></li> -->
			<li><a href='spares/deadstk.php'>*Dead Stock Report(New)</a></li>
			<li><a href='spares/deadstk.php'>Dead StkReport(SingleBranch)(OLD)</a></li>
			<li><a href='spares/conclstk.php'>*Closing Stock Reg</a></li>
			<li><a href='spares/recon_md.php'>Stock_In_Trasit(Hanging)</a></li>
			<li><a href='spares/stockrepodw1op.php'>Opn StockReport</a></li>
			<li><a href='spares/stockrepdetval.php'>*Stock Report</a></li>
			<li><a href='spares/stockrepdetvalmanu.php'>*Stock Report(Manufacturer)</a></li>
			
			<li><a href='spares/stockaging2.php'>*StkReport(Allbranch)</a></li>
			<!--<li><a href='spares/stockagingnew.php'>*StkReport(Allbranch-New)</a></li>
			<li><a href='spares/stockaging3.php'>*StkReport(SingleBranch)</a></li>
			<li><a href='spares/stockrepdet.php'>*StockReport(IN-OUT)</a></li>
			<li><a href='spares/stockrepo_br2.php'>Stock Report(All Br)</a></li>  -->
			<li><a href='spares/stockrepodwsumm.php'>Summary Stock</a></li>
			<li><a href='spares/2minstk.php'>Min.Stock</a></li>
			<li><a href='spares/adjrepo.php'>Stock ADJ</a></li>
			<li><a href='spares/stockled.php'>Stock Ledger</a></li>
			<li><a href='spares/sparestocknew.php'>Stock Report(ODRF)</a></li>
			</ul>
	</li>
	
	<li><a href='spares/invrepostat.php'>Invoice Receipt Status</a></li>
	<li><a href='spares/invrepobrnew.php'>Daily Consum Report</a></li>
	<li><a href='#'>Purchase -></a>
			<ul>
			<li><a href='spares/purrepo.php'>Purchase Report</a></li>
			<li><a href='spares/preturnrepo.php'>Purchase Return</a></li>
			<li><a href='spares/purcledger.php'>Purchase Ledger</a></li>
			<li><a href='spares/sparepurchnew.php'>*(Spare Purchase Report)</a></li>
			</ul>
	</li>
	<li><a href='spares/ndpall.php'>NDP ALL</a></li>
	<li><a href='spares/ndpparts.php'>NDP(SINGLE)</a></li>
	<li><a href='spares/listpricerpt.php'>*PriceList</a></li>
	<li><a href='spares/itemrpt.php'>*Item List</a></li>
	<!--
	<li><a href='spares/traceitem.php'>Trace Item</a></li>
	<li><a href='spares/sparesaletarget.php'>Spare Sales v/s Tar Report</a></li>
	<li><a href='spares/sparesaletarget-cum.php'>Spare Sales v/s Tar Rpt(cumu)</a></li> -->
	<li><a href='spares/sparesalenew.php'>Spare Sales Report</a></li>
	
	<li><a href='spares/traceitemnew.php'>Trace Item(new)</a></li>
	<li><a href='spares/translist.php'>*Item Transaction List</a></li>
	<li><a href='spares/newrep.php'>Sales Report(Qty)</a></li>
	</ul>
</li>
<?
}
 if(strrpos($dept,'Vehicle')>0)
    {
?>
<li><a href='#'>VEHICLE</a>strtolower(
	<ul)>
	<li><a hrefstrtolower(='#'>)Veh Master -></a>strtolower(
	<ul>
		<li><a href='service/supp-mast.php?usersession=<?echo $user_session;?>'>Supplier</a></li>
		<li><a href='service/srep.php'>Sales Rep</a></li>
		<li><a href='service/fine.php'>Financer</a></li>
		<li><a href='service/branch.php'>Branch</a></li>
			<? if($user=='antony'||$user=='demo'||$user=='basavaraju'||$user=='swamy')
			{
			?>
	       
	        	<li><a href='custmaster.php?usersession=<?echo $user_session;?>'>Customer</a></li>
	        <? 
			}
			?>
			
		
	</ul>
	</li>

	<li><a href='service/advform.php'>Advance Receipt</a></li>
	<li><a href='advreport.php'>Adv Receipt_Report</a></li>
	<li><a href='service/veh_opstock.php'>Op Stock</a></li>

	<li><a href=''>Reports -></a>
	<ul>
	<li><a href='service/dw.php'>D/w Veh.Stock Report</a></li>
	<li><a href='service/stockled_veh.php'>Stock Ledger</a></li>
	<li><a href='service/purreg.php'>Purchase Register</a></li>
	<li><a href='service/salereg.php'>Sales Register</a></li>
		<!--
		<li><a href='service/salereg2.php'>Sales Register (Fin)</a></li>
		<li><a href='service/salereg3.php'>Sales Register (Addr)</a></li>
		-->
		<li><a href='service/purretreg.php'>Pur-Return Register</a></li>
		<li><a href='service/saleretreg.php'>Sales-Return Register</a></li>
		<li><a href='service/stinreg.php'>Stock Transin Reg</a></li>
		<li><a href='service/stoutreg.php'>Stock Transout Reg</a></li>
		</ul>
	</li>
	<li><a href='#'>Purchase -></a>
		<ul>
		
		<li><a href='service/veh_purch1.php'>Vehicle Purchase</a></li>
		<li><a href='service/purch_ret.php'>Purchase Return</a></li>
		</ul>
	</li>
	<li><a href='#'>Invoice -></a>
		<ul>
		<li><a href='service/ttype.php'>Invoice Type Master</a></li>
		<li><a href='service/invoice1.php'>Invoice - Vehicle</a></li>
		<li><a href='service/prnvehinvoice_new.php' target='blank'>Duplicate-Invoice</a></li>
		<li><a href='service/seainvoice.php'>Edit Invoice</a></li>
		<li><a href='service/veh_sale_ret.php'>Sales Returns (VEH)</a></li>
	<?//	<li><a href='veh/invoice1pm.php'>Invoice - PM</a></li>
		//<li><a href='veh/seainvoicepm.php'>Search Invoice PM</a></li>
		//<li><a href='veh/veh_sale_retpm.php'>Sales Returns (PM)</a></li> ?>
		 
		</ul>
	</li>
	<li><a href='service/dbnote.php'>Debit Note</a></li>
	<li><a href='service/crnote.php'>Cr Note(Dis Allowed)</a></li>
	<li><a href='service/crnote_spare.php'>Cr Note(Dis spares)</a></li>
	<li><a href='service/stockrepo_veh.php'>Veh.Stock Report</a></li>
		<li><a href='service/veh_transin.php'>Stock Transfer IN</a></li>
		<li><a href='service/veh_transout.php'>Stock Transfer out</a></li>
		<li><a href='service/delvrchlnstrt.php'>Delivery Challan</a></li>
		<li><a href='service/delvrchlnprnt1.php'>Delivery Challan Dup Copy</a></li>
		
	
	</ul>
</li>
<?}
 if(strrpos($dept,'Master')>0)
    {
?>
<li><a href='#'>MASTER</a>
	<ul>
	<li><a href='corp-mast.php'>Corporate</a></li>
	<li><a href='#'>Machine -></a>
		<ul>
			<li><a href='machmaster.php'>Model Master</a></li>
			<li><a href='configmaster.php'>Config Master</a></li>
			<li><a href='service/segment.php'>Segment Master</a></li>
			<li><a href='enginemaster.php'>Engine Master</a></li>
			<li><a href='srepo.php'>Service Report</a></li>
			<li><a href='shis.php'>Service History</a></li>
			<li><a href='machtyp.php'>Machine Type</a></li>
		
		</ul>
	</li>
		<li><a href='#'>Employee Master -></a>
		<ul>
			<li><a href='divmast.php'>Division</a></li>
			<li><a href='deptmast.php'>Department</a></li>
			<li><a href='newdesig.php'>Designation</a></li>
			<li><a href='newemp.php'>New Employee</a></li>
			<li><a href='seaemp.php'>Search Employee</a></li>
		</ul>
	</li>
	<li><a href='inqsource.php'>Inquiry Source</a></li>
	<li><a href='prospectmaster.php'>Prospect</a></li>
		<? if($user=='antony'||strtolower($user)=='achu'||$user=='basavaraju'||$user=='swamy'||$user=='joy'||$user=='joyacc' || (substr(strtolower($user),0,8)=='laxmeesh') || strtolower($user) == 'sayand' || $user == 'rakeshmk'|| $user == 'malligarjun'|| $user == 'HARSHITHAPPL'|| $user == 'GEETHAPPL' || strtoupper($user) == 'HARSHITHA' || strtoupper($user) == 'ABHIJITH' || strtoupper($user) == 'OBULESH')
			{
			    if($user=='antony'||strtolower($user)=='achu'||$user=='basavaraju'||$user=='swamy'||$user=='joy'||$user=='joyacc' || (substr(strtolower($user),0,8)=='laxmeesh') || strtolower($user) == 'sayand' || $user == 'rakeshmk'|| $user == 'malligarjun'|| $user == 'HARSHITHAPPL'|| $user == 'GEETHAPPL' || strtoupper($user) == 'HARSHITHA' || strtoupper($user) == 'ABHIJITH'){?>
			?>
	            <li><a href='partmastrepo.php?usersession=<?echo $user_session;?>'>Edit Part Master</a></li>
	            <?}?>
	        	<li><a href='custmaster.php?usersession=<?echo $user_session;?>'>Customer</a></li>
	        <? 
			}
			if(strtolower($user) == 'sayand' || (substr(strtolower($user),0,8)=='laxmeesh'))
			{
			?>
			<li><a href='custaprov.php'>Customer Approval</a></li>
		    <?
			}
		    ?>
	
	<li><a href='termsmaster.php'>Terms & Conditions</a></li>
	<li><a href='transpmaster.php'>Transport</a></li>
	<li><a href='listcust.php'>CustomerList(All)</a></li>
	<li><a href='listcreditcust.php'>Cust List(Credit)</a></li>
	<li><a href='service/updpartloc.php'>Update Part Location</a></li>
	<li><a href='labourmast.php'>Labour Master</a></li>
	<li><a href='dsrmast.php'>DSR Master</a></li>
	<li><a href='areamaster.php'>Location Master</a></li>
    <li><a href='tcsledgers.php'>Customer > 50Lacs</a></li>
    <li><a href='spares/promotionact.php'>Promotional Activity</a></li>
	</ul>
</li>
<?}
 if(strrpos($dept,'Sales')>0)
    {
?>
<li><a href='#'>Sales</a>
	<ul>
	<li><a href='service/iqsource.php'>Source</a></li>
	<li><a href='pcmaster.php'>Platform/Criteria</a></li>
	<li><a href='service/locmaster.php'>Location</a></li>
	<li><a href='service/target.php'>Target</a></li>
	<li><a href='service/model.php'>Pre-sale Model</a></li>
	<li><a href='inquiry.php'>Inquiry</a></li>
	<li><a href='list.php'>Followup Report</a></li>
	<li><a href='service/tabill.php'>T.A Bill</a></li>
		<li><a href='#'>Reports -></a>
			<ul>
			<li><a href='iqrepo.php'>Inquiry Report</a></li>
			<!--<li><a href='service/prospadd.php'>SAP B1 Report</a></li>
			<li><a href='service/manrepo1.php'>Exec Report</a></li>
			<li><a href='service/modrepo1.php'>Model wise Report</a></li>-->
			<li><a href='service/manrepo2.php'>Exec Report</a></li>
			<li><a href='service/manrepo3.php'>Exec Report</a></li>
			</ul>
		 </li>
	<li><a href='service/chuser.php'>Exec Report</a></li>
	</ul>
</li>
<?}
 if(strrpos($dept,'Utilities')>0)
    {
?>
<li><a href='#'>Utilities</a>
	<ul>
	    <?
	    if($user=='satheesh')
	    {
	    ?>
		<li><a href='chngptyp.php' >Change Job Card Bill Type</a></li>
		<li><a href='changecntrtyp.php' >Change Countersale Bill Type</a></li>
		<?
	    }
		if(strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
	    {
	    ?>
		<li><a href='spares/updpmast.php' >Upload Partmaster</a></li>
		
		<li><a href='spares/updlocat.php' >Upload Bin Location</a></li>
		<li><a href='spares/updopstk.php' >Upload Opening Stock</a></li>
		
		<li><a href='upld_incentive.php'> Upload Commission</a></li>
		<li><a href='jour_incentive.php'>A/C Posting Comm</a></li>
		
	    <?}?>
	    <li><a href='spares/updhsn.php' >Upload HSN CODE</a></li>
		<!--
		<li><a href='spares/updmin.php'>Search spare</a></li>
		<li><a href='spares/seastk.php'>Search spare</a></li>
		<li><a href='service/cheng.php'>Change Engineer</a></li>
		-->
		<li><a href='service/chkdupled.php'>Check Dup Ledger</a></li>
		<li><a href='spares/agecalcstock.php'>Agewise Spare Stock</a></li>
		<li><a href='chp.php'>Change Password </a></li>
	<?if($user=='satheesh'|| strtolower($user)=='siju')
	    {	?>
		<li><a href='#'>Stock Adjustment -></a>
	<ul>
	    <li><a href='adjstock_new.php'>Stock Adjustment</a></li>
		<li><a href='damagestock.php'>Damagestock Conversion</a></li>
	    <li><a href='spares/adjrepo.php'>Stock Adjustment Report</a></li>
	    <li><a href='spares/damagestockrept.php'>Damage Stock Report</a></li>
	    
	    </ul>
	    </li>
		<?}?>
		
		<li> <a href='chkledniltr.php'>Nill Trans Ledgers</a></li>
		<li> <a href='spares/ewayinvoiceentry.php'>JSON File for E-Way</a></li>
		<li> <a href='spares/einvoice_spareinvoice.php'>E-INVOICE JSON DOWNLOAD</a></li>
		<li> <a href='spares/sap_spareinvoicejson.php'>E-INVOICE JSON DOWNLOAD(Bulk)</a></li>

		<li> <a href='spares/sap_del_einvoice.php'>E-INVOICE JSON DELETE</a></li>
		<li> <a href='spares/einvoice_spareinvoice_lube.php'>E-INVOICE JSON DOWNLOAD(Oil)</a></li>
		<li><a href='spares/einvoice_salesreturn.php'>E-INV JSON DOWNLOAD(Sales Return)</a></li>
		<li><a href='spares/einvoice_stocktransout.php'>E-INV JSON DOWNLOAD(Stock Transfer)</a></li>
		<li><a href='spares/einvoice_crnote.php'>E-INV JSON DOWNLOAD(Credit Note)</a></li>
		<li> <a href='spares/upldjson_spr.php'>E-INVOICE JSON UPLOAD</a></li>
		<li> <a href='spares/einvoice_purchretn.php'>E-INV JSON DOWNLOAD(Purch Ret)</a></li>
		
	</ul>
</li>
<?}
  if(strrpos($dept,'Service-jobcard')>0||strrpos($dept,'Warranty')>0 && $level>2)
    {
?>
<li><a href='#'>Service(Jobcard)</a>
	<ul>
	    <?if(strrpos($dept,'Service-jobcard')>0||strrpos($dept,'Warranty')>0)
		{?> 
	    <li><a href='#'>Master -></a>
			<ul>
			    	<? if($user=='antony'||$user=='basavaraju'||$user=='swamy')
			{
			?>
	      
	        	<li><a href='custmaster.php?usersession=<?echo $user_session;?>'>Customer</a></li>
	        <? 
			}
			?>
			
			
                <li><a href='labourmast.php'>Labour Master</a></li>
			</ul>
		</li>
	<!--<li><a href='service/purchnew.php'>Invoice</a></li>
	<li><a href="serinvoice.php?jcno=" target="_blank">Print Invoice</a></li>
	<li><a href='service/editpjcard.php'>Edit Invoice</a></li>-->
	<li><a href='service/jobcrdslct.php'>Job Card Issue</a></li>
	<li><a href='service/jcardrepostrt.php'>Job Card Edit</a></li>
	<li><a href='service/prnjcardbill.php' target='blank'>Duplicate Bill</a></li>
	<li><a href='service/prnjcardbill_invtyp.php' target='blank'>Duplicate Bill(Invoicewise)</a></li>
	<li><a href='service/jcardrepo2.php'>Job Card Report</a></li>
	<li><a href='service/misscus.php'>Missed Customers</a></li>
	<li><a href='service/jcardcancel.php'>Cancel Job Card</a></li>
	
		<li><a href='#'>Estimate -></a>
			<ul>
				<li><a href='service/jcardquotstrt.php'>Estimate</a></li>
				<li><a href='service/jcardrepoqstrt.php'>Estimate Edit</a></li>
				<li><a href='service/prnjcardbillq.php' target='blank'>Print Estimate</a></li>
				<li><a href='service/jcardrepo2q.php'>Estimate Register</a></li>
			</ul>
		</li>
		
		<?}?>	
		
		<!--<li><a href='#'>Production -></a>
			<ul>
				<li><a href='service/jcardrepomanu.php'>Production</a></li>
				<li><a href='service/editjmanu.php'>Edit Production</a></li>
				<li><a href='labourmast.php'>LabourMaster</a></li>
			</ul>
		</li>-->
		<?if(strrpos($dept,'Warranty')>0)
		{?>
		<li><a href='#'>Warranty -></a>
			<ul>
			    <li><a href='service/warrcomp.php'>Warr Bill Name&Address</a></li>
			    <li><a href='wrnty_labourmast.php'>Warr Labour Master</a></li>
				<li><a href='service/wrntyjcardstrt.php'>Warranty Claim Regn.</a></li>
				<li><a href='service/prnjcardbill_wrty.php'>Dupl. Warranty Invoice</a></li>
				<li style="height:1px;border:solid 1px #666"> </li>
				<li><a href='spares/item_purchase.php'>Purch(Warr Item-Sub Dlr)</a></li>
				<li><a href='service/jobcrdslctwar.php'>Job Card Issue(Sub Dlr)</a></li>
				<li><a href='service/wrntyjcardstrtwar.php'>Warr Claim Regn(Sub Dlr)</a></li>
				<li><a href='service/prnjcardbill_subdlr.php'>Dupl.Warr Inv(Sub Dlr)</a></li>
			</ul>
		</li>
		<li><a href='#'>Free Service -></a>
			<ul>
				<li><a href='frsrv_labourmast.php'>Free Service Labour Master</a></li>
				<li><a href='service/frjcardstrt.php'>Free Service Claim Regn.</a></li>
				<li><a href='service/prnjcardbill_frsrv.php'>Dupl. Free Service Invoice</a></li>
				<li style="height:1px;border:solid 1px #666"> </li>
				<li><a href='service/jobcrdslctfree.php'>Job Card Issue(Sub Dlr)</a></li>
				<li><a href='service/wrntyjcardstrtfree.php'>Free Service Claim Regn(SubDlr)</a></li>
				<li><a href='service/prnjcardbillfrsrv_subdlr.php'>Dupl.Free Service Inv(Sub Dlr)</a></li>
			</ul>
		</li>
		
		<!--
		<li><a href='#'>Machine -></a>
		<ul>
			<li><a href='machmaster.php'>Model Master</a></li>
			<li><a href='configmaster.php'>Config Master</a></li>
			<li><a href='service/segment.php'>Segment Master</a></li>
			<li><a href='enginemaster.php'>Engine Master</a></li>
			<li><a href='srepo.php'>Service Report</a></li>
			<li><a href='shis.php'>Service History</a></li>
			<li><a href='machtyp.php'>Machine Type</a></li>
		
		</ul>
	</li>
	-->
			<?}?>

		
		
		
	</ul>
</li>
<?}
 if(strrpos($dept,'Service-site')>0||strrpos($dept,'Warranty')>0 && $level>2)
    {
?>
<li><a href='#'>Service(Site)</a>
    <ul>
    <li><a href='callreg.php'>Appointment</a></li>
    <li><a href='calllist.php'>App.Register</a></li>
    <li><a href='serlist.php'>Follow up</a></li>
    <li><a href='minput.html' target='s'>Machine Input</a></li>
    <li><a href='machlist.php' >Machine Details</a></li>
    <li><a href='serfollow.php'>Serfollow</a></li>
       <li><a href='machlist.php'>Reports -></a>
          <ul>
                <li><a href='machpopu.php'>PM Chart (new)</a></li>
                <li><a href='servicecallrpt.php'>Service Call</a></li>
                <li><a href='reve.php'>Revenue Msi</a></li>
                <li><a href='reveasc.php'>Revenue Asc</a></li>
                <li><a href='servicetaxrpt.php'>Service Tax Report</a></li>
                <li><a href='msiallrpt.php'>Msi Complete List</a></li>
                <li><a href='msinonclaimrpt.php'>Msi Not Claimed</a></li>
                <li><a href='msiclaimrpt.php'>Msi Caling Against</a></li>
                <li><a href='mlist.php'>History</a></li>
 
          </ul>
       </li>
    </ul>
</li>
<?}

 if(strrpos($dept,'Spares')>0 && $level>2)
    {
?>
<li><a href='#'>Spares</a>
	<ul>
	<li><a href='#'>Spares Master -></a>
		<ul>
		    <? if((substr(strtolower($user),0,8)=='laxmeesh')||(substr(strtolower($user),0,8)=='joy')||(substr(strtolower($user),0,4)=='achu')||(substr(strtolower($user),0,8)=='rakeshmk'))
			{?>
			<li><a href='spares/taxmaster.php'>Taxmaster</a></li>
			<li><a href='spares/grmaster.php'>Group Master</a></li>
			<li><a href='spares/subgrmaster.php'>Sub Group Master</a></li>
			
			<li><a href='partmaster.php'>Part Master</a></li>
			<li><a href='manufact.php'>Manufacturer</a></li>
			<li><a href='modelmast.php'>Model</a></li>
			<?}?>
			<? if($user=='antony'||$user=='demo'||$user=='basavaraju'||$user=='swamy' || (substr(strtolower($user),0,8)=='laxmeesh'))
			{
			?>
	        <li><a href='partmastrepo.php?usersession=<?echo $user_session;?>'>Edit Part Master</a></li>
	        	<li><a href='custmaster.php?usersession=<?echo $user_session;?>'>Customer</a></li>
	        <? 
			}
			?>
			
	       <? if( strtolower($user)=='sayand' || strtolower($user)=='rakeshmk')
			{
			?>
	        
	        	<li><a href='upddiscperc.php' >Discount Updation</a></li>
	        <? 
			}
			?>
	       	<li><a href='service/supp-mast.php?usersession=<?echo $user_session;?>'>Supplier</a></li>
	       	<li><a href='minput.html' target='s'>Machine Input</a></li>
	       	   <li><a href='machlist.php' >Machine Details</a></li>
	       	   <li><a href='newemp.php'>New Employee</a></li>
			<!--<li><a href='spares/updlocmast.php'>Upload Loc Master</a></li>

			<li><a href='spares/upldprmaster.php'>Upld.Price Master(Bang)</a></li>
			<li><a href='spares/chkoppr.php'>CHK Opstock&Price</a></li>
			<li><a href='spares/chkpmpr.php'>CHK Part Mast&Price</a></li>-->
		</ul>
	</li>
	<li><a href='#'>Spares Purchase -></a>
		<ul>
		    <?
		    
		    if($level>3 && strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
		        {
		        ?>)
		    {
		        ?>
		    <li><a href='spares/purordr.php'>Purchase Order</a></li>
		    <li><a href='spares/purordadd.php'>Edit Purchase Order</a></li>
            <li><a href='spares/purordr_br.php'>Branch Request</a></li>		    
			<li><a href='spares/pbyporder.php'>Purchase by P Order</a></li>
			<?
			if($brcode=='BLRACC')
			{
			?>
			<li><a href='spares/pbypordermulti.php'>Purchase by Multi P Order</a></li>
			<?
			}
			?>
			<li><a href='spares/editpurchase1.php'>Edit Purchase</a></li>
			<li><a href='spares/approve_purorder.php'>Approve Purchase Order</a></li>
            <li><a href='spares/prnpurchordr.php'>Print Purchase Order</a></li>			
			<li><a href='service/upldpordertelcon.php'>Upload Purchase Order</a></li>
			<li><a href='spares/pur_orderview.php'>View Purchase Order</a></li>
			<li><a href='spares/porderpnd.php'>Pending Purchase Order</a></li>
			<li><a href='spares/preturn.php'>Purchase Return</a></li>
			<li><a href='spares/purchret_dup1.php'>Purchase Ret Dup. Print</a></li>
			<li><a href='spares/preturnold.php'>Purchase Return old</a></li>
			<li><a href='spares/clporder.php'>Closed Purchase Order</a></li>
			<li><a href='spares/purchorderrpt.php'>Purchase Order Report</a></li>
			<li><a href='spares/purchclaim.php'>GRN Claim Register</a></li>
			<li><a href='upld_purchase.php'>**Upload Spare Purchase</a></li>
				<?
		    }
		    ?>
		</ul>
	</li>
	<li><a href='#'>Spares Invoice -></a>
		<ul>
		<?
		    
		    if($level>3)
		    {
		        if(substr($brcode,0,3)!='VAL' && strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
		        {
		        ?>
			        <li><a href='spares/invoice11new.php'>Sale Order</a></li>
			        <li><a href='spares/invoice33new.php'>Edit Sale Order</a></li>
			        <li><a href='spares/prnsaleordr.php'>Print Sale Order Picking List</a></li>
			       <? if($brcode=='BLRACC')
			       {
			           ?>
			           <li><a href='spares/spareinvoice.php'>Sale(Credit)</a></li>
			      <?     
			       }
			       else
			       {
			       ?>
			        <li><a href='spares/spareinvoice.php'>Sale</a></li>
			        <?
			       }
			        ?>
			        <?//<li><a href='spares/prnspareinvoice_dup1.php'>Duplicate Bill</a></li>?>
			        
		        <?}?>
		        <?if($brcode=='BLRACC'){?>
		        	<li><a href='spareinvoice_new.php'>Retail Sale (Cash/Swiping)</a></li>
		        <?
		        }
		        ?>
		        
			<li><a href='spares/prnspareinvoice_new1.php'>Duplicate Bill (New)</a></li>
			<li><a href="prnspareinvoice_dup1_22022025.php">Duplicate Bill (New Format)</a></li>
			<?if(strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
		        {
		        ?>
			<li><a href='spares/invoice11newoil.php'>Sale Order (OIL)</a></li>
			<li><a href='spares/spareinvoiceoil.php'>Sale (OIL)</a></li>
			<?}?>
			<li><a href='spares/prnspareinvoice_new1oil.php'>Duplicate Bill (OIL)</a></li>
			<?if($user=='satheesh')
             {
			?>
			<li><a href='spares/delpareinvoice_dup1.php'>Cancel Bill</a></li>
			<?}?>
			<?if($user=='basavaraju' || $user=='joyt' || $user=='anson'|| $user=='joy'||$user=='basavaraj'||(substr(strtolower($user),0,8)=='laxmeesh'))
             {
			?>
			<li><a href='crnote1.php'>Credit Note</a></li>
			<li><a href='prncrnote1.php?jvno=' target="blank">Credit Note Print</a></li>
			<?}?>
			<li><a href='spares/saleorderrpt.php'>Sale Order Report</a></li>
			<li><a href='spares/autocoupongen.php'>AUTOSPEC Coupon Generate</a></li>
		<!--	<li><a href='spares/invoice22new.php'>Edit Sale Order</a></li>
			<li><a href='spares/quotinvoice.php'>Saleorder To Quotation</a></li>
			<li><a href='spares/srepopending.php'>Pen Slorder Repo(Ord Wise)</a></li>
			<li><a href='spares/dup.php'>Pen Slorder Repo(Cus Wise)</a></li>
			<li><a href='spares/availper.php'>Stock availability %</a></li>

		<li><a href='spares/spareinvfoc.php'>FOC Sale</a></li>
		<li><a href='spares/salereturn.php'>Sales Return</a></li>-->

		<!---  old pages
		<li><a href='spares/salereturnold.php'>Sales Return Old</a></li>
		<li><a href='spares/salereturnold1.php'>Sales Return Old(11-12)</a></li>
		<li><a href='spares/salereturnjcold.php'>Sales Return Old(JC)</a></li>
		<li><a href='spares/wsalereturnold.php'>Warranty Sales Return Old</a></li>
		
		<li><a href='spares/wsalereturn.php'>Warranty Sales Return</a></li>
		<li><a href='spares/salereturnjc.php'>Sales Return(JC)</a></li>
		<li><a href='spares/closedsale.php'>Closed Saleorder Report</a></li>
		<li><a href='spares/invsum.php'>Invoice Summary</a></li>
		<li><a href='spares/invindex1new.html'>Warr Order</a></li>
			<li><a href='spares/invoice2.php'>Warr Order</a></li>
			<li><a href='spares/wspareinvoice.php'>Warr Sale</a></li>
			--->
				<?
		    }
		    ?>
		   <?
			if((substr(strtolower($user),0,8)=='laxmeesh')||(strtolower($user)=='narasimhamurthy')||(strtolower($user)=='narasimha')||(strtolower($user)=='murthy')||(strtolower($user)=='rakesh')||(strtolower($user)=='basavaraju') ||(strtolower($user)=='akhil')||(strtolower($user)=='vishnu'))
             {
			?>
			<li><a href='spares/boshinvdownload.php'>Transfer To PSN Auto(Download)</a></li>
			<?
             }
			?>
		</ul>
	</li>
    <?if(strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
		        {
		        ?>
	<li><a href='#'>Proforma -></a>
		<ul>
    <li><a href='spares/quotenew.php'>Proforma Order</a></li>
	<li><a href='spares/quoteinvoice.php'>Proforma Invoice</a></li>
	<li><a href='spares/prnquoteinvoice_dup1.php' target='blank'>Duplicate Print</a></li>
		<li><a href='spares/qdup.php'>Report</a></li>
		</ul>
	</li>
	
	<li><a href='#'>Dispatch Details-></a>
	<ul>
    <li><a href='spares/dispatch.php'>Dispactch Entry</a></li>
	<li><a href='spares/dispatchrep.php'>Report</a></li>
	<li><a href='spares/dispatchpendrep.php'>Pending Report</a></li>
	<li><a href='spares/upld_dispatchinv.php'>Upload Dispatch details</a></li>
	</ul>
	</li>
	<?}?>
	<?if(strtolower($user)=='vishnu' ||strtolower($user)=='rakesh'){?>
	    <li><a href='#'>Dispatch Details(BOSCH)-></a>
	    <ul>
        <li><a href='spares/dispatch_bosch.php'>Dispactch Entry(BOSCH)</a></li>
	    <li><a href='spares/dispatchrep_bosch.php'>Report(BOSCH)</a></li>
	    <li><a href='spares/dispatchpendrep_bosch.php'>Pending Report(BOSCH)</a></li>
	    </ul>
	</li>
	<?}?>
<!--	<li><a href='spares/exeodrf.php'>AUTO ODRF</a></li>
	<li><a href='spares/exepending.php'>Pending Orders</a></li>-->
	
	<li><a href='#'>Sales Return</a>
		<ul>
		    <li><a href='spares/salereturn.php'>Sales Return</a></li>
		    <li><a href='spares/salesret_dup1.php'>Duplicate Print</a></li>
		    <li><a href='spares/salereturn_prv.php'>Sales Return(Previous Year)</a></li>
		    <li><a href='spares/salereturn_prv1920.php'>Sales Return(1920)</a></li>
		    <li><a href='spares/salereturn_prv2122.php'>Sales Return(2122)</a></li>
		    <li><a href='spares/salereturn_prv2223.php'>Sales Return(2223)</a></li>
		    <li><a href='spares/salesret_dup1_prv.php'>Duplicate Print(Previous Year)</a></li>
<li></li>		    
		    <li><a href='spares/salereturnoil.php'>Sales Return(Oil)</a></li>
		    <li><a href='spares/salereturn_prvoil.php'>Sales Return(Previous Year)(Oil)</a></li>
		</ul>

	</li>
	
<?if(strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
		        {
		        ?>
	
	<li><a href='#'>Stock Transfer -></a>
		<ul>
		    <? if($user=='satheesh')
			{
			?>
	        <li><a href='spares/branch_bulk_transfer.php'>Bulk Transfer</a></li>
	        <? 
			}
			?>
		    <li><a href='spares/transout.php'>Stock Transfer OUT</a></li>
		    <li><a href='spares/ter_printinv_delchln1.php'>Duplicate Print</a></li>
		    
	        <li><a href='spares/transin.php'>Stock Transfer IN</a></li>
	        <li><a href='spares/ter_printinv_delchlnin1.php'>Duplicate Print(Trans In)</a></li>
		</ul>
	</li>
	<?}?>
<!--	<li><a href='spares/exerecon.php'>Transfer_Out(Recon)</a></li>
	<li><a href='spares/warrantyrpt.php'>Warranty Billing</a></li>
	<li><a href='spares/stockrepodw.php'>Stock Report D/W</a></a></li>

	<li><a href='spares/wtypending.php'>Wty Pendency</a></li>-->
	<?if(strtoupper($user)!='HARSHITHAPPL' && strtoupper($user)!='GEETHAPPL')
		        {
		        ?>
	<li><a href='service/serlist.php'>Service Parts</a></li>
	<li><a href='service/movreg.php'>Movement Register</a></li>
		<li><a href='spares/stockaging21.php'>Stock Report NEW</a></a></li>

	<li><a href='spares/stockled.php'>Stock Ledger</a></li>
	<li><a href='spares/stockcons_all.php'>Stock & Consumption</a></a></li>
	<li><a href='updparthsnloc.php'>HSN Code & Location Updation</a></a></li>
	<li><a href='deliverychallan.php'>Deliverychallan</a></a></li>
	<li><a href='spares/tcsledgers.php'>TCR Check Report</a></a></li>
	<?
    }
	if((substr(strtolower($user),0,8)=='laxmeesh')||(strtolower($user)=='narasimhamurthy')||(strtolower($user)=='rakeshmk')||(strtolower($user)=='basavaraju') ||(strtolower($user)=='akhil')||(strtolower($user)=='joy')||(strtolower($user)=='vishnu')||(strtolower($user)=='neelappa')||(strtolower($user)=='sajeesh')||(strtolower($user)=='chandra'))
    {
	?>
	    <li><a href='qtytransfer.php'>Damage Stock Conversion</a></a></li>
	    <li><a href='qtytransnormal.php'>Convert back to Normal</a></a></li>
	<?}?>
	<li><a href='spares/listpricerpt1.php'>Complete Parts List</a></a></li>
	</ul>
	
</li>
<?}
?>
<li><a href='spares/search_all.php'>Search Item</a></li>
<?
 if(strrpos($dept,'Accounts')>0)
    {
?>

<li><a href='#'>Accounts</a>
	<ul>
	<li><a href='accounts/sealedge.php'>Search Ledger</a></li>
		<li><a href='#'>Reports -></a>
			<ul>
			<li><a href='accounts/cbookmnu.php'>Cash Book</a></li>
			<li><a href='accounts/bnkbookmnu.php'>Bank Book</a></li>
			<li><a href='accounts/listledgers2.php'>Ledger-Dt wise</a></li>
			<li><a href='tbmnu.php'>Trial Balance</a></li>
			<li><a href='accounts/dstate.php'>Daily Statement</a></li>
			<li><a href='accounts/db1.php'>Day Book</a></li>
			<li><a href='accounts/debtaging.php'>Debtors Aging List(Dr)</a></li>
			<li><a href='db3.php'>Debtors Aging List(Dr)D/Wise</a></li>
			<?
			if($brcode=='HUBACC'){
			?>
			<li><a href='db3allbr_valvo.php'>Debtors Aging (Dr)D/Wise(VALVO+PPL)</a></li>
			<?}?>
			<li><a href='db3_future.php'>Debtors Aging D/Wise-Future</a></li>
			<li><a href='accounts/debtaging2.php'>Debtors Aging List(Cr)</a></li>
			<li><a href='accounts/debtagingcrlimit.php'>Debtors Aging (Credit Locking)</a></li>
			<li><a href='accounts/jour1.php'>Journal Entries</a></li>
			<li><a href='tdsrptnew.php'> TDS Entry</a></li>
			
			<li><a href='db3ar.php'> Aging Receivables (Dr)</a></li>
			<li><a href='db33cr.php'> Aging Payables (Cr)</a></li>
			<li><a href='paypdf/custled.php' target='_blank'> Send Customer Ledger</a></li>
			<li><a href="db3allbr.php"> Ageing Receivables(Dr)(All Br.) </a></li>
<li><a href="db33crallbr.php"> Ageing Payables(Cr)(All Br.) </a></li>

			</ul>
	</li>
 <?
		    
		    if($user=='sunithb'||$user=='sunithh'||$user=='sunithv'||$user=='sunitht'||$user=='sunith'||$user=='anoop'||$user=='joy')
		    {
		        ?>

<li><a href='accounts/acgroup.php'>Group Master</a></li>
		<li><a href='accounts/ledge.php'>Ledger Master</a></li>
	<?
		    }
		    ?>
	 <?
		    
		    if($level>2)
		    {
		        ?>
		        		<li><a href='#'>Transactions -></a>
			<ul>
			    <?if($urow[2]!='No Accounts Trans') {?>
	<li><a href='accounts/cshrec.php'>Cash Receipts</a></li>
	<li><a href='cshpay.php'>Cash Payment</a></li>

<!--	<li><a href='#'>Dup copy -></a>
			<ul>
			<li><a href='service/preprnvehinvoice2.php?invno=' target='blank'>PRE-Invoice 8b(VEH)</a></li>
			<li><a href='service/preprnvehinvoice3.php?invno=' target='blank'>PRE-E1 (VEH)</a></li>
			<li><a href='service/prnvehinvoice3.php?invno=' target='blank'>PLAIN-E1(VEH)</a></li>
			<li><a href='service/prnvehinvoice2.php?invno=' target='blank'>PLAIN-Invoice 8b(VEH)</a></li>
			<li><a href='service/prntransout.php?invno=1' target='blank'>Transfer Out (VEH)</a></li>
			<li><a href='accounts/prncshrec.php?no=' target='blank'>Cash Receipt</a></li>
			<li><a href='accounts/prnbnkrec.php?no=' target='blank'>Bank Receipt</a></li>
			<li><a href='service/prnadvrec.php?jvno=' target='blank'>Advance Receipt</a></li>
			<li><a href='service/duprec.php?jvno=' target='blank'>Receipt</a></li>
			<li><a href='service/prncrnote1.php?no=' target='blank'>Transfer Out (VEH)</a></li>
			<li><a href='service/prncrnote.php?no=' target='blank'>Cash Receipt</a></li>
			<li><a href='accounts/prnvoucher.php?jvno=' target='blank'>Voucher</a></li>
			</ul>
	</li>--->
	<li><a href='accounts/brec.php'>Bank Receipts</a></li>
	<li><a href='accounts/brectds.php'>Bank Receipts(TDS)</a></li>
	<li><a href='accounts/brecasc.php'>Bank Receipts(Billwise)</a></li>
	<li><a href='accounts/bpay.php'>Bank Payment</a></li>
	<li><a href='accounts/breco.php'>Bank Recon</a></li>
	<li><a href='accounts/ledreco.php'>Ledger Recon</a></li>
	<li><a href='jour.php'>Journal</a></li>
	<li><a href='tdsjour.php'>TDS Entry</a></li>
<?}?>
<li><a href='clearing1f.php'>Br. Clearing Force</a></li>
<li><a href='clearing2.php'>Br. Clearing Eicher</a></li>
<?if($urow[2]!='No Accounts Trans') {?>
	<li><a href='accounts/currency.php'>Cash Closing</a></li>
	<li><a href='loc-clear.php'>Receipt-Clearing</a></li>
		<li><a href='veh/dbnote.php?jvno=' target='blank'>Debit Note</a></li>
	<li><a href='gstmultisct2tds.php'>GST expense/asset</a></li>
	<li><a href='gstmultislct2_out.php'>GST Multiple Out</a></li>
	<li><a href='gstmultislct2_outinv.php'>GST Income Invoice</a></li> <?}?>
	</ul></li>
	<li><a href='#'>Allocation (Billwise Settlement) -></a>
	<ul>
        <li><a href='allocation.php'>Allocation</a></li>
        <li><a href='allocation_all.php'>Allocation(ALL)</a></li>
        <li><a href='allocationreport.php'>Allocation Report Customer wise</a></li>
        <li><a href='allocationreport1.php'>Allocation Report All</a></li>
        <li><a href='allocationreport_outstand.php'>Outstanding (Allocation Based)</a></li>
        <li><a href='allocationremove.php'>Remove Allocation</a></li>
	</ul>
	</li>
	
	<li><a href='#'>Vendor Allocation (Billwise Settlement) -></a>
	<ul>
        <li><a href='allocation_ven.php'>Allocation</a></li>
        <li><a href='allocation_ven_all.php'>Vendor Allocation(ALL)</a></li>
        <li><a href='allocationreport_ven.php'>Allocation Report Vendor wise</a></li>
        <li><a href='allocationreport1_ven.php'>Allocation Report All</a></li>
        <li><a href='allocationremove_ven.php'>Remove Allocation</a></li>
	</ul>
	</li>		    
	<li><a href='spares/einvoice_gstincome.php'>JSON Download(GST Mult Out)</a></li>
	<li><a href='spares/einvoice_gstincomeinv.php'>JSON Download(GST Income Inv)</a></li>
	<li><a href='sealedgall.php'>Search Ledger (All)</a></li>
	<?
		    }
	/*
		<li><a href='gstmultislct.php'>GST Multiple</a></li>
	<li><a href='accounts/period.php'>Period</a></li>
	<li><a href='accounts/acgroup.php'>Group Master</a></li>*/
	?>
	
	<li><a href='accounts/prnvoucher.php?jvno=' target='blank'>Print Voucher</a></li>
	<li><a href='prndbnote.php?dbno=' target='blank'>Debit Note Dup Copy</a></li>
	
	
		<li><a href='gstrpt.php'>GST Expense Report</a></li>
		<li><a href='gstrpt_outcust.php'>GST Income Invoice Report</a></li>
			<li><a href="accounts/db1leddwallbrstk1.php">Stock Transfer dw all br.</a></li>	
		<li><a href="colreg.php">Collection Register</a></li>
		<li><a href="chek_bounce.php">Cheque Bounce Update</a></li>	
	</ul>
</li>
<?}
 if(strrpos($dept,'Reports')>0)
    {
?>
<li><a href='#'>Reports</a>
	<ul>
	    
	    <?if(strtolower($user) =='basavaraju' || strtolower($user) =='basavaraj'|| strtolower($user) =='anson'){?>
	        <li><a href='forcecommrept.php'>Force Commission Report</a></li>
	    <?}else{?>
	    <li><a href='service/manrepo2new.php'>Daily Sales Report</a></li>
	    <?}?>
	    <li><a href='#'>Account Reports  -></a>
	    <ul>
	    <li><a href='accounts/cbookmnu.php'>Cash Book</a></li>
        <li><a href='accounts/sealedge.php'>Search Ledger</a></li>
        <? if(strtolower($user) =='neelappa')
        {
            ?>
        
        <li><a href='clearing1f.php'>Br. Clearing Force</a></li>
<li><a href='clearing2.php'>Br. Clearing Eicher</a></li>
<li><a href='accounts/debtaging.php'>Debtors Aging List(Dr)</a></li>
<li><a href='db3.php'>Debtors Aging List(Dr)D/Wise</a></li>
<li><a href='db3_future.php'>Debtors Aging D/Wise-Future</a></li>
<li><a href='accounts/debtaging2.php'>Debtors Aging List(Cr)</a></li>
       <?
        }
       ?>
        
	<li><a href='crbilling.php'>Cr Billing Report</a></li>
	<li><a href='crbillingacc.php'>Cr Billing Report(Accessories)</a></li>
	<li><a href='crbillingoil.php'>Cr Billing Report(Oil)</a></li>
	<li><a href='spares/invreposum-br1.php'>*Debtors Summary-New</a></li>
	<li><a href='spares/invreposum-era.php'>*Debtors Sum(All)New</a></li>
	</li></ul>
			<li><a href='service/saleretreg.php'>Sales-Return Register</a></li>
	<!--<li><a href='#'>Spare Tr Reports -></a>
			<ul>
				<li><a href='spares/transinrepo.php'>Transfer In</a></li>
				<li><a href='spares/transoutrepo.php'>Transfer Out</a></li>
				<li><a href='spares/transoutrepotel.php'>Transfer Out I</a></li>
				<li><a href='spares/transwaroutrepo.php'>Transfer Out II</a></li>
				<li><a href='spares/transwaroutrepo2.php'>Transfer Out-2</a></li>
				<li><a href='spares/deltranswarout.php'>DEL Transfer Out</a></li>
				<li><a href='spares/transwarinrepo.php'>Transfer IN I</a></li>
				<li><a href='spares/phtranswarinrepo.php'>Transfer IN II</a></li>
				<li><a href='spares/wartransstat2.php'>Warranty Status 2</a></li>
				<li><a href='spares/deadtranout.php'>Dead Stock Transfer(Branch)</a></li>
				<li><a href='spares/deadtranoutall.php'>Dead Stock Transfer(All Br)</a></li>
			</ul>
	</li>
	<li><a href='#'>SaleTax Rtn Repo -></a>
				<ul>
					<li><a href='sparesalestax_vat.php'>*SpareInvoice(Vat)</a></li>
					<li><a href='sparesalestax_cst.php'>*SpareInvoice(CST)</a></li>
					<li><a href='warsparesalestax.php'>*WarSpareInvoice</a></li>
					<li><a href='salesreturnsalestax.php'>*Sales Return</a></li>
					<li><a href='wsalesreturnsalestax.php'>*Warr.Sales Return</a></li>
					<li><a href='puchasesalestax.php'>*Purhcase</a></li>
					<li><a href='spares/invrepo_staxban.php'>Spare Invoice-VAT</a></li>
					<li><a href='spares/winvrepo_stax.php'>WInvoice</a></li>
					<li><a href='spares/invrepo_staxcstban.php'>Spare Invoice-CST</a></li>
					<!--<li><a href='spares/troutrepo_stax.php'>Spare Transfer Out</a></li>
					<li><a href='spares/trinrepo_stax.php'>Spare Transfer IN</a></li> 
					<li><a href='spares/waroutrepo_stax.php'>Warranty Transfer Out</a></li>
					<li><a href='spares/warinrepo_stax.php'>Warranty Transfer IN</a></li>
					<li><a href='spares/purrepo_stax.php'>Spare Purchase-VAT</a></li>
					<li><a href='spares/purrepo_staxcst.php'>Spare Purchase-CST</a></li>
					<li><a href='spares/saleret_stax.php'>Sales Return</a></li>
					<li><a href='spares/purret_stax.php'>Purchase Return</a></li>
					<li><a href='transferinreport.php'>StockTransferIn</a></li>
					<li><a href='transferreport.php'>StockTransferOut</a></li>
				</ul>
	</li>-->		
	<li><a href='#'>GST Reports  -></a>
	    <ul>
	        <li><a href='#'>Vehicle Reports  -></a>
	        <ul>
	        <li><a href='service/purreg_gst.php'>Purchase Report GST</a></li>
	        <li><a href='service/salereg_newgst.php'>Sale Report GST</a></li>
	        </ul>
	        </li>
	        <li><a href='spares/purrepo_gst.php'>Purchase Report GST</a></li>
	        <li><a href='spares/invrepo_gstaxper.php'>Sale Report % Wise/Inv Type</a></li>
	        <li><a href='spares/invrepo_gstaxper1.php'>Sale Report % Wise</a></li>
	        <li><a href='spares/invrepo_gst.php'>Sale Report GST</a></li>
	        <li><a href='spares/crnotereport.php'>Sales Return Report</a></li>
	        <li><a href='spares/invrepo_gsthsn.php'>Sales-HSNCODE Summary</a></li>
	        <li><a href='spares/invrepo_gsthsnnew_detailed.php'>Sales-HSNCODE Summary(details)</a></li>
	        
	        
	        <li><a href='spares/invrepo_retgsthsn.php'>Salesreturn-HSNCODE Summary</a></li>
	        <li><a href='spares/purrepo_gsthsn.php'>Purchase-HSNCODE Summary</a></li>
	        <li><a href='spares/troutrepo_stax.php'>Spare TransferOUT GST</a></li>
	        <li><a href='spares/trinrepo_stax.php'>Spare TransferIN GST</a></li>
	          
	          <li><a href='spares/drnotereport.php'>Purchase Return Report</a></li>
	          <li><a href='spares/gst_salesrpt.php'>Details Sales Report</a></li>
	          <li><a href='spares/gst_salemanurpt.php'>Details Sales Report(Manuf wise)</a></li>
	          <li><a href='spares/gst_salesrpt_sum.php'>Customer Summary Report</a></li>
	          <li><a href='spares/gst_salesrpt_sum1.php'>Customer Summary(-Returm)</a></li>
	        </ul>
	</li>
	<li><a href='#'>Spare Invoice -></a>
			<ul>
				<li><a href='spares/invrepoeng.php'>Invoice-Report Eng wise</a></li>
				<?if($brcode=='BLRACC' || $brcode=='HYDACC' || $brcode=='HUBACC'){?>
				    <li><a href='spares/invrepomanu.php'>Invoice-Report Supplier wise(Accessories)</a></li>
				<?}?>
					<li><a href='spares/invrepodsr.php'>Invoice-Report DSR</a></li>
				<li><a href='spares/invrepostatewise.php'>Invoice-Report State wise</a></li>
				<!-- <li><a href='spares/invrepoeng-gr3.php'>Eng Grp Report(Sales-Return)</a></li>
				<li><a href='spares/invrepoeng-gr4.php'>Eng Grp Report(Sales-Return)</a></li> -->
				<li><a href='spares/viswas.php'>Proj Viswas Report</a></li>
				<li><a href='spares/discrptdetails.php'>Spare Dis Invoice Report</a></li>
				<li><a href='.#'>Quotation Reports -></a>
							<ul>
							<li><a href='spares/quotrepo.php'>Quotation Report</a></li>
							<li><a href='spares/quotrepoeng4.php'>Quot-Report Eng Wise</a></li>
							<li><a href='spares/quotandinvoice.php'>Quot v/s Inv-Order Wise</a></li>
							<li><a href='spares/pendingquotparts2.php'>Pending Quot Parts</a></li>
							<li><a href='spares/orderlossreport.php'>Back Order  Report</a></li>
							<li><a href='spares/invoicewithoutquot.php'>Invoice Wout Quot Report</a></li>
							<li><a href='spares/allbrquotrepo2.php'>All Br Quot Report</a></li>
							</ul>
				</li>
				<li><a href='#'>Invoice-Reports -></a>
						<ul>
						<li><a href='spares/invrepoeng-gr2.php'>Invoice-Rpt Eng/Gr</a></li>
						<li><a href='spares/invrepo.php'>Invoice-Report 1</a></li>
						<li><a href='spares/invrepooil.php'>Invoice-Report 1(Oil)</a></li>
						<li><a href='spares/invrepo2.php'>Invoice-Report 2</a></li>
						<li><a href='spares/invreposum.php'>Invoice-Summary</a></li>
						<li><a href='spares/invrepogr.php'>Invoice-Gr wise</a></li>
						<li><a href='spares/invrepo3.php'>Invoice-Cust wise</a></li>
						<li><a href='spares/invrepo4.php'>Invoice-Cust wise(All Br)</a></li>
						<li><a href='spares/invrepocust-grp.php'>Invoice-Cust(Group)</a></li>
						<li><a href='spares/invcust.php'>Invoice-Cust(Single)</a></li>
						</ul>
				</li>
				<li><a href='spares/winvcust.php'>Wrty Invoice Summary</a></li>
				<li><a href='spares/invrepogr-all.php'>Counter Sale-Gr/Br wise</a></li>
				<!--
				<li><a href='spares/invrepogr-allnoserv.php'>Counter&JCard-Gr/Br wise-No Serv</a></li>
				<li><a href='spares/invrepogr-odrf_wh.php'>Counter Sale-Gr/Br wise(ODRF Parts)</a></li>  -->
				<li><a href='spares/jcardgridrepo.php'>JCard Grid Report</a></li>
				<li><a href='spares/jcardgridreposum.php'>JCard Grid(Summry)</a></li>
				<li><a href='spares/jcardgridreponew.php'>JCard Grid(Detail)</a></li>
				<li><a href='spares/invrepogr-alltmp.php'>Counter&JCard-Gr/Br wise</a></li>
				<li><a href='spares/invrepo_gst_ndp.php'>Sales in NDP Cost</a></li>
				<li><a href='spares/invrepofoc.php'>Invoice FOC</a></li>
				<li><a href='spares/warrepo.php'>Warranty Invoice</a></li>
				
				<li><a href='spares/allwarrepo.php'>WI-Cancel</a></li>
			</ul>
	</li>
	<li><a href='#'>Miscellaneous -></a>
		<ul>
		    <li><a href='spares/srepopending.php'>Pending Sale Order</a></li>
		    <li><a href='spares/srepopendingnew.php'>*Pending Sale Order New</a></li>
		    <li><a href='spares/irnpend_inv.php'>IRN Pending report</a></li>
		    <?if(strtolower($user)=='obulesh'){?>
		    <li><a href='db3.php'>Debtors Aging List(Dr)D/Wise</a></li><?}?>
		    <?
			if($brcode=='HUBACC'){
			?>
			<li><a href='db3allbr_valvo.php'>Debtors Aging (Dr)D/Wise(VALVO+PPL)</a></li>
			<?}?>
			<? /*<li><a href='spares/wartrrepoin.php'>Warranty Transfer In</a></li>
			<li><a href='spares/wartrrepout.php'>Warranty Transfer Out</a></li>
			<li><a href='spares/recon.php'>Reconciliation</a></li>
			<li><a href='spares/itpur.php'>Item Purchase</a></li>
			<li><a href='spares/sparewsalesnew.php'>W_Spare Sales Report</a></li>
			<li><a href='spares/warpending.php'>Warranty Pending (BR)</a></li>
			<li><a href='spares/warpending_all.php'>Warranty Pending(At BR)</a></li>
			<li><a href='spares/sparetrinwarph_allbr.php'>Warranty Pen From kubota</a></li> */?>
		</ul>
	</li>
	<li><a href='#'>Stock Reports-></a>
			<ul>
			<li><a href='spares/stockrepo_br2new.php'>Search Stock(All Br)</a></li>
			<li><a href='spares/bucketsparerepo.php'>Non Stock Item Report</a></li>
			<li><a href='spares/stockagingnew.php'>Dead Stock Report</a></li>
			<li><a href='spares/deadstk.php'>*Dead Stock Report(New)</a></li>
			<li><a href='spares/deadstk.php'>Dead StkReport(SingleBranch)(OLD)</a></li>
			<li><a href='spares/conclstk.php'>*Closing Stock Reg</a></li>
			<li><a href='spares/recon_md.php'>Stock_In_Trasit(Hanging)</a></li>
			<li><a href='spares/stockrepodw1op.php'>Opn StockReport</a></li>
			<li><a href='spares/stockrepdetval.php'>*Stock Report</a></li>
			<li><a href='spares/stockrepdetvalmanu.php'>*Stock Report(Manufacturer)</a></li>
			<li><a href='spares/stockaging2.php'>*StkReport(Allbranch)</a></li>
			<!--<li><a href='spares/stockagingnew.php'>*StkReport(Allbranch-New)</a></li>
			<li><a href='spares/stockaging3.php'>*StkReport(SingleBranch)</a></li>
			<li><a href='spares/stockrepdet.php'>*StockReport(IN-OUT)</a></li>
			<li><a href='spares/stockrepo_br2.php'>Stock Report(All Br)</a></li>  -->
			<li><a href='spares/stockrepodwsumm.php'>Summary Stock</a></li>
			<li><a href='spares/2minstk.php'>Min.Stock</a></li>
			<li><a href='spares/adjrepo.php'>Stock ADJ</a></li>
			<li><a href='spares/stockled.php'>Stock Ledger</a></li>
			<li><a href='spares/sparestocknew.php'>Stock Report(ODRF)</a></li>
			</ul>
	</li>
	
	<li><a href='spares/invrepostat.php'>Invoice Receipt Status</a></li>
	<li><a href='spares/invrepobrnew.php'>Daily Consum Report</a></li>
	<li><a href='#'>Purchase -></a>
			<ul>
			<li><a href='spares/purrepo.php'>Purchase Report</a></li>
			<li><a href='spares/preturnrepo.php'>Purchase Return</a></li>
			<li><a href='spares/purcledger.php'>Purchase Ledger</a></li>
			<li><a href='spares/sparepurchnew.php'>*(Spare Purchase Report)</a></li>
			</ul>
	</li>
	<li><a href='spares/ndpall.php'>NDP ALL</a></li>
	<li><a href='spares/ndpparts.php'>NDP(SINGLE)</a></li>
	<li><a href='spares/listpricerpt.php'>*PriceList</a></li>
	<li><a href='spares/itemrpt.php'>*Item List</a></li>
	<!--
	<li><a href='spares/traceitem.php'>Trace Item</a></li>
	<li><a href='spares/sparesaletarget.php'>Spare Sales v/s Tar Report</a></li>
	<li><a href='spares/sparesaletarget-cum.php'>Spare Sales v/s Tar Rpt(cumu)</a></li> -->
	<li><a href='spares/sparesalenew.php'>Spare Sales Report</a></li>
	
	<li><a href='spares/traceitemnew.php'>Trace Item(new)</a></li>
	<li><a href='spares/translist.php'>*Item Transaction List</a></li>
	<li><a href='spares/newrep.php'>Sales Report(Qty)</a></li>
	<li><a href='spares/editinv.php'>Invoice edit</a></li>
	</ul>
</li>

<?

//<li><a href='softcall2.php'>Software Cell</a></li>
}
?>


<li><a href='#'>Others</a>
	<ul>
	    
	    <li><a href="dbnote1.php">Debit Note</a></li>
	    <li><a href="prndbnote1.php?jvno=" target="blank">Debit Note Print Veh div</a></li>
	    <li><a href="prndbnote1br.php?jvno=" target="blank">Debit Note Print Br.</a></li>
	    <li><a href="spares/einvoice_dbnote.php" target="x">Debit Note JSON Download</a></li>
	    <li><a href="spares/upldjson_spr.php" target="x">E-Inv-JSON UPLOAD DB Note</a></li>
		
	    
	    </ul>

</li>











<li><a href='chp.php'>Change Password</a></li>

<?if($user=='satheesh'|| strtolower($user)=='siju')
	    {	?>
		<li><a href='#'>Stock Adjustment -></a>
	<ul>
	    <li><a href='adjstock_new.php'>Stock Adjustment</a></li>
		<li><a href='damagestock.php'>Damagestock Conversion</a></li>
	    <li><a href='spares/adjrepo.php'>Stock Adjustment Report</a></li>
	    <li><a href='spares/damagestockrept.php'>Damage Stock Report</a></li>
	    
	    </ul>
	    </li>
		<?}?>

<li><a href='logout.php'>Logout</a></li>

</ul>
</div>
<?
$query="select brname,region from branch where brcode ='".$_SESSION['brcode']."'";
$rslt1=mysqli_query($db,$query);
$row11=mysqli_fetch_row($rslt1);
$exmsg="Password expires in"." ".$_SESSION['expir']." "."days";

?>
<table class='tbl'><tr>
<td bgcolor= "yellow">Financial Year : <b>2024-25 </td><td> Branch :<b><? echo $row11[0] ?></td>
<td>Region : <b><? echo $row11[1] ?></td>
<td>User : <b><? echo $user ?></td><td><?print $exmsg?></td>
</tr></table><br><br><br>

