diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 98e859e4..ff41c201 100644 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -606,46 +606,51 @@ }; function convertNumberToWords(number) { - if (number === 0) { - return numberWords[number]; - } - - let word = ''; - - if (number >= 10000000) { - word += convertNumberToWords(Math.floor(number / 10000000)) + " Crore "; - number %= 10000000; - } - - if (number >= 100000) { - word += convertNumberToWords(Math.floor(number / 100000)) + " Lakh "; - number %= 100000; - } - - if (number >= 1000) { - word += convertNumberToWords(Math.floor(number / 1000)) + " Thousand "; - number %= 1000; - } - - if (number >= 100) { - word += convertNumberToWords(Math.floor(number / 100)) + " Hundred "; - number %= 100; - } - - if (number > 0) { - if (word !== '') { - word += "and "; - } - if (number <= 20) { - word += numberWords[number]; - } else { - word += numberWords[Math.floor(number / 10) * 10] + " " + numberWords[number % 10]; - } - } - - return word; + if (number === 0) { + return numberWords[number]; } + let word = ''; + + if (number >= 10000000) { + word += convertNumberToWords(Math.floor(number / 10000000)) + " Crore "; + number %= 10000000; + } + + if (number >= 100000) { + word += convertNumberToWords(Math.floor(number / 100000)) + " Lakh "; + number %= 100000; + } + + if (number >= 1000) { + word += convertNumberToWords(Math.floor(number / 1000)) + " Thousand "; + number %= 1000; + } + + if (number >= 100) { + word += convertNumberToWords(Math.floor(number / 100)) + " Hundred "; + number %= 100; + } + + if (number > 0) { + if (word !== '') { + word += "and "; + } + if (number <= 20) { + word += numberWords[number]; + } else { + word += numberWords[Math.floor(number / 10) * 10] + " " + numberWords[number % 10]; + } + } + + return word.trim(); +} + +function convertCommaNumberToWords(input) { + const number = parseInt(input.replace(/,/g, ''), 10); + return convertNumberToWords(number); +} + function onlyNumbers(event){ var charcode; charcode = event.which || event.keyCode; diff --git a/app/Views/policy_gmc_terms.php b/app/Views/policy_gmc_terms.php index 76c2dfc8..19f535ae 100644 --- a/app/Views/policy_gmc_terms.php +++ b/app/Views/policy_gmc_terms.php @@ -13,7 +13,7 @@ .radiobuttondiv{ margin-left: 32px; } - .form-control-client-policy-master{ + .{ width:62% !important; margin-left: 30px; margin-top: 3px @@ -49,10 +49,10 @@ display:none; } .jodit-container{ - width: 821px !important; - margin-top: 3px; - margin-bottom: 3px; - margin-left: 30px; + /* width: 821px !important; */ + /* margin-top: 3px; */ + /* margin-bottom: 3px; */ + /* margin-left: 30px; */ /* height: 0px !important; */ /* min-height: 100px !important; */ } @@ -65,7 +65,7 @@ .jodit-wysiwyg{ margin-bottom: 162px; } - .form-control-client-policy-masters{ + .s{ margin-left: 30px; width: 689px; } @@ -85,117 +85,169 @@