script error fixed in cashbook

This commit is contained in:
venbatechnologies@gmail.com 2018-02-16 19:53:30 +05:30
parent 0ac549f276
commit bbb8afe7ac

View File

@ -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 <td> is empty"):
// alert($('#cashbooktable tbody').find('td:empty').length);
// if( $('#cashbooktable tbody').find('td:empty').length ) {
// alert("at least one <td> is empty"):
}
// }
});
@ -144,7 +144,8 @@ $('#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();