bankstatement

This commit is contained in:
gayathri1990 2018-03-23 18:20:29 +05:30
parent d0b2f228f7
commit e701e2fb3f
2 changed files with 56 additions and 149 deletions

View File

@ -437,7 +437,7 @@ if (x==true)
} }
else{ else{
alert("Miss Matchweqwe"); alert("Miss Match you have select sequentially amount");
window.location.reload(); window.location.reload();
document.getElementById('checkboxcheckbox'+value).checked = false; document.getElementById('checkboxcheckbox'+value).checked = false;
} }
@ -466,28 +466,30 @@ if (x==true)
function checkscreen(t,i) function checkscreen(t,i)
{ {
$type=t;
var avalue= $('#addvalue').val(); var avalue= $('#addvalue').val();
localStorage.setItem('test',avalue); localStorage.setItem('test',avalue);
var damount =$('#debit'+i).val(); var damount =$('#debit'+i).val();
var e = document.getElementById("selectedId"); var e = document.getElementById("selectedId");
var value = e.options[e.selectedIndex].value; var value = e.options[e.selectedIndex].value;
//alert(value+'dd');
var text = e.options[e.selectedIndex].text; var text = e.options[e.selectedIndex].text;
var camount =$('#credit'+i).text(); var camount =$('#credit'+i).text();
var RowCount= $('#Rowid').val(); var RowCount= $('#Rowid').val();
var id=document.getElementById ("bankid"+bankid).innerText; var id=document.getElementById ("bankid"+value).innerText;
//var totalpaid=document.getElementById ("#totalpaid"+value).innerText;
//alert(totalpaid+'tp');
var date=document.getElementById ("date"+value).innerText; var date=document.getElementById ("date"+value).innerText;
var debit=document.getElementById ("debit"+value ).innerText; var debit=document.getElementById ("debit"+value ).innerText;
var idvalue = id+'-'+debit; var idvalue = id+'-'+debit;
var credit=document.getElementById ("credit"+value ).innerText; var credit=document.getElementById ("credit"+value ).innerText;
if(avalue=='') if(avalue=='')
{ {
//alert(avalue);
alert('you have select debit or credit'); alert('you have select debit or credit');
} }
else if(value=='2' && amounttype=='1') else if(value=='2' && type=='1')
{ {
if(avalue>0) if(avalue>0)
{ {
localStorage.setItem('test1',tempidvalue); localStorage.setItem('test1',tempidvalue);
@ -500,15 +502,16 @@ if (x==true)
} }
} }
else if(value=='1' && amounttype=='0') else if(value=='1' && type=='0')
{ {
if(avalue>0) if(avalue>0)
{ {
//alert(tempidvalue); //alert(tempidvalue);
localStorage.setItem('test2',tempcredit); localStorage.setItem('test2',tempcredit);
localStorage.setItem('tes', avalue); localStorage.setItem('tes', avalue);
window.location.href="cashbook/bankinvoice"; window.location.href="Invoice";
} }
else else
{ {
@ -516,8 +519,10 @@ if (x==true)
} }
} }
else if(value=='3' && amounttype=='0' ||amounttype=='1') else if(value=='3' && (type=='0' ||type=='1'))
{ {
alert(value+'cash');
alert(amounttype);
if(avalue>0) if(avalue>0)
{ {
$('#content').loader('show'); $('#content').loader('show');

View File

@ -361,7 +361,6 @@ $(function() {
<?php }?> <?php }?>
<?php }?> <?php }?>
<!-- INPROCESS MODULE--> <!-- INPROCESS MODULE-->
<?php if(empty($DepAccesslist)){?> <?php if(empty($DepAccesslist)){?>
<?php if($DEPCode == QUALITY){?> <?php if($DEPCode == QUALITY){?>
@ -389,7 +388,6 @@ $(function() {
<span>New Nissan In Process Inspection</span> <span>New Nissan In Process Inspection</span>
</a> </a>
</li> </li>
</ul> </ul>
</li> </li>
@ -550,88 +548,6 @@ $(function() {
<!-- BATCH CARD MODULE--> <!-- BATCH CARD MODULE-->
<!-- RESIN BATCH CARD MODULE-->
<?php if(empty($DepAccesslist)){?>
<?php if($DEPCode == PRODUCTION){?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-credit-card"></i> Resin Batch card<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<?php// if(empty($DepAccesslist)){?>
<?php //if($DEPCode == PRODUCTION){?>
<li class="treeview">
<a href="<?php echo base_url(); ?>resinbatchcard/resinBatchCardLisitng">
<i class="fa fa-cubes"></i>
<span>Resin Batchcard List</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>resinbatchcard">
<i class="fa fa-cube"></i>
<span>Add New Batch Card</span>
</a>
</li>
</ul>
</li>
<?php }?>
<?php }
else{ $check = 0;?>
<?php foreach($DepAccesslist as $dep){?>
<?php $assd=$dep->AssDep;
if($assd == PRODUCTION || $DEPCode == PRODUCTION ){ $check =1;?>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-credit-card"></i> Resin Batch card<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
<li class="treeview">
<a href="<?php echo base_url(); ?>resinbatchcardlisting">
<i class="fa fa-cubes"></i>
<span>Resin Batchcard List</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>addNewResinbatchcard">
<i class="fa fa-cube"></i>
<span>Add New Batch Card</span>
</a>
</li>
</ul>
</li>
<?php } if($check == 1){break;} }?>
<?php }?>
<!-- RESIN BATCH CARD MODULE-->
<!-- <?php print_r($DepAccesslist)?> --> <!-- <?php print_r($DepAccesslist)?> -->
<?php if(empty($DepAccesslist)){ ?> <?php if(empty($DepAccesslist)){ ?>
<?php if($DEPCode == FINANCE || $DEPCode == SALES || $DEPCode == HR || $DEPCode == SYSTEM_ADMIN || $DEPCode == ADMIN && $DEPCode != SECURITY){?> <?php if($DEPCode == FINANCE || $DEPCode == SALES || $DEPCode == HR || $DEPCode == SYSTEM_ADMIN || $DEPCode == ADMIN && $DEPCode != SECURITY){?>
@ -1173,6 +1089,28 @@ $(function() {
</li>--> </li>-->
</ul>
</li>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-money"></i>Banking<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
<li class="treeview">
<a href="<?php echo base_url(); ?>Bankingview">
<i class="fa fa-credit-card"></i>
<span>Bank Statement Upload</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Bankingstatement">
<i class="fa fa-credit-card"></i>
<span>Bank Statements</span>
</a>
</li>
</ul> </ul>
</li> </li>
<?php }?> <?php }?>
@ -1217,6 +1155,16 @@ $(function() {
<span>Receipt and Payment</span> <span>Receipt and Payment</span>
</a> </a>
</li> </li>
</ul>
</li>
<li class="treeview">
<span id="menu" data-toggle="dropdown" ><i class="fa fa-money"></i>Banking<span class="caret"></span></span>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
<li class="treeview"> <li class="treeview">
<a href="<?php echo base_url(); ?>Bankingview"> <a href="<?php echo base_url(); ?>Bankingview">
<i class="fa fa-credit-card"></i> <i class="fa fa-credit-card"></i>
@ -1229,52 +1177,6 @@ $(function() {
<span>Bank Statements</span> <span>Bank Statements</span>
</a> </a>
</li> </li>
<!--<li class="treeview">
<a href="<?php echo base_url(); ?>Debitstatement">
<i class="fa fa-credit-card"></i>
<span>Amount Paid</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Bankamountpaid">
<i class="fa fa-credit-card"></i>
<span>Depit Reports</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Receipt">
<i class="fa fa-credit-card"></i>
<span>Receipt</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Payment">
<i class="fa fa-credit-card"></i>
<span>Payment</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Invoice">
<i class="fa fa-credit-card"></i>
<span>Invoice</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Bankamountreceived">
<i class="fa fa-credit-card"></i>
<span>Credit Reports</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>Bankcash">
<i class="fa fa-credit-card"></i>
<span>addincexp</span>
</a>
</li>-->
</ul>
</li>
<?php }?> <?php }?>
<?php if($check ==1){break;}}}?> <?php if($check ==1){break;}}}?>
@ -1325,7 +1227,7 @@ $(function() {
<?php }?> <?php }?>
<?php if($DEPCode == QUALITY){?> <?php //if($DEPCode == QUALITY){?>
<li class="treeview"> <li class="treeview">
<a href="<?php echo base_url(); ?>quality"> <a href="<?php echo base_url(); ?>quality">
<i class="fa fa-list-alt"></i> <i class="fa fa-list-alt"></i>
@ -1345,7 +1247,7 @@ $(function() {
<span>Inward Material Test Report</span> <span>Inward Material Test Report</span>
</a> </a>
</li> </li>
<?php }?> <?php //}?>
<!-- <li class="treeview"> <!-- <li class="treeview">
@ -1415,7 +1317,7 @@ $(function() {
<span>View Material Inspection Report</span> <span>View Material Inspection Report</span>
</a> </a>
</li> </li>
<?php //if($DEPCode == QUALITY){?> <?php if($DEPCode == QUALITY){?>
<li class="treeview"> <li class="treeview">
<a href="<?php echo base_url(); ?>quality"> <a href="<?php echo base_url(); ?>quality">
<i class="fa fa-list-alt"></i> <i class="fa fa-list-alt"></i>
@ -1428,7 +1330,7 @@ $(function() {
<span>Product Test Report</span> <span>Product Test Report</span>
</a> </a>
</li> </li>
<?php// } ?> <?php } ?>
<li class="treeview"> <li class="treeview">
<a href="<?php echo base_url(); ?>qualityreportlistinward"> <a href="<?php echo base_url(); ?>qualityreportlistinward">
<i class="fa fa-hand-o-down"></i> <i class="fa fa-hand-o-down"></i>