Iniit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ipayrollmanager.js","sourceRoot":"","sources":["ipayrollmanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,435 @@
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Hrms;
|
||||
(function (Hrms) {
|
||||
let Payroll;
|
||||
(function (Payroll) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class PayRollManager extends Unibase.Platform.Core.BaseManager {
|
||||
employeeSalaryTemplateDetails(templateid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarytemplatedetails/templateid/' + templateid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
reviseemployeeSalaryDetails(employeeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getreviseemployeesalary/employeeid/' + employeeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSalaryDetailsByEmployeeId(employeeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarydetailsbyemployeeid/employeeid/' + employeeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
bindReviseSalaryDetails(employeeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getreviseemployeesalarydetailsbyemployeeid/employeeid/' + employeeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
salaryEarningDetailslist() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalaryearningdetails';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
salarycomponentdata(earningTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarycomponentdata/earningtypeid/' + earningTypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
earningtypeautocompleteDetailslist(EarningTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/earningtypeautocomplete/earningtypeid/' + EarningTypeId + '/term/' + null + '/authtoken/' + null;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
salaryDeductionDetailslist() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarydeductiondetails';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deductionplanautocompleteDetailslist(DeductionplanId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/deductionplanautocomplete/deductionplanid/' + DeductionplanId + '/term/' + null + '/authtoken/' + null;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getemployee(payrunemployeeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getpayrunemployee/payrunemployeeid/' + payrunemployeeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updatepayrunstatus(payrunemployeeid, payrunstatuid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/updatepayrunstatus/payrunemployeeid/' + payrunemployeeid + '/payrunstatusid/' + payrunstatuid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
salaryReimbursementDetailslist() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalaryreimbursementdetails';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getOtherInvestmentMaxLimit(otherInvestmentName) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getotherinvestmentmaxlimit/otherinvestmentname/' + otherInvestmentName;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTdsDetails(tdsInvestmentName) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/tdsinvestmentdetails/tdsinvestmentname/' + tdsInvestmentName;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
reimbursementdata(reimbursementtypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getreimbursementdata/reimbursementtypeid/' + reimbursementtypeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getpayrunemployeedetails(payrunemployeeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getpayrunemployeedetails/payrunemployeeid/' + payrunemployeeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
bindPayrunEmployeeDetails(payrunEmployeeId, isActive) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getpayrunupdateemployeedetails/payrunemployeeid/' + payrunEmployeeId + '/isactive/' + isActive;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
employeeOldRegimeDetails(employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/employeeoldregimedetails/employeeid/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
employeeNewRegimeDetails(employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/employeenewregimedetails/employeeid/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTdsDetailsByEmployeeId(employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/gettdsdetailsbyemployeeid/employeeid/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getRegimeDetailsByEmployeeId(employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getregimedetailsbyemployeeid/employeeid/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEmployeeDeductionsByEmployeeId(employeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getemployeedeductionsdetails/employeeid/' + employeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSalaryComponentsByEarningtypeId(earningtypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarycomponentsbyearningtypeid/earningtypeid/' + earningtypeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getsalarycomponentbyid(salaryComponentId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarycomponentbyid/salarycomponentid/' + salaryComponentId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEmployeeTaxDetailsByEmployeeId(employeeId, AnnualCTC, Basic) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getemployeetaxdetailsbyemployeeid/employeeid/' + employeeId + '/annualctc/' + AnnualCTC + '/basic/' + Basic;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSalaryTemplateById(TemplateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getsalarytemplatebyid/templateid/' + TemplateId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshPayRun(PayRunId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/refreshpayrunbyid/payrunid/' + PayRunId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
bindPayRunDetails(payrunEmployeeid, fromDate, toDate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/bindpayrundetails/payrunemployeeid/' + payrunEmployeeid + '/fromdate/' + fromDate + '/todate/' + toDate;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getComponentHtml() {
|
||||
return `<div class="card-header font-14"><input type = "hidden" id = "hdn_salarycomponentcontrol" class="value-control" value = "Bizgaze.Apps.Hrms.Payroll.Controls.SalaryTemplate.Instance().salarycomponentObj();"> <div class="d-flex justify-content-between"> <h5 class="font-weight-600">Earnings</h5><a class="btn btn-primary btn-sm pull-right" href="javascript:;" id="btnAddNew">Add Component</a> </div> <table class="w-100" style="border-collapse:inherit;border-spacing:0 25px"> <thead> <tr> <th>Salary Components <th class="text-center">Calculation Type </th> <th>Monthly Amount <th class="text-right">Annual Amount </th><th></th></thead> <tbody class="Components-list tbl-body" id="salaryearningdetails_table"> </tbody> <thead class="tb_Deductions hidden"> <tr> <th colspan="4"><h5 class="font-weight-600">Deductions</h5><a class="btn btn-primary btn-sm pull-right" href="javascript:;" onclick = " Bizgaze.Apps.Hrms.Payroll.Controls.SalaryTemplate.Instance().refreshsystemcalculations();" id="refreshsystemcalculations">Refresh</a></th> </tr> </thead> <tbody class="Components-list tbl-body" id="salarydeductiondetails_table"> </tbody> <thead class="tb_Reimbusments hidden"> <tr> <th colspan="4"><h5 class="font-weight-600">Reimbursements</h5></th> </tr> </thead> <tbody class="Components-list tbl-body" id="salaryreimbursementdetails_table"> </tbody> </table> </div>`;
|
||||
}
|
||||
refreshpayrunemployee(payrunid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/refreshpayrunbyid/payrunid/' + payrunid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
resetPayrunEmployee(payrunid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/resetpayrunbyid/payrunid/' + payrunid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getpayrunemployeesalarycomponents(payrunemployeeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getpayrunemployeesalarycomponentsbypayrunemployeeid/payrunemployeeid/' + payrunemployeeid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
RefreshMasterData() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/refreshmasterdata/np';
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
payslipPrint(payrunEmployeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getpaysliphtml/payrunemployeeid/' + payrunEmployeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getEmployeeCount(payrunId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getemployeecount/payrunid/' + payrunId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
stageChange(installedAppId, versionGuId, stageId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/stagechange/installedappid/' + installedAppId + '/versionguid/' + versionGuId + '/stageid/' + stageId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
calculateSalaryTemplatePreTaxDeductions(ctc, basic) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/calculatesalarytemplatepretaxdeductions/ctc/' + ctc + '/basic/' + basic;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getemployeeterminatesalarycomponents(payrunEmployeeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getemployeeterminatesalarycomponents/payrunemployeeid/' + payrunEmployeeId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getPayRunDetails(employeeId, fromDate, toDate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/getpayrundetails/employeeid/' + employeeId + '/fromdate/' + fromDate + '/todate/' + toDate;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
duplicatesalarytemplate(templateId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/duplicatesalarytemplate/templateid/' + templateId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
incomeTaxCalculation(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/hrms/payroll/incometaxcalculation';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new PayRollManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.PayRollManager = PayRollManager;
|
||||
})(Managers = Payroll.Managers || (Payroll.Managers = {}));
|
||||
})(Payroll = Hrms.Payroll || (Hrms.Payroll = {}));
|
||||
})(Hrms = Apps.Hrms || (Apps.Hrms = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user