diff --git a/CustomerOnlineV2/CustomerOnlineV2/wwwroot/js/Custom.js b/CustomerOnlineV2/CustomerOnlineV2/wwwroot/js/Custom.js index 222d2be..7ae58cf 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/wwwroot/js/Custom.js +++ b/CustomerOnlineV2/CustomerOnlineV2/wwwroot/js/Custom.js @@ -1,5 +1,5 @@ function NumberWithCommas(amount) { - amount = parseFloat(amount).toFixed(2); + // amount = parseFloat(amount).toFixed(2); var delimiter = ","; var a = amount.toString().split('.', 2); var d = a[1]; @@ -157,6 +157,7 @@ function PopulateDDLMain(response, id, showSelectOption, selectedVal) { ddl.options.add(option); } + if (data != null) { for (var i = 0; i < data.length; i++) { option = document.createElement("option"); @@ -176,4 +177,5 @@ function PopulateDDLMain(response, id, showSelectOption, selectedVal) { alert(e); } } +} } \ No newline at end of file