87 lines
3.2 KiB
JavaScript
87 lines
3.2 KiB
JavaScript
|
"use strict";
|
||
|
var __extends = (this && this.__extends) || (function () {
|
||
|
var extendStatics = function (d, b) {
|
||
|
extendStatics = Object.setPrototypeOf ||
|
||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||
|
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||
|
return extendStatics(d, b);
|
||
|
};
|
||
|
return function (d, b) {
|
||
|
if (typeof b !== "function" && b !== null)
|
||
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||
|
extendStatics(d, b);
|
||
|
function __() { this.constructor = d; }
|
||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||
|
};
|
||
|
})();
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.PFcount = exports.GratuityCount = exports.GrossSalaryList = exports.ProportionateSalaryFill = exports.FSHeadResignationPermission = exports.FSTranDetail = exports.FSTran = void 0;
|
||
|
var enums_1 = require("../../_models/enums");
|
||
|
var baseObject_1 = require("../Basic/baseObject");
|
||
|
var FSTran = /** @class */ (function (_super) {
|
||
|
__extends(FSTran, _super);
|
||
|
function FSTran() {
|
||
|
var _this = _super.call(this) || this;
|
||
|
_this.details = [];
|
||
|
_this.changeTaxAmount = 0;
|
||
|
_this.netAmount = 0;
|
||
|
return _this;
|
||
|
}
|
||
|
FSTran.prototype.getTotalAmount = function (fasTran) {
|
||
|
var total;
|
||
|
total = 0;
|
||
|
if (fasTran == undefined)
|
||
|
return total;
|
||
|
fasTran.details.forEach(function (x) {
|
||
|
if (x.amountType == enums_1.EnumValueType.Amount && x.changedValue != undefined) {
|
||
|
if (x.fsTranType == enums_1.EnumFSTranType.FSPayable) {
|
||
|
total = total - x.changedValue;
|
||
|
}
|
||
|
else
|
||
|
total = total + x.changedValue;
|
||
|
}
|
||
|
});
|
||
|
return total;
|
||
|
};
|
||
|
return FSTran;
|
||
|
}(baseObject_1.BaseObject));
|
||
|
exports.FSTran = FSTran;
|
||
|
var FSTranDetail = /** @class */ (function (_super) {
|
||
|
__extends(FSTranDetail, _super);
|
||
|
function FSTranDetail() {
|
||
|
return _super.call(this) || this;
|
||
|
}
|
||
|
return FSTranDetail;
|
||
|
}(baseObject_1.BaseObject));
|
||
|
exports.FSTranDetail = FSTranDetail;
|
||
|
var FSHeadResignationPermission = /** @class */ (function () {
|
||
|
function FSHeadResignationPermission() {
|
||
|
}
|
||
|
return FSHeadResignationPermission;
|
||
|
}());
|
||
|
exports.FSHeadResignationPermission = FSHeadResignationPermission;
|
||
|
var ProportionateSalaryFill = /** @class */ (function () {
|
||
|
function ProportionateSalaryFill() {
|
||
|
}
|
||
|
return ProportionateSalaryFill;
|
||
|
}());
|
||
|
exports.ProportionateSalaryFill = ProportionateSalaryFill;
|
||
|
var GrossSalaryList = /** @class */ (function () {
|
||
|
function GrossSalaryList() {
|
||
|
}
|
||
|
return GrossSalaryList;
|
||
|
}());
|
||
|
exports.GrossSalaryList = GrossSalaryList;
|
||
|
var GratuityCount = /** @class */ (function () {
|
||
|
function GratuityCount() {
|
||
|
}
|
||
|
return GratuityCount;
|
||
|
}());
|
||
|
exports.GratuityCount = GratuityCount;
|
||
|
var PFcount = /** @class */ (function () {
|
||
|
function PFcount() {
|
||
|
}
|
||
|
return PFcount;
|
||
|
}());
|
||
|
exports.PFcount = PFcount;
|
||
|
//# sourceMappingURL=final-settlement-process.js.map
|