123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- 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 = `<table class="table zp-table salary-table declaration-details-table">
- <thead>
- <tr>
- <th width="70%">Particulars</th>
- <th width="30%" class="text-right">Declared amount</th>
- </tr>
- </thead>
- <tbody id="tblgetemployeenewregimedetailsBody">
-
- </tbody>
- </table>`;
- $("#" + 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 += `<tr>
- <td colspan="2" class="row-group font-weight-700 font-16">
- ${'Net Income / Loss from House Property'}
- </td>
- </tr>`;
- const rentalIncome = response.result[type];
- if (rentalIncome.length) {
- html += rentalIncome.map((obj) => {
- return `<tr>
- <tr>
- <td class="text-field-label">Total Income / Loss from House Property</td>
- <td class="text-right"> ₹ ${obj.AnnualRent}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Interest Paid on Home Loan</td>
- <td class="text-right"> ₹ ${obj.InterestPaid}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Lender Name</td>
- <td class="text-right"> ${obj.LenderName}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Lender Pan</td>
- <td class="text-right"> ${obj.LenderPan}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Annual Rent Received</td>
- <td class="text-right">₹ ${obj.AnnualRent}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Net Annual Value</td>
- <td class="text-right">₹ ${obj.NetAnnual}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Standard Deduction (@ 30% of Net Annual Value)</td>
- <td class="text-right">₹ ${obj.StandardDeduction}</td>
- </tr>
-
- <tr>
- <td class="text-field-label">Interest Paid on Home Loan</td>
- <td class="text-right">₹ ${obj.InterestPaid}</td>
- </tr>
- </tr>`;
- }).join('');
- }
- }
- if (type === 'OtherIncome') {
- html += `<tr>
- <td colspan="2" class="row-group font-weight-700 font-16">
- ${'Other Income'}
- </td>
- </tr>`;
- const otherIncome = response.result[type];
- if (otherIncome.length) {
- html += otherIncome.map((obj) => {
- return `<tr>
- <tr>
- <td class="text-field-label">Interest Earned from Savings Deposit</td>
- <td class="text-right"> ₹ ${obj.SavingsDeposit}</td>
- </tr>
- </tr>`;
- }).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 = {}));
|