diff --git a/gkwebapp/static/js/editclone.js b/gkwebapp/static/js/editclone.js index c02522af704f8cb41118e57286453adb83e4007b..a8abba8d013fb575fb29db9c5c4f19d15e73a0b9 100644 --- a/gkwebapp/static/js/editclone.js +++ b/gkwebapp/static/js/editclone.js @@ -357,16 +357,16 @@ $(document).ready(function() $("#save").show(); $("#removediv").show(); $("#lock").hide(); - $(".crdr").prop('disabled', true); - $(".accs").prop('disabled', true); + $(".crdr").prop('disabled', false); + $(".accs").prop('disabled', false); $("#edit").hide(); $("#clone").hide(); $("#delete").hide(); $("#vno").prop('disabled', true); - $(".dramt").prop('disabled', true); - $(".cramt").prop('disabled', true); + $(".dramt[value!='']").prop('disabled', false); + $(".cramt[value!='']").prop('disabled', false); $(".ttl").prop('disabled', true); - $(".vdate").prop('disabled', true); + $(".vdate").prop('disabled', false); $("#viewdiv").hide(); $("#viewinvsel").hide(); $("#invtotaldiv").hide(); diff --git a/gkwebapp/static/js/findeditvoucher.js b/gkwebapp/static/js/findeditvoucher.js index 502bd329c16f25a026223eca3bedda2762ef8157..314ebab44cd9b242d9f06b8f0c44e57dff2358fa 100644 --- a/gkwebapp/static/js/findeditvoucher.js +++ b/gkwebapp/static/js/findeditvoucher.js @@ -43,7 +43,7 @@ $(document).ready(function() { return str.length < max ? pad("0" + str, max) : str; } else{ - return str + return str; } } function yearpad (str, max) { @@ -55,7 +55,7 @@ $(document).ready(function() { return str.length < max ? pad("20" + str, max) : str; } else{ - return str + return str; } } @@ -84,14 +84,14 @@ $(document).ready(function() { - var fromdatearray = sessionStorage.yyyymmddyear1.split(/\s*\-\s*/g) - $("#fday").val(fromdatearray[2]) - $("#fmonth").val(fromdatearray[1]) - $("#fyear").val(fromdatearray[0]) - var todatearray = sessionStorage.yyyymmddyear2.split(/\s*\-\s*/g) - $("#tday").val(todatearray[2]) - $("#tmonth").val(todatearray[1]) - $("#tyear").val(todatearray[0]) + var fromdatearray = sessionStorage.yyyymmddyear1.split(/\s*\-\s*/g); + $("#fday").val(fromdatearray[2]); + $("#fmonth").val(fromdatearray[1]); + $("#fyear").val(fromdatearray[0]); + var todatearray = sessionStorage.yyyymmddyear2.split(/\s*\-\s*/g); + $("#tday").val(todatearray[2]); + $("#tmonth").val(todatearray[1]); + $("#tyear").val(todatearray[0]);