var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let Hrms;
(function (Hrms) {
let Payroll;
(function (Payroll) {
let Controls;
(function (Controls) {
let EmployeeRegime;
(function (EmployeeRegime) {
class EmployeeNewRegimeDetails extends Unibase.Platform.Core.BaseComponent {
init(formpropertyid, prop, callback) { }
loadControlSettings(controlsettingjson, formpropertyid) { }
loadPropertySettings(propertysettings, formpropertyid, DocPropertyName) { }
bindEditFormDetails(formpropertyid, propval, DocPropertyName) { }
loadControl(containerid, prop) {
var instance = this;
instance.transactionId = prop.FormPropertyId;
var html = `
Particulars |
Declared amount |
`;
$("#" + containerid).html(html);
Bizgaze.Apps.Hrms.Payroll.Controls.EmployeeRegime.EmployeeNewRegimeDetails.Instance().bindNewRegimeDetails();
}
bindNewRegimeDetails() {
let instance = Bizgaze.Apps.Hrms.Payroll.Controls.EmployeeRegime.EmployeeNewRegimeDetails.Instance();
let VisibleContainerId = Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length - 1];
var installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
var employeeId = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + installedAppId + "_employeeid").Value);
instance.fileCacheHelper.loadJsFile("apps/hrms/payroll/managers/payrollmanager.js", function () {
Bizgaze.Apps.Hrms.Payroll.Managers.PayRollManager.Instance().employeeNewRegimeDetails(employeeId).then(function (response) {
let html = '';
for (const type in response.result) {
if (type === 'RentalIncomeDtls') {
html += `
${'Net Income / Loss from House Property'}
|
`;
const rentalIncome = response.result[type];
if (rentalIncome.length) {
html += rentalIncome.map((obj) => {
return `
Total Income / Loss from House Property |
₹ ${obj.AnnualRent} |
Interest Paid on Home Loan |
₹ ${obj.InterestPaid} |
Lender Name |
${obj.LenderName} |
Lender Pan |
${obj.LenderPan} |
Annual Rent Received |
₹ ${obj.AnnualRent} |
Net Annual Value |
₹ ${obj.NetAnnual} |
Standard Deduction (@ 30% of Net Annual Value) |
₹ ${obj.StandardDeduction} |
Interest Paid on Home Loan |
₹ ${obj.InterestPaid} |
`;
}).join('');
}
}
if (type === 'OtherIncome') {
html += `
${'Other Income'}
|
`;
const otherIncome = response.result[type];
if (otherIncome.length) {
html += otherIncome.map((obj) => {
return `
Interest Earned from Savings Deposit |
₹ ${obj.SavingsDeposit} |
`;
}).join('');
}
}
}
$("#tblgetemployeenewregimedetailsBody").html(html);
});
});
}
static Instance() {
if (this.instance === undefined) {
this.instance = new EmployeeNewRegimeDetails();
}
return this.instance;
}
}
EmployeeRegime.EmployeeNewRegimeDetails = EmployeeNewRegimeDetails;
})(EmployeeRegime = Controls.EmployeeRegime || (Controls.EmployeeRegime = {}));
})(Controls = Payroll.Controls || (Payroll.Controls = {}));
})(Payroll = Hrms.Payroll || (Hrms.Payroll = {}));
})(Hrms = Apps.Hrms || (Apps.Hrms = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));