diff --git a/application/views/cashbooklisting.php b/application/views/cashbooklisting.php index 5259bb8f..b40dfd8a 100644 --- a/application/views/cashbooklisting.php +++ b/application/views/cashbooklisting.php @@ -117,6 +117,9 @@ var index = '1'; $('#Add').click(function(){ + var res = validateACCODE(); + if(res != 1) + { var temp = index; var Acctype = $("#accounttype:checked").val() ; var Acccode = $('#accountcode').val(); @@ -163,7 +166,7 @@ $('#Add').click(function(){ $('#accountname').val(''); $('#description').val(''); - + } });//add click function closed @@ -205,4 +208,45 @@ $('#Add').click(function(){ });//ajax function closed } + + \ No newline at end of file