diff --git a/application/views/cashbooklisting.php b/application/views/cashbooklisting.php
index 6ec3e004..35af8ea0 100755
--- a/application/views/cashbooklisting.php
+++ b/application/views/cashbooklisting.php
@@ -124,11 +124,11 @@ $(document).ready(function(){
// alert('new');
// }
-alert($('#cashbooktable tbody').find('td:empty').length);
-if( $('#cashbooktable tbody').find('td:empty').length ) {
- alert("at least one
is empty"):
+// alert($('#cashbooktable tbody').find('td:empty').length);
+// if( $('#cashbooktable tbody').find('td:empty').length ) {
+// alert("at least one | is empty"):
-}
+// }
});
@@ -144,11 +144,12 @@ $('#Add').click(function(){
//alert('inside if');
var temp = index;
var Acctype = $("#accounttype:checked").val() ;
- var Acccode = $('#accountcode').val();
+ var Acode = $('#accountcode').val();
+ var Acccode = Acode.replace(/ /g,'');
var Accname = $('#accountname').val();
var Accdesc = $('#description').val();
var Status = $('#accountstate').val();
- var localflag = 0;
+ var localflag = 0;
//if(Acctype != '' || Accname != '' || Acccode != '' )https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwjnwuzq4MXXAhVIQI8KHcWmBUoQFggqMAA&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F9127847%2Fdocument-getelementbyid-focus-returning-undefined&usg=AOvVaw20BMY_C7k6ShhmOz0Vmzs8
|