diff --git a/application/views/bankcashnew.php b/application/views/bankcashnew.php index 67c37153..6721654c 100644 --- a/application/views/bankcashnew.php +++ b/application/views/bankcashnew.php @@ -15,10 +15,7 @@ $(function() { { $("#accode").append( $('').val(item.code).html(item.name)); } - else(item.type == 'PAYMENT') - { - $("#accode").append( $('').val(item.code).html(item.name)); - } + }); @@ -512,34 +509,21 @@ function calculateTotal() $('#totalamount').val((total.toFixed(2))); } -$(function() { - - var t = []; - var ex = []; - var inc = []; - t= ; $('#myradio1').click(function(){ $('#towhom').ready('Received From:'); - $.each(t,function(i,item){ - if(item.type == 'RECEIPT') - { - $("#accode").append( $('').val(item.code).html(item.name)); - } + }); $('#myradio2').ready(function(){ $('#towhom').text('Paid To:'); - else(item.type == 'PAYMENT') - { - $("#accode").append( $('').val(item.code).html(item.name)); - } + }); -}); +