var Bizgaze; (function (Bizgaze) { let Apps; (function (Apps) { let Hrms; (function (Hrms) { let Payroll; (function (Payroll) { class IncomeTaxCalculation extends Unibase.Platform.Core.BaseComponent { init(containerid) { var instance = this; let html = `
Income Tax Calculation
Yearly Income from Salary
Age
+ Income from Other Sources (Interest on FD and Let-out Property)
Exemption Details

HRA and Other Exemptions
Interest paid on Housing Loan
80C (PF, PPF, Insurance Premium)
80CCD (Employee's contribution to NPS)
80CCD(1B) (Additional Contribution to NPS)
80D (Medical Insurance Premium)
80E (Interest paid on Education Loan)
80EEA (Interest paid on Home Loan for Affordable Housing)
80EEB (Interest paid on Loan for Purchase of Electrical Vehicle)
80G (Donations to Charity)

`; html += `
`; $(`#${containerid}`).html(html); const containerEl = $(`#incomeTaxWidget_${containerid}`); $(".incometaxdetails").addClass("hidden"); $(".income-tax-widget").removeClass("hidden"); containerEl.find('#toggleOtherIncomeSectionBtn').click(function () { containerEl.find('.add-income-details-toggle').addClass('hidden'); containerEl.find('.other-earnings-table').removeClass('hidden'); }); } IncomeTaxCalculate() { var instance = this; var postData = { OtherExemptions: Number($("#_otherExemptions").val()), Age: $("#age").val().toString(), GrossPay: Number($("#grossPay").val()), InterestOnHousingLoan: Number($("#_interestOnHousingLoan").val()), InterestFromSavings: Number($("#interestFromSavings").val()), RentalIncome: Number($("#rentalIncome").val()), MunicipalTax: Number($("#municipalTax").val()), IpoHousingLoanInterest: Number($("#ipoHousingLoanInterest").val()), OtherIncome: Number($("#otherIncome").val()), CInvestments: Number($("._cinvestments").val()), CCDInvestments: Number($("._ccdinvestments").val()), CCD1Binvestments: Number($("._ccd1binvestments").val()), DInvestments: Number($("._dinvestments").val()), EInvestments: Number($("._einvestments").val()), EEAInvestments: Number($("._eeainvestments").val()), EEBInvestments: Number($("._eebinvestments").val()), GInvestments: Number($("._ginvestments").val()) }; instance.fileCacheHelper.loadJsFiles(["apps/hrms/payroll/managers/payrollmanager.js", "apps/hrms/payroll/controls/incometaxcalculation.js"], function () { Bizgaze.Apps.Hrms.Payroll.Managers.PayRollManager.Instance().incomeTaxCalculation(postData).then(function (response) { var result = response.result; if (result != null) { debugger; var html = `
Components Old Tax Regime New Tax Regime
Total Gross Income ₹ ${result[0].GrossPay} ₹ ${result[0].GrossPay}
Total Eligible Deductions ₹${result[0].EligibleDeductions} ₹${result[0].EligibleDeductions}
Taxable Income ₹ ${result[0].OldTaxableIncome} ₹ ${result[0].NewTaxableIncome}
Tax on Total Income ₹${result[0].OldTaxTotalIncome} ₹${result[0].NewTaxTotalIncome}
Surcharge ₹0.00 ₹0.00
Health and Education Cess ₹${result[0].CessOnOldTaxAmount} ₹${result[0].CessOnNewTaxAmount}
Total Tax to be Paid ₹${result[0].OldTaxRegime_Amount} ₹${result[0].NewTaxRegime_Amount}
Edit DataStart Over
`; $(".incometaxdetails").removeClass("hidden"); $(".income-tax-widget").addClass("hidden"); $(".incometaxdetails").html(html); $(".btn_editdate").click(function () { $(".incometaxdetails").addClass("hidden"); $(".income-tax-widget").removeClass("hidden"); }); $(".btn_startover").click(function () { $(".incometaxdetails").addClass("hidden"); $(".income-tax-widget").removeClass("hidden"); $("#_otherExemptions").val(""); $("#grossPay").val(""); $("#_interestOnHousingLoan").val(""); $("#rentalIncome").val(""); $("#municipalTax").val(""); $("#ipoHousingLoanInterest").val(""); $("#otherIncome").val(""); $("._cinvestments").val(""); $("._ccdinvestments").val(""); $("._dinvestments").val(""); $("._einvestments").val(""); $("._eeainvestments").val(""); $("._eebinvestments").val(""); $("._ginvestments").val(""); }); } }); }); } static Instance() { if (this.instance === undefined) { this.instance = new IncomeTaxCalculation(); } return this.instance; } } Payroll.IncomeTaxCalculation = IncomeTaxCalculation; })(Payroll = Hrms.Payroll || (Hrms.Payroll = {})); })(Hrms = Apps.Hrms || (Apps.Hrms = {})); })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {})); })(Bizgaze || (Bizgaze = {}));