Compare commits
8 Commits
Brac_Maste
...
Brac_devqc
| Author | SHA1 | Date | |
|---|---|---|---|
| 8eef998cc4 | |||
| 88421887ff | |||
| c494aa2261 | |||
| cf66e78d35 | |||
| aa6281a85c | |||
| d0fbb344a2 | |||
| 5ab15e9b34 | |||
| 01e548fc23 |
69
AllowanceTypeToAllowanceDeduction_DB_Changes.sql
Normal file
69
AllowanceTypeToAllowanceDeduction_DB_Changes.sql
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
AllowanceTypeToAllowanceDeduction_DB_Changes.sql
|
||||
|
||||
Moves the Allowance Type (EnumAllowanceType: 0 Non_Gross, 1 HouseRent, 2 Medical, 3 Conveynce, 4 Utilities_Other)
|
||||
from the parameter (ADPARAMETERBASIC.allowanceType) to the allowance head
|
||||
(AllowanceDeduction.AllowanceType).
|
||||
|
||||
Run this BEFORE deploying the matching code: the new code writes AllowanceDeduction.AllowanceType
|
||||
and no longer writes ADPARAMETERBASIC.allowanceType.
|
||||
|
||||
Run order (inside this script): 1 add column -> 2 copy existing values -> 3 drop old column.
|
||||
Step 2 must run before step 3, or the values are lost.
|
||||
Every step is guarded, so the script is safe to run more than once.
|
||||
*/
|
||||
|
||||
SET NOCOUNT ON;
|
||||
GO
|
||||
|
||||
/* 1. Add AllowanceDeduction.AllowanceType */
|
||||
IF COL_LENGTH('dbo.AllowanceDeduction', 'AllowanceType') IS NULL
|
||||
BEGIN
|
||||
ALTER TABLE dbo.AllowanceDeduction
|
||||
ADD AllowanceType INT NOT NULL
|
||||
CONSTRAINT DF_AllowanceDeduction_AllowanceType DEFAULT (0);
|
||||
PRINT 'Added AllowanceDeduction.AllowanceType';
|
||||
END
|
||||
GO
|
||||
|
||||
/* 2. Copy the values already set on the parameters onto their allowance head.
|
||||
An allowance with several parameters takes the highest non-zero value. */
|
||||
IF COL_LENGTH('dbo.ADPARAMETERBASIC', 'allowanceType') IS NOT NULL
|
||||
BEGIN
|
||||
EXEC sp_executesql N'
|
||||
UPDATE AD
|
||||
SET AD.AllowanceType = X.AllowanceType
|
||||
FROM dbo.AllowanceDeduction AD
|
||||
JOIN (SELECT AllowDeductID, MAX(ISNULL(allowanceType, 0)) AS AllowanceType
|
||||
FROM dbo.ADPARAMETERBASIC
|
||||
GROUP BY AllowDeductID) X
|
||||
ON X.AllowDeductID = AD.ALLOWDEDUCTID
|
||||
WHERE AD.AllowanceType = 0
|
||||
AND X.AllowanceType <> 0;';
|
||||
PRINT 'Copied ADPARAMETERBASIC.allowanceType to AllowanceDeduction.AllowanceType';
|
||||
END
|
||||
GO
|
||||
|
||||
/* 3. Drop ADPARAMETERBASIC.allowanceType (its default constraint first, if any) */
|
||||
IF COL_LENGTH('dbo.ADPARAMETERBASIC', 'allowanceType') IS NOT NULL
|
||||
BEGIN
|
||||
DECLARE @df SYSNAME, @sql NVARCHAR(MAX);
|
||||
|
||||
SELECT @df = dc.name
|
||||
FROM sys.default_constraints dc
|
||||
JOIN sys.columns c
|
||||
ON c.object_id = dc.parent_object_id
|
||||
AND c.column_id = dc.parent_column_id
|
||||
WHERE dc.parent_object_id = OBJECT_ID('dbo.ADPARAMETERBASIC')
|
||||
AND c.name = 'allowanceType';
|
||||
|
||||
IF @df IS NOT NULL
|
||||
BEGIN
|
||||
SET @sql = N'ALTER TABLE dbo.ADPARAMETERBASIC DROP CONSTRAINT ' + QUOTENAME(@df) + N';';
|
||||
EXEC sp_executesql @sql;
|
||||
END
|
||||
|
||||
ALTER TABLE dbo.ADPARAMETERBASIC DROP COLUMN allowanceType;
|
||||
PRINT 'Dropped ADPARAMETERBASIC.allowanceType';
|
||||
END
|
||||
GO
|
||||
|
|
@ -194,8 +194,6 @@ namespace HRM.BO
|
|||
public bool IsTaxProjection { get; set; }
|
||||
public bool IsDependsOnAttendance { get; set; }
|
||||
public bool ISDEPENDSONSPECIALHOUR { get; set; }
|
||||
public EnumAllowanceType AllowanceType { get; set; }
|
||||
|
||||
public bool IsOnBalancing { get; set; }
|
||||
public bool IsDependsOnOTHour { get; set; }
|
||||
public bool IsWithException { get; set; }
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ namespace HRM.BO
|
|||
Name = string.Empty;
|
||||
NameInBangla = string.Empty;
|
||||
AllowOrDeductType = EnumAllowOrDeduct.Allowance;
|
||||
AllowanceType = EnumAllowanceType.Non_Gross;
|
||||
_status = EnumStatus.Active;
|
||||
}
|
||||
|
||||
|
|
@ -27,6 +28,7 @@ namespace HRM.BO
|
|||
public string Name { get; set; }
|
||||
public string NameInBangla { get; set; }
|
||||
public EnumAllowOrDeduct AllowOrDeductType { get; set; }
|
||||
public EnumAllowanceType AllowanceType { get; set; }
|
||||
public int payrolltypeid { get; set; }
|
||||
|
||||
//#region Property Error List: DataUpload
|
||||
|
|
|
|||
|
|
@ -922,6 +922,7 @@ namespace HRM.BO
|
|||
public interface IBonusProcessService
|
||||
{
|
||||
DataTable GetBonusItemsForESSBonusPayslip(int EmployeeID);
|
||||
DataSet GetEmpBonusDateRange(DateTime fromSalaryMonth, DateTime toSalaryMonth, string sEmpID);
|
||||
BonusProcess CalculateBonus(int payrolltypeid, List<Employee> employees, int bonusid, DateTime dBasicMonth,
|
||||
DateTime dPayDate, DateTime dCuttOfDate, double CurrProcess, bool IsDisburseWithSalary, bool IsTaxProcess);
|
||||
List<BonusProcess.BonusProcessDetail> CalculateBonusTax(List<BonusProcess.BonusProcessDetail> bonusDetails,
|
||||
|
|
|
|||
|
|
@ -1963,10 +1963,11 @@ namespace HRM.BO
|
|||
|
||||
public enum EnumAllowanceType
|
||||
{
|
||||
None = 0,
|
||||
Non_Gross = 0,
|
||||
HouseRent = 1,
|
||||
Medical = 2,
|
||||
Conveynce = 3
|
||||
Conveynce = 3,
|
||||
Utilities_Other=4
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -2181,6 +2182,7 @@ namespace HRM.BO
|
|||
OverAllSummary = 39,
|
||||
SalaryControl = 40,
|
||||
PaySlip = 41,
|
||||
DateRangeWiseSalarySheet = 4101,
|
||||
Envelop = 42,
|
||||
SalaryReconcil = 43,
|
||||
SalaryReconcilItemWise = 143,
|
||||
|
|
|
|||
|
|
@ -2074,6 +2074,7 @@ namespace HRM.BO
|
|||
|
||||
DataSet GetEmpPaySlipGrossForOthers(DateTime dSalaryMonthDate, string sEmpID);
|
||||
DataSet GetEmpPaySlipDeductForOthers(DateTime dSalaryMonthDate, string sEmpID);
|
||||
DataSet GetEmpPaySlipDateRangeMonthWise(DateTime fromSalaryMonth, DateTime toSalaryMonth, string sEmpID);
|
||||
|
||||
DataSet GetEmpPaySlipDeductForCitiOthers(DateTime dSalaryMonthDate, string sEmpID);
|
||||
DataSet GetEmpPaySlipDeductForLR(DateTime dSalaryMonthDate, string sEmpID);
|
||||
|
|
|
|||
|
|
@ -22,15 +22,15 @@ namespace HRM.DA
|
|||
{
|
||||
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
||||
tc.ExecuteNonQuery(
|
||||
"INSERT INTO ADPARAMETERBASIC(ADParameterID, allowDeductID, isForConfirmOnly, flatAmount, percentOfBasic, percentOfGross, GFFlatAmount, GFPercentOfBasic, GFPercentOfGross, minAmount, maxAmount, isCurrentlyActive, TAXABLEPERCENTAGE, ISTAXABLE, ISTaxProjection, IsDependsOnAttendance, IsDependsOnOTHour,ISDEPENDSONSPECIALHOUR, IsWithException, Periodicity, ALLOWORDEDUCT, GENDER, CreatedBy, CreationDate, PAYROLLTYPEID, LASTACTIVATIONDATE,ENTITLETYPE,PercentOfEarnedBasic,IsFractionateApplicable, TaxProjection,allowanceType,isBalancing)" +
|
||||
" VALUES(%n, %n, %b, %n, %n, %n, %n, %n, %n, %n, %n, %b, %n, %b, %b, %b, %b, %n, %b, %n, %n, %n, %n, %d, %n, %D, %n, %n, %n,%n,%n,%b)",
|
||||
"INSERT INTO ADPARAMETERBASIC(ADParameterID, allowDeductID, isForConfirmOnly, flatAmount, percentOfBasic, percentOfGross, GFFlatAmount, GFPercentOfBasic, GFPercentOfGross, minAmount, maxAmount, isCurrentlyActive, TAXABLEPERCENTAGE, ISTAXABLE, ISTaxProjection, IsDependsOnAttendance, IsDependsOnOTHour,ISDEPENDSONSPECIALHOUR, IsWithException, Periodicity, ALLOWORDEDUCT, GENDER, CreatedBy, CreationDate, PAYROLLTYPEID, LASTACTIVATIONDATE,ENTITLETYPE,PercentOfEarnedBasic,IsFractionateApplicable, TaxProjection,isBalancing)" +
|
||||
" VALUES(%n, %n, %b, %n, %n, %n, %n, %n, %n, %n, %n, %b, %n, %b, %b, %b, %b, %n, %b, %n, %n, %n, %n, %d, %n, %D, %n, %n, %n,%n,%b)",
|
||||
item.ID, item.AllowDeductID, item.IsForConfirmOnly, item.FlatAmount, item.PercentOfBasic,
|
||||
item.PercentOfGross, item.GFFlatAmount, item.GFPercentOfBasic, item.GFPercentOfGross, item.MinAmount,
|
||||
item.MaxAmount, item.IsCurrentlyActive, item.TaxablePercentage, item.IsTaxable, item.IsTaxProjection,
|
||||
item.IsDependsOnAttendance, item.IsDependsOnOTHour, item.ISDEPENDSONSPECIALHOUR, item.IsWithException,
|
||||
item.Periodicity, item.AllowOrDeductType, item.Gender, item.CreatedBy, item.CreatedDate,
|
||||
item.PayrollTypeID, DateTime.Now, item.EntitleType, item.PercentOfEarnedBasic,
|
||||
item.IsFractionateApplicable, 0,item.AllowanceType,item.IsOnBalancing);
|
||||
item.IsFractionateApplicable, 0, item.IsOnBalancing);
|
||||
}
|
||||
|
||||
internal static void Insert(TransactionContext tc, ADParameter.ADParameterGrade item)
|
||||
|
|
@ -57,13 +57,13 @@ namespace HRM.DA
|
|||
internal static void Update(TransactionContext tc, ADParameter item)
|
||||
{
|
||||
tc.ExecuteNonQuery(
|
||||
"UPDATE ADPARAMETERBASIC SET allowDeductID=%n, IsForConfirmOnly=%b, FlatAmount=%n, PercentOfBasic=%n, PercentOfGross=%n, GFFlatAmount=%n, GFPercentOfBasic=%n, GFPercentOfGross=%n, MinAmount=%n, MaxAmount=%n, IsCurrentlyActive=%b, TaxablePercentage=%n, IsTaxable=%b, IsTaxProjection=%b, IsDependsOnAttendance=%b, IsDependsOnOTHour=%b, IsWithException=%b, Periodicity=%n, ALLOWORDEDUCT=%n, Gender=%n, ModifiedBy=%n, ModifiedDate=%d, ENTITLETYPE=%n, PercentOfEarnedBasic=%n, IsFractionateApplicable=%n,allowanceType=%n,isBalancing=%b" +
|
||||
"UPDATE ADPARAMETERBASIC SET allowDeductID=%n, IsForConfirmOnly=%b, FlatAmount=%n, PercentOfBasic=%n, PercentOfGross=%n, GFFlatAmount=%n, GFPercentOfBasic=%n, GFPercentOfGross=%n, MinAmount=%n, MaxAmount=%n, IsCurrentlyActive=%b, TaxablePercentage=%n, IsTaxable=%b, IsTaxProjection=%b, IsDependsOnAttendance=%b, IsDependsOnOTHour=%b, IsWithException=%b, Periodicity=%n, ALLOWORDEDUCT=%n, Gender=%n, ModifiedBy=%n, ModifiedDate=%d, ENTITLETYPE=%n, PercentOfEarnedBasic=%n, IsFractionateApplicable=%n,isBalancing=%b" +
|
||||
" WHERE ADParameterID=%n", item.AllowDeductID, item.IsForConfirmOnly, item.FlatAmount,
|
||||
item.PercentOfBasic, item.PercentOfGross, item.GFFlatAmount, item.GFPercentOfBasic,
|
||||
item.GFPercentOfGross, item.MinAmount, item.MaxAmount, item.IsCurrentlyActive, item.TaxablePercentage,
|
||||
item.IsTaxable, item.IsTaxProjection, item.IsDependsOnAttendance, item.IsDependsOnOTHour,
|
||||
item.IsWithException, item.Periodicity, item.AllowOrDeductType, item.Gender, item.ModifiedBy,
|
||||
item.ModifiedDate, item.EntitleType, item.PercentOfEarnedBasic, item.IsFractionateApplicable, item.AllowanceType, item.IsOnBalancing, item.ID);
|
||||
item.ModifiedDate, item.EntitleType, item.PercentOfEarnedBasic, item.IsFractionateApplicable, item.IsOnBalancing, item.ID);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ namespace HRM.DA
|
|||
internal static void Insert(TransactionContext tc, AllowanceDeduction item)
|
||||
{
|
||||
tc.ExecuteNonQuery(
|
||||
"INSERT INTO AllowanceDeduction(ALLOWDEDUCTID, code, name, allowOrDeduct, CreatedBy, CreationDate, SequenceNo, Status, payrolltypeid, nameinbangla)" +
|
||||
" VALUES(%n, %s, %s, %n, %n, %d, %n, %n, %n, %u)", item.ID, item.Code, item.Name, item.AllowOrDeductType,
|
||||
item.CreatedBy, item.CreatedDate, item.Sequence, item.Status , item.payrolltypeid, item.NameInBangla);
|
||||
"INSERT INTO AllowanceDeduction(ALLOWDEDUCTID, code, name, allowOrDeduct, CreatedBy, CreationDate, SequenceNo, Status, payrolltypeid, nameinbangla, AllowanceType)" +
|
||||
" VALUES(%n, %s, %s, %n, %n, %d, %n, %n, %n, %u, %n)", item.ID, item.Code, item.Name, item.AllowOrDeductType,
|
||||
item.CreatedBy, item.CreatedDate, item.Sequence, item.Status , item.payrolltypeid, item.NameInBangla, item.AllowanceType);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
@ -33,8 +33,8 @@ namespace HRM.DA
|
|||
{
|
||||
tc.ExecuteNonQuery(
|
||||
"UPDATE AllowanceDeduction SET code=%s, name=%s, allowOrDeduct=%n, ModifiedBy=%n, ModifiedDate=%d, SequenceNo=%n, Status=%n" +
|
||||
" , payrolltypeid=%n, nameinbangla=%u WHERE ALLOWDEDUCTID=%n", item.Code, item.Name, item.AllowOrDeductType, item.ModifiedBy,
|
||||
item.ModifiedDate, item.Sequence, item.Status, item.payrolltypeid, item.NameInBangla, item.ID);
|
||||
" , payrolltypeid=%n, nameinbangla=%u, AllowanceType=%n WHERE ALLOWDEDUCTID=%n", item.Code, item.Name, item.AllowOrDeductType, item.ModifiedBy,
|
||||
item.ModifiedDate, item.Sequence, item.Status, item.payrolltypeid, item.NameInBangla, item.AllowanceType, item.ID);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -430,6 +430,31 @@ AND BP.PayrollTypeID=%n", emps, FromDate, ToDate, payrollTypeID);
|
|||
//{
|
||||
// return tc.ExecuteReader("SELECT * FROM BonusEmpCostCenter WHERE BonusProcessID=%n", nID);
|
||||
//}
|
||||
// Date Range Wise Salary Sheet (Include Bonus): every bonus of the employees whose bonus month OR
|
||||
// disburse date falls between the first day of fromSalaryMonth and the end of toSalaryMonth.
|
||||
// A bonus disbursed with salary (ISDISBURSEWITHSALARY = 1) is left out: it is already a salary item
|
||||
// (SalaryMonthlyDetail, ItemCode -107), so taking it again would count it twice.
|
||||
// Amount / tax are ChangeBonusAmount / ChangeTaxAmount, the figures the bonus register shows.
|
||||
internal static DataSet GetEmpBonusDateRange(TransactionContext tc, DateTime fromSalaryMonth, DateTime toSalaryMonth, string sEmpID)
|
||||
{
|
||||
DateTime fromDate = new DateTime(fromSalaryMonth.Year, fromSalaryMonth.Month, 1);
|
||||
DateTime toDateExclusive = new DateTime(toSalaryMonth.Year, toSalaryMonth.Month, 1).AddMonths(1);
|
||||
string sql = SQLParser.MakeSQL(@"SELECT E.EMPLOYEENO, E.NAME Name, G.DESCRIPTION GName, D.DESCRIPTION Department, E.JOININGDATE,
|
||||
BPD.BasicSalary, BP.BonusProcessID, BP.BonusID, B.NAME BonusName, BP.BonusMonth, BP.DisburseDate,
|
||||
BPD.ChangeBonusAmount, BPD.ChangeTaxAmount
|
||||
FROM BONUSPROCESS BP
|
||||
inner join BONUSPROCESSDETAIL BPD on BPD.BonusProcessID = BP.BonusProcessID
|
||||
inner join BONUS B on B.BONUSID = BP.BONUSID
|
||||
inner join EMPLOYEE E on E.EMPLOYEEID = BPD.EmployeeID
|
||||
left outer join GRADES G on G.GRADEID = E.GRADEID
|
||||
left outer join DEPARTMENT D on D.DEPARTMENTID = E.DEPARTMENTID
|
||||
WHERE BPD.EmployeeID IN(%q) AND ISNULL(BP.ISDISBURSEWITHSALARY, 0) = 0
|
||||
AND ((BP.BonusMonth >= %d AND BP.BonusMonth < %d))
|
||||
ORDER BY E.EMPLOYEENO, BP.BonusMonth, BP.BonusID",
|
||||
sEmpID, fromDate, toDateExclusive);
|
||||
return tc.ExecuteDataSet(sql);
|
||||
}
|
||||
|
||||
internal static DataSet GetBonusRegister(TransactionContext tc, int BonusID, DateTime dBonusMonth,
|
||||
string sEmpID, int payrolltypeid)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -713,6 +713,40 @@ namespace HRM.DA
|
|||
return oSMonthlys;
|
||||
}
|
||||
|
||||
#region Date Range Wise Salary Sheet
|
||||
|
||||
// Date Range Wise Salary Sheet: one row per salary item per employee per salary month in the range
|
||||
// (gross 1, unauthorized leave 2, deduction 3, arrear 8 and the net payable 5/-132), with the
|
||||
// employee's grade / basic of THAT month. PaySlip.ShowReportDateRange turns it into the salary sheet matrix.
|
||||
// LEFT JOIN so that a salary month without any of those items still gets its row.
|
||||
internal static DataSet GetEmpPaySlipDateRangeMonthWise(TransactionContext tc, DateTime fromSalaryMonth, DateTime toSalaryMonth, string sEmpID)
|
||||
{
|
||||
DataSet oSMonthlys = new DataSet();
|
||||
try
|
||||
{
|
||||
string sql = SQLParser.MakeSQL(@"SELECT E.EMPLOYEENO, E.NAME Name, G.DESCRIPTION GName, D.DESCRIPTION Department, E.JOININGDATE,
|
||||
S.SalaryMonth, S.THISMONTHBASIC ActualBasic,
|
||||
SD.ITEMGROUP, SD.ItemCode, SD.ItemID, SD.DESCRIPTION Description, SD.Position, SD.CHANGEDAMOUNT
|
||||
FROM SALARYMONTHLY S
|
||||
inner join EMPLOYEE E on S.EMPLOYEEID = E.EMPLOYEEID
|
||||
inner join GRADES G on S.GRADEID = G.GRADEID
|
||||
inner join DEPARTMENT D on S.DEPARTMENTID = D.DEPARTMENTID
|
||||
left outer join SALARYMONTHLYDETAIL SD on S.SALARYMONTHLYID = SD.SALARYMONTHLYID
|
||||
AND (SD.ITEMGROUP IN (1,2,3,8) OR (SD.ITEMGROUP = 5 AND SD.ItemCode = -132))
|
||||
WHERE S.SalaryMonth BETWEEN %d AND %d AND S.EmployeeID IN(%q)
|
||||
ORDER BY E.EMPLOYEENO, S.SalaryMonth, SD.Position", fromSalaryMonth, toSalaryMonth, sEmpID);
|
||||
|
||||
oSMonthlys = tc.ExecuteDataSet(sql);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message);
|
||||
}
|
||||
return oSMonthlys;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
internal static DataSet GetGrossDeduction(TransactionContext tc, int empID, DateTime salaryMonth)
|
||||
{
|
||||
DataSet rootDataset = new DataSet();
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ namespace HRM.DA
|
|||
oADParameter.ModifiedBy = oReader.GetInt32("ModifiedBy", 0);
|
||||
oADParameter.ModifiedDate = oReader.GetDateTime("ModifiedDate");
|
||||
oADParameter.EntitleType = (EnumEntitleType)oReader.GetInt32("EntitleType").Value;
|
||||
oADParameter.AllowanceType = (EnumAllowanceType)oReader.GetInt32("allowanceType").Value;
|
||||
oADParameter.IsOnBalancing = oReader.GetBoolean("isBalancing").Value;
|
||||
this.SetObjectState(oADParameter, Ease.Core.ObjectState.Saved);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ namespace HRM.DA
|
|||
oAllowanceDeduction.Name = oReader.GetString("name");
|
||||
oAllowanceDeduction.NameInBangla = oReader.GetString("nameinbangla", true, null);
|
||||
oAllowanceDeduction.AllowOrDeductType = (EnumAllowOrDeduct)oReader.GetInt32("allowOrDeduct").Value;
|
||||
oAllowanceDeduction.AllowanceType = (EnumAllowanceType)oReader.GetInt32("AllowanceType", 0);
|
||||
oAllowanceDeduction.Sequence = oReader.GetInt32("SequenceNo").Value;
|
||||
oAllowanceDeduction.Status = (EnumStatus)oReader.GetInt32("Status").Value;
|
||||
//oAllowanceDeduction.Periodicity = (EnumPeriodicity)oReader.GetInt32("Periodicity").Value;
|
||||
|
|
|
|||
|
|
@ -716,6 +716,32 @@ namespace HRM.DA
|
|||
// return bonusProcessAdjustItems;
|
||||
//}
|
||||
|
||||
public DataSet GetEmpBonusDateRange(DateTime fromSalaryMonth, DateTime toSalaryMonth, string sEmpID)
|
||||
{
|
||||
DataSet oBonuses = new DataSet();
|
||||
|
||||
TransactionContext tc = null;
|
||||
try
|
||||
{
|
||||
tc = TransactionContext.Begin();
|
||||
oBonuses = BonusProcessDA.GetEmpBonusDateRange(tc, fromSalaryMonth, toSalaryMonth, sEmpID);
|
||||
tc.End();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
#region Handle Exception
|
||||
|
||||
if (tc != null)
|
||||
tc.HandleError();
|
||||
ExceptionLog.Write(e);
|
||||
throw new ServiceException(e.Message, e);
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
return oBonuses;
|
||||
}
|
||||
|
||||
public DataSet GetBonusRegister(int bonusID, DateTime dBonusMonth, string sEmpID, int payrolltypeid)
|
||||
{
|
||||
DataSet oBonusRegisters = new DataSet();
|
||||
|
|
|
|||
|
|
@ -704,6 +704,9 @@ namespace HRM.DA
|
|||
double arrgrossamount = 0, arrrcvgross = 0;
|
||||
foreach (SalaryMonthly sMonthly in _salaryMonthlys)
|
||||
{
|
||||
|
||||
if (sMonthly.Details.Any(x => x.IsOnBalancing == true) == false) continue;
|
||||
|
||||
grossamount = 0; rcvgross = 0; nProjectAmount = 0;
|
||||
arrgrossamount = 0; arrrcvgross = 0;
|
||||
foreach (EmployeeGradeSalary item in sMonthly.GradeSalaries)
|
||||
|
|
@ -937,7 +940,8 @@ namespace HRM.DA
|
|||
ADParameter adParam = _adParameters.Find(x => x.ID == emp.ADParameterID);
|
||||
if (adParam != null)
|
||||
{
|
||||
emp.AllowanceType=adParam.AllowanceType;
|
||||
emp.AllowanceType = _allowdeducitons.FirstOrDefault(x => x.ID == adParam.AllowDeductID)?.AllowanceType
|
||||
?? EnumAllowanceType.Utilities_Other;
|
||||
emp.IsOnBalancing=adParam.IsOnBalancing;
|
||||
}
|
||||
|
||||
|
|
@ -969,8 +973,8 @@ namespace HRM.DA
|
|||
item.AllowDeduct = _allowdeducitons.FirstOrDefault(x => x.ID == item.AllowDeductID);
|
||||
amount = 0;
|
||||
ADParameter parameter = _adParameters.FirstOrDefault(x => x.ID == item.ADParameterID);
|
||||
parameter.AllowanceDeduction = _allowdeducitons.FirstOrDefault(x => x.ID == item.AllowDeductID);
|
||||
if (parameter == null) continue;
|
||||
parameter.AllowanceDeduction = _allowdeducitons.FirstOrDefault(x => x.ID == item.AllowDeductID);
|
||||
|
||||
amount = new ADParameterService().GetIndividualAmount(salary.Employee, _processMonth, item,
|
||||
salary.Employee.GrossSalary,
|
||||
|
|
@ -1017,9 +1021,10 @@ namespace HRM.DA
|
|||
|
||||
if (detail != null)
|
||||
{
|
||||
if (parameter.AllowanceType == EnumAllowanceType.HouseRent ||
|
||||
parameter.AllowanceType == EnumAllowanceType.Medical ||
|
||||
parameter.AllowanceType == EnumAllowanceType.Conveynce)
|
||||
EnumAllowanceType allowanceType = parameter.AllowanceDeduction?.AllowanceType ?? EnumAllowanceType.Non_Gross;
|
||||
if (allowanceType == EnumAllowanceType.HouseRent ||
|
||||
allowanceType == EnumAllowanceType.Medical ||
|
||||
allowanceType == EnumAllowanceType.Conveynce)
|
||||
{
|
||||
|
||||
if (groupCode != EnumSalaryGroup.Arrear)
|
||||
|
|
@ -1061,9 +1066,10 @@ namespace HRM.DA
|
|||
|
||||
amount = new ADParameterService().GetGradeDefinedAmount(salary.Employee, empGradeSalary.BasicSalary, empGradeSalary.GrossSalary, empGradeSalary, parameter);
|
||||
|
||||
if ((parameter.AllowanceType == EnumAllowanceType.HouseRent && gCode == EnumSalaryGroup.Gross) ||
|
||||
(parameter.AllowanceType == EnumAllowanceType.Medical && gCode == EnumSalaryGroup.Gross) ||
|
||||
(parameter.AllowanceType == EnumAllowanceType.Conveynce && gCode == EnumSalaryGroup.Gross))
|
||||
EnumAllowanceType allowanceType = parameter.AllowanceDeduction.AllowanceType;
|
||||
if ((allowanceType == EnumAllowanceType.HouseRent && gCode == EnumSalaryGroup.Gross) ||
|
||||
(allowanceType == EnumAllowanceType.Medical && gCode == EnumSalaryGroup.Gross) ||
|
||||
(allowanceType == EnumAllowanceType.Conveynce && gCode == EnumSalaryGroup.Gross))
|
||||
{
|
||||
double nAmt = new ADParameterService().GetGradeDefinedAmountForMonth(salary.Employee, salary.ThisMonthBasic, salary.ThisMonthGross, empGradeSalary, parameter, 1);
|
||||
salary.ActualPassegeFreeAmount += nAmt;
|
||||
|
|
@ -1103,7 +1109,7 @@ namespace HRM.DA
|
|||
if (detail != null)
|
||||
detail.Position = parameter.AllowanceDeduction.Sequence + 1;
|
||||
|
||||
detail.AllowanceType = parameter.AllowanceType;
|
||||
detail.AllowanceType = parameter.AllowanceDeduction.AllowanceType;
|
||||
detail.IsOnBalancing= parameter.IsOnBalancing;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -655,6 +655,31 @@ namespace HRM.DA
|
|||
return oSalaryMonthlys;
|
||||
}
|
||||
|
||||
public DataSet GetEmpPaySlipDateRangeMonthWise(DateTime fromSalaryMonth, DateTime toSalaryMonth, string sEmpID)
|
||||
{
|
||||
DataSet oSalaryMonthlys = new DataSet();
|
||||
TransactionContext tc = null;
|
||||
try
|
||||
{
|
||||
tc = TransactionContext.Begin();
|
||||
oSalaryMonthlys = SalaryMonthlyDA.GetEmpPaySlipDateRangeMonthWise(tc, fromSalaryMonth, toSalaryMonth, sEmpID);
|
||||
tc.End();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
#region Handle Exception
|
||||
|
||||
if (tc != null)
|
||||
tc.HandleError();
|
||||
ExceptionLog.Write(e);
|
||||
throw new ServiceException(e.Message, e);
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
return oSalaryMonthlys;
|
||||
}
|
||||
|
||||
public DataSet GetEmpPaySlipDeductForCitiOthers(DateTime dateTime, string sEmpID)
|
||||
{
|
||||
DataSet oSalaryMonthlys = new DataSet();
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using HRM.BO;
|
|||
using Ease.Core.Utility;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using Ease.Core;
|
||||
using Payroll.Service;
|
||||
using Microsoft.Data.SqlClient;
|
||||
|
|
@ -1372,9 +1373,11 @@ namespace HRM.DA
|
|||
{
|
||||
pscFreeIime = item;
|
||||
}
|
||||
if (param.AllowanceType ==EnumAllowanceType.HouseRent ||
|
||||
param.AllowanceType == EnumAllowanceType.Medical ||
|
||||
param.AllowanceType == EnumAllowanceType.Conveynce)
|
||||
EnumAllowanceType allowanceType = taxCalculator.AllowanceDeductions
|
||||
.FirstOrDefault(x => x.ID == param.AllowDeductID)?.AllowanceType ?? EnumAllowanceType.Non_Gross;
|
||||
if (allowanceType == EnumAllowanceType.HouseRent ||
|
||||
allowanceType == EnumAllowanceType.Medical ||
|
||||
allowanceType == EnumAllowanceType.Conveynce)
|
||||
{
|
||||
|
||||
ADParameter adParam = new ADParameterService().GetApplicableParameter(oEmp, salaries.GradeID,
|
||||
|
|
|
|||
|
|
@ -716,6 +716,259 @@ namespace HRM.Report
|
|||
return reportProcessor.ShowDlgForNewPaySlip(null, basicInfo,oFDST, payrollTypeID);
|
||||
}
|
||||
|
||||
#region Date Range Wise Salary Sheet
|
||||
|
||||
/// <summary>
|
||||
/// Date Range Wise Salary Sheet (report 4101): a salary-sheet style matrix of every salary month of each
|
||||
/// employee between fromMonth and toMonth - one row per employee per salary month, one column per
|
||||
/// salary head (the columns come from the data, they are not fixed), then Total Gross, the
|
||||
/// deduction heads, Total Deduction and Net Pay, with a grand total at the bottom.
|
||||
/// With includeBonus, every bonus whose bonus month or disburse date falls in the range is added
|
||||
/// too: one column per bonus and a Bonus Tax column next to Income Tax (see BonusProcessDA.GetEmpBonusDateRange).
|
||||
/// Rendered from the embedded RDLC DateRangeWiseSalarySheet.rdlc, the way the salary sheet (report 54) is.
|
||||
/// </summary>
|
||||
public byte[] ShowReportDateRange(int payrollTypeID, DateTime fromMonth, DateTime toMonth, string sEmpID, string reportType, bool includeBonus)
|
||||
{
|
||||
DateTime fromSalaryMonth = GlobalFunctions.LastDateOfMonth(fromMonth);
|
||||
DateTime toSalaryMonth = GlobalFunctions.LastDateOfMonth(toMonth);
|
||||
if (fromSalaryMonth > toSalaryMonth)
|
||||
{
|
||||
throw new Exception("From month can not be greater than To month.");
|
||||
}
|
||||
|
||||
DataTable oItems = new SalaryMonthlyService().GetEmpPaySlipDateRangeMonthWise(fromSalaryMonth, toSalaryMonth, sEmpID).Tables[0];
|
||||
DataTable oBonuses = includeBonus
|
||||
? new BonusProcessService().GetEmpBonusDateRange(fromSalaryMonth, toSalaryMonth, sEmpID).Tables[0]
|
||||
: null;
|
||||
if (oItems.Rows.Count <= 0 && (oBonuses == null || oBonuses.Rows.Count <= 0))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
DataTable dtSalarySheet = this.GetDateRangeSalarySheetTable(oItems, oBonuses, fromSalaryMonth, toSalaryMonth);
|
||||
dtSalarySheet.TableName = "DateRangeSalarySheet";
|
||||
DataSet resultDataSet = new DataSet();
|
||||
resultDataSet.Tables.Add(dtSalarySheet);
|
||||
|
||||
string salarySheetPeriod = fromSalaryMonth.Year == toSalaryMonth.Year && fromSalaryMonth.Month == toSalaryMonth.Month
|
||||
? "Salary Sheet for the month of " + toSalaryMonth.ToString("MMMM yyyy")
|
||||
: "Salary Sheet for the period of " + fromSalaryMonth.ToString("MMMM yyyy") + " to " + toSalaryMonth.ToString("MMMM yyyy");
|
||||
List<ReportParameter> extraParams = new List<ReportParameter>();
|
||||
extraParams.Add(new ReportParameter("SalarySheetPeriod", salarySheetPeriod));
|
||||
|
||||
ReportProcessor reportProcessor = new ReportProcessor();
|
||||
return reportProcessor.CommonReportView(null, "HRM.Report.RDLC.DateRangeWiseSalarySheet.rdlc", resultDataSet, null, extraParams, true, payrollTypeID, reportType);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Turns the item rows of GetEmpPaySlipDateRangeMonthWise (and, when given, the bonus rows of
|
||||
/// GetEmpBonusDateRange) into the matrix rows: for every employee and month, one row per column
|
||||
/// (0 where that month has no such head). Salary columns are keyed by ItemGroup|ItemCode|ItemID,
|
||||
/// not by description, because an arrear and an unauthorized-leave row carry the same description
|
||||
/// as the gross head ("Basic"); bonus columns are keyed by BonusID.
|
||||
/// Total Gross = gross + arrear - unauthorized leave + bonus; Total Deduction = deductions + bonus tax;
|
||||
/// Net Pay = the processed Net Payable (5 / -132) + bonus - bonus tax.
|
||||
/// A bonus goes on the row of its bonus month when that month is in the range, otherwise on the row
|
||||
/// of its disburse month.
|
||||
/// </summary>
|
||||
private DataTable GetDateRangeSalarySheetTable(DataTable oItems, DataTable oBonuses, DateTime fromSalaryMonth, DateTime toSalaryMonth)
|
||||
{
|
||||
int grossGroup = (int)EnumSalaryGroup.Gross;
|
||||
int unauthGroup = (int)EnumSalaryGroup.UnauthLeave;
|
||||
int deductGroup = (int)EnumSalaryGroup.Deductions;
|
||||
int arrearGroup = (int)EnumSalaryGroup.Arrear;
|
||||
const string unauthKey = "UNAUTHLEAVE", totalGrossKey = "TOTALGROSS", totalDeductionKey = "TOTALDEDUCTION", netPayKey = "NETPAY";
|
||||
const string bonusKeyPrefix = "BONUS|", bonusTaxKey = "BONUSTAX";
|
||||
|
||||
DataTable dt = new DataTable();
|
||||
dt.Columns.Add("EmpNo", typeof(string));
|
||||
dt.Columns.Add("EmpName", typeof(string));
|
||||
dt.Columns.Add("Grade", typeof(string));
|
||||
dt.Columns.Add("Department", typeof(string));
|
||||
dt.Columns.Add("SalaryMonth", typeof(DateTime));
|
||||
dt.Columns.Add("JoiningDate", typeof(DateTime));
|
||||
dt.Columns.Add("ActualBasic", typeof(double));
|
||||
dt.Columns.Add("ColumnKey", typeof(string));
|
||||
dt.Columns.Add("ColumnName", typeof(string));
|
||||
dt.Columns.Add("ColumnSequence", typeof(int));
|
||||
dt.Columns.Add("Amount", typeof(double));
|
||||
|
||||
List<DataRow> itemRows = oItems.AsEnumerable().Where(r => r["ITEMGROUP"] != DBNull.Value).ToList();
|
||||
|
||||
// every head that has a non-zero amount somewhere in the range; the description of the latest month
|
||||
var heads = itemRows
|
||||
.GroupBy(r => new { Group = Convert.ToInt32(r["ITEMGROUP"]), Code = Convert.ToInt32(r["ItemCode"]), ID = Convert.ToInt32(r["ItemID"]) })
|
||||
.Select(g => new
|
||||
{
|
||||
g.Key.Group,
|
||||
g.Key.Code,
|
||||
g.Key.ID,
|
||||
Key = g.Key.Group + "|" + g.Key.Code + "|" + g.Key.ID,
|
||||
Description = Convert.ToString(g.OrderBy(r => Convert.ToDateTime(r["SalaryMonth"])).Last()["Description"]),
|
||||
Position = g.Min(r => r["Position"] == DBNull.Value ? int.MaxValue : Convert.ToInt32(r["Position"])),
|
||||
HasAmount = g.Any(r => Convert.ToDouble(r["CHANGEDAMOUNT"]) != 0)
|
||||
})
|
||||
.Where(h => h.HasAmount)
|
||||
.ToList();
|
||||
|
||||
// bonus rows with the salary month (row) each one belongs to
|
||||
DateTime fromDate = new DateTime(fromSalaryMonth.Year, fromSalaryMonth.Month, 1);
|
||||
var bonuses = (oBonuses == null ? new List<DataRow>() : oBonuses.AsEnumerable().ToList())
|
||||
.Select(r =>
|
||||
{
|
||||
DateTime bonusMonth = Convert.ToDateTime(r["BonusMonth"]);
|
||||
bool bonusMonthInRange = bonusMonth >= fromDate && bonusMonth <= toSalaryMonth.AddDays(1).AddTicks(-1);
|
||||
return new
|
||||
{
|
||||
Row = r,
|
||||
EmpNo = Convert.ToString(r["EMPLOYEENO"]),
|
||||
Month = GlobalFunctions.LastDateOfMonth(bonusMonthInRange ? bonusMonth : Convert.ToDateTime(r["DisburseDate"])),
|
||||
Key = bonusKeyPrefix + Convert.ToInt32(r["BonusID"]),
|
||||
Name = Convert.ToString(r["BonusName"]),
|
||||
Amount = r["ChangeBonusAmount"] == DBNull.Value ? 0 : Convert.ToDouble(r["ChangeBonusAmount"]),
|
||||
Tax = r["ChangeTaxAmount"] == DBNull.Value ? 0 : Convert.ToDouble(r["ChangeTaxAmount"])
|
||||
};
|
||||
})
|
||||
.Where(b => b.Amount != 0 || b.Tax != 0)
|
||||
.ToList();
|
||||
|
||||
#region Column order
|
||||
List<KeyValuePair<string, string>> columns = new List<KeyValuePair<string, string>>();
|
||||
// earnings: Basic first, then the salary position; each head's arrear right after it
|
||||
foreach (var head in heads.Where(h => h.Group == grossGroup)
|
||||
.OrderBy(h => h.Code == (int)EnumSalaryItemCode.Basic_Salary ? 0 : 1)
|
||||
.ThenBy(h => h.Position).ThenBy(h => h.Description))
|
||||
{
|
||||
columns.Add(new KeyValuePair<string, string>(head.Key, head.Description));
|
||||
var arrear = heads.FirstOrDefault(h => h.Group == arrearGroup && h.Code == head.Code && h.ID == head.ID);
|
||||
if (arrear != null)
|
||||
columns.Add(new KeyValuePair<string, string>(arrear.Key, GetArrearColumnName(arrear.Description)));
|
||||
}
|
||||
// an arrear whose head is not paid in the range
|
||||
foreach (var arrear in heads.Where(h => h.Group == arrearGroup && !columns.Any(c => c.Key == h.Key))
|
||||
.OrderBy(h => h.Position).ThenBy(h => h.Description))
|
||||
{
|
||||
columns.Add(new KeyValuePair<string, string>(arrear.Key, GetArrearColumnName(arrear.Description)));
|
||||
}
|
||||
// one column per bonus, in the order they were paid
|
||||
foreach (var bonus in bonuses.GroupBy(b => b.Key).OrderBy(g => g.Min(b => b.Month)).ThenBy(g => g.Key))
|
||||
{
|
||||
columns.Add(new KeyValuePair<string, string>(bonus.Key, bonus.OrderBy(b => b.Month).Last().Name));
|
||||
}
|
||||
if (heads.Any(h => h.Group == unauthGroup))
|
||||
columns.Add(new KeyValuePair<string, string>(unauthKey, "Unauthorized Leave"));
|
||||
columns.Add(new KeyValuePair<string, string>(totalGrossKey, "Total Gross"));
|
||||
// deductions: Income Tax (then Bonus Tax), PF, then the salary position
|
||||
bool bonusTaxAdded = bonuses.Count == 0;
|
||||
foreach (var head in heads.Where(h => h.Group == deductGroup)
|
||||
.OrderBy(h => h.Code == (int)EnumSalaryItemCode.Inc_Tax_Deduction ? 0 : h.Code == (int)EnumSalaryItemCode.PF_Contribution ? 1 : 2)
|
||||
.ThenBy(h => h.Position).ThenBy(h => h.Description))
|
||||
{
|
||||
if (!bonusTaxAdded && head.Code != (int)EnumSalaryItemCode.Inc_Tax_Deduction)
|
||||
{
|
||||
columns.Add(new KeyValuePair<string, string>(bonusTaxKey, "Bonus Tax"));
|
||||
bonusTaxAdded = true;
|
||||
}
|
||||
columns.Add(new KeyValuePair<string, string>(head.Key, head.Description));
|
||||
}
|
||||
if (!bonusTaxAdded)
|
||||
columns.Add(new KeyValuePair<string, string>(bonusTaxKey, "Bonus Tax"));
|
||||
columns.Add(new KeyValuePair<string, string>(totalDeductionKey, "Total Deduction"));
|
||||
columns.Add(new KeyValuePair<string, string>(netPayKey, "Net Pay"));
|
||||
#endregion
|
||||
|
||||
var salaryMonths = oItems.AsEnumerable()
|
||||
.GroupBy(r => new { EmpNo = Convert.ToString(r["EMPLOYEENO"]), Month = Convert.ToDateTime(r["SalaryMonth"]) })
|
||||
.ToDictionary(g => g.Key, g => g.ToList());
|
||||
// a bonus can fall in a month with no salary: that month still gets its row
|
||||
var rowKeys = salaryMonths.Keys
|
||||
.Union(bonuses.Select(b => new { b.EmpNo, b.Month }))
|
||||
.ToList();
|
||||
|
||||
foreach (var rowKey in rowKeys)
|
||||
{
|
||||
List<DataRow> salaryRows = salaryMonths.ContainsKey(rowKey) ? salaryMonths[rowKey] : new List<DataRow>();
|
||||
var monthBonuses = bonuses.Where(b => b.EmpNo == rowKey.EmpNo && b.Month == rowKey.Month).ToList();
|
||||
|
||||
// employee information: this month's salary row, else the employee's latest salary row in the
|
||||
// range, else the bonus row (employee master)
|
||||
DataRow info = salaryRows.FirstOrDefault()
|
||||
?? oItems.AsEnumerable().Where(r => Convert.ToString(r["EMPLOYEENO"]) == rowKey.EmpNo)
|
||||
.OrderBy(r => Convert.ToDateTime(r["SalaryMonth"])).LastOrDefault()
|
||||
?? monthBonuses.First().Row;
|
||||
double actualBasic = salaryRows.Count > 0
|
||||
? (salaryRows[0]["ActualBasic"] == DBNull.Value ? 0 : Convert.ToDouble(salaryRows[0]["ActualBasic"]))
|
||||
: (monthBonuses[0].Row["BasicSalary"] == DBNull.Value ? 0 : Convert.ToDouble(monthBonuses[0].Row["BasicSalary"]));
|
||||
|
||||
Dictionary<string, double> amounts = new Dictionary<string, double>();
|
||||
double totalGross = 0, totalDeduction = 0, unauthLeave = 0;
|
||||
double? netPay = null;
|
||||
|
||||
foreach (DataRow r in salaryRows.Where(r => r["ITEMGROUP"] != DBNull.Value))
|
||||
{
|
||||
int group = Convert.ToInt32(r["ITEMGROUP"]);
|
||||
int code = Convert.ToInt32(r["ItemCode"]);
|
||||
string key = group + "|" + code + "|" + Convert.ToInt32(r["ItemID"]);
|
||||
double amount = Convert.ToDouble(r["CHANGEDAMOUNT"]);
|
||||
|
||||
if (group == grossGroup || group == arrearGroup)
|
||||
totalGross += amount;
|
||||
else if (group == unauthGroup)
|
||||
{
|
||||
totalGross -= amount;
|
||||
unauthLeave -= amount;
|
||||
}
|
||||
else if (group == deductGroup)
|
||||
totalDeduction += amount;
|
||||
else if (group == (int)EnumSalaryGroup.OtherItem && code == (int)EnumSalaryItemCode.Net_Payable)
|
||||
netPay = (netPay ?? 0) + amount;
|
||||
|
||||
if (group != unauthGroup)
|
||||
amounts[key] = (amounts.ContainsKey(key) ? amounts[key] : 0) + amount;
|
||||
}
|
||||
double salaryNetPay = netPay ?? (totalGross - totalDeduction);
|
||||
|
||||
double bonusAmount = 0, bonusTax = 0;
|
||||
foreach (var bonus in monthBonuses)
|
||||
{
|
||||
amounts[bonus.Key] = (amounts.ContainsKey(bonus.Key) ? amounts[bonus.Key] : 0) + bonus.Amount;
|
||||
bonusAmount += bonus.Amount;
|
||||
bonusTax += bonus.Tax;
|
||||
}
|
||||
|
||||
amounts[unauthKey] = unauthLeave;
|
||||
amounts[bonusTaxKey] = bonusTax;
|
||||
amounts[totalGrossKey] = totalGross + bonusAmount;
|
||||
amounts[totalDeductionKey] = totalDeduction + bonusTax;
|
||||
amounts[netPayKey] = salaryNetPay + bonusAmount - bonusTax;
|
||||
|
||||
for (int i = 0; i < columns.Count; i++)
|
||||
{
|
||||
DataRow oRow = dt.NewRow();
|
||||
oRow["EmpNo"] = rowKey.EmpNo;
|
||||
oRow["EmpName"] = info["Name"];
|
||||
oRow["Grade"] = info["GName"];
|
||||
oRow["Department"] = info["Department"];
|
||||
oRow["SalaryMonth"] = rowKey.Month;
|
||||
oRow["JoiningDate"] = info["JOININGDATE"];
|
||||
oRow["ActualBasic"] = actualBasic;
|
||||
oRow["ColumnKey"] = columns[i].Key;
|
||||
oRow["ColumnName"] = columns[i].Value;
|
||||
oRow["ColumnSequence"] = i + 1;
|
||||
oRow["Amount"] = amounts.ContainsKey(columns[i].Key) ? amounts[columns[i].Key] : 0;
|
||||
dt.Rows.Add(oRow);
|
||||
}
|
||||
}
|
||||
return dt;
|
||||
}
|
||||
|
||||
private string GetArrearColumnName(string description)
|
||||
{
|
||||
return description.IndexOf("arrear", StringComparison.OrdinalIgnoreCase) >= 0 ? description : description + " Arrear";
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public void PayslipMail(int payrollTypeID, DateTime SalaryMonth, string sEmpID, bool isForESS, EmailSettings emailSettings)
|
||||
{
|
||||
DataSet oFDST = new DataSet();
|
||||
|
|
|
|||
|
|
@ -315,6 +315,7 @@
|
|||
<None Remove="RDLC\SalaryRegister.rdlc" />
|
||||
<None Remove="RDLC\SalarySheetEchoTex.rdlc" />
|
||||
<None Remove="RDLC\SalarySheetWithoutCostcenter.rdlc" />
|
||||
<None Remove="RDLC\DateRangeWiseSalarySheet.rdlc" />
|
||||
<None Remove="RDLC\SettlementAdviceSheet.rdlc" />
|
||||
<None Remove="RDLC\SettlementAdviceSheetNew.rdlc" />
|
||||
<None Remove="RDLC\ShowITPfAndOtherDetails.rdlc" />
|
||||
|
|
@ -646,6 +647,7 @@
|
|||
<EmbeddedResource Include="RDLC\SalaryRegister.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalarySheetEchoTex.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SalarySheetWithoutCostcenter.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\DateRangeWiseSalarySheet.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SettlementAdviceSheet.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\SettlementAdviceSheetNew.rdlc" />
|
||||
<EmbeddedResource Include="RDLC\ShowITPfAndOtherDetails.rdlc" />
|
||||
|
|
|
|||
1217
HRM.Report/RDLC/DateRangeWiseSalarySheet.rdlc
Normal file
1217
HRM.Report/RDLC/DateRangeWiseSalarySheet.rdlc
Normal file
File diff suppressed because it is too large
Load Diff
101
HRM.UI/ClientApp/package-lock.json
generated
101
HRM.UI/ClientApp/package-lock.json
generated
|
|
@ -3660,9 +3660,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -3680,9 +3677,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -3700,9 +3694,6 @@
|
|||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -3720,9 +3711,6 @@
|
|||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -3740,9 +3728,6 @@
|
|||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -3760,9 +3745,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -3780,9 +3762,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4039,9 +4018,6 @@
|
|||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4058,9 +4034,6 @@
|
|||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4077,9 +4050,6 @@
|
|||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4096,9 +4066,6 @@
|
|||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4115,9 +4082,6 @@
|
|||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4134,9 +4098,6 @@
|
|||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4153,9 +4114,6 @@
|
|||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4172,9 +4130,6 @@
|
|||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4434,9 +4389,6 @@
|
|||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4458,9 +4410,6 @@
|
|||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4482,9 +4431,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4506,9 +4452,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4530,9 +4473,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -4554,9 +4494,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -5913,9 +5850,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -5933,9 +5867,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -5953,9 +5884,6 @@
|
|||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -5973,9 +5901,6 @@
|
|||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -5993,9 +5918,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -6013,9 +5935,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -11296,9 +11215,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -11320,9 +11236,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -11344,9 +11257,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -11368,9 +11278,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13602,7 +13509,6 @@
|
|||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "glibc",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13620,7 +13526,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "glibc",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13638,7 +13543,6 @@
|
|||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "musl",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13656,7 +13560,6 @@
|
|||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "musl",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13674,7 +13577,6 @@
|
|||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "musl",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13692,7 +13594,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "musl",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13710,7 +13611,6 @@
|
|||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "glibc",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
@ -13728,7 +13628,6 @@
|
|||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": "glibc",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"allow-deduct.js","sourceRoot":"","sources":["allow-deduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAE/C,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAC9C;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;CAIJ"}
|
||||
{"version":3,"file":"allow-deduct.js","sourceRoot":"","sources":["allow-deduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAG/C,MAAM,OAAO,kBAAmB,SAAQ,UAAU;IAC9C;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;CAKJ"}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
import {BaseObject} from '../Basic/baseObject';
|
||||
import { EnumAllowanceType } from '../enums';
|
||||
|
||||
export class AllowanceDeduction extends BaseObject {
|
||||
constructor() {
|
||||
|
|
@ -7,4 +8,5 @@ export class AllowanceDeduction extends BaseObject {
|
|||
code: string;
|
||||
name: string;
|
||||
payrollTypeID: string;
|
||||
allowanceType: EnumAllowanceType
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"UserAccessType.js","sourceRoot":"","sources":["UserAccessType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,OAAO,cAAe,SAAQ,UAAU;IAG1C;QAEI,KAAK,EAAE,CAAC;QAKL,gBAAW,GAAW,EAAE,CAAC;QAJ5B,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC;IACpD,CAAC;CAOJ"}
|
||||
{"version":3,"file":"UserAccessType.js","sourceRoot":"","sources":["UserAccessType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,OAAO,cAAe,SAAQ,UAAU;IAG1C;QAEI,KAAK,EAAE,CAAC;QAKL,gBAAW,GAAW,EAAE,CAAC;QAJ5B,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC;IACpD,CAAC;CAUJ"}
|
||||
|
|
@ -21,4 +21,31 @@ export class UserRole extends BaseObject {
|
|||
});
|
||||
}
|
||||
}
|
||||
// ---------- Maker-checker (Authentication > User Role Permission) ----------
|
||||
/** What a role request asks for (EnumUserRoleRequestType on the server). */
|
||||
export var EnumUserRoleRequestType;
|
||||
(function (EnumUserRoleRequestType) {
|
||||
EnumUserRoleRequestType[EnumUserRoleRequestType["Add"] = 1] = "Add";
|
||||
EnumUserRoleRequestType[EnumUserRoleRequestType["Remove"] = 2] = "Remove";
|
||||
})(EnumUserRoleRequestType || (EnumUserRoleRequestType = {}));
|
||||
/** Whose roles: an Admin user (userID) or a Self Service employee (employeeID + payrollTypeID). */
|
||||
export class UserRoleSubject {
|
||||
}
|
||||
/** Maker's request: the roles (of the subject's role type) the person should have. */
|
||||
export class UserRoleChangeRequest extends UserRoleSubject {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.roleIDs = [];
|
||||
}
|
||||
}
|
||||
/** One UserRole row waiting for approval (Status 2 = give, 3 = take away); id is the UserRoleID. */
|
||||
export class UserRoleRequest {
|
||||
}
|
||||
/** A person's roles of one role type, as the page shows them. */
|
||||
export class UserRoleState {
|
||||
constructor() {
|
||||
this.liveRoleIDs = [];
|
||||
this.pending = [];
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=UserRole.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"UserRole.js","sourceRoot":"","sources":["UserRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAK/C,MAAM,OAAO,QAAS,SAAQ,UAAU;IACpC;QACI,KAAK,EAAE,CAAC;QAsBZ,UAAK,GAAa,IAAI,CAAC;QACvB,g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AC,CAAC,MAAM,CAAC,CAAC;YACnE,IAAI,SAAU,GAAG,SAAS,EAAE,CAAC;gBACzB,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oBAClB,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,YAAY,CAAC;gBAE/B,CAAC,CAAC,CAAC;YACP,CAAC;YACD,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC;QACtB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAID,8EAA8E;AAE9E,4EAA4E;AAC5E,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,mEAAO,CAAA;IACP,yEAAU,CAAA;AACd,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,mGAAmG;AACnG,MAAM,OAAO,eAAe;CAK3B;AAED,sFAAsF;AACtF,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IAA1D;;QACI,YAAO,GAAa,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,oGAAoG;AACpG,MAAM,OAAO,eAAe;CAgB3B;AAED,iEAAiE;AACjE,MAAM,OAAO,aAAa;IAA1B;QAWI,gBAAW,GAAa,EAAE,CAAC;QAC3B,YAAO,GAAsB,EAAE,CAAC;IACpC,CAAC;CAAA"}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
import { BaseObject } from '../Basic/baseObject';
|
||||
/** One successful login (dbo.UserLoginInfo), as returned by api/Authentication/getUserAuditTrail. */
|
||||
export class UserLogInInfo extends BaseObject {
|
||||
constructor() {
|
||||
super();
|
||||
this.userID = 0;
|
||||
this.loginTime = undefined;
|
||||
this.logoutTime = undefined;
|
||||
this.logoutType = undefined;
|
||||
this.pcNumber = '';
|
||||
this.ipAddress = '';
|
||||
this.deviceId = '';
|
||||
this.loginID = '';
|
||||
this.userName = '';
|
||||
}
|
||||
}
|
||||
/** One failed login (dbo.BadLoginAttemptInfo), as returned by api/Authentication/getBadLoginAuditTrail. */
|
||||
export class BadLoginAttemptInfo extends BaseObject {
|
||||
constructor() {
|
||||
super();
|
||||
this.userID = 0;
|
||||
this.attemptTime = undefined;
|
||||
this.pcNumber = '';
|
||||
this.ipAddress = '';
|
||||
this.deviceId = '';
|
||||
this.loginID = '';
|
||||
this.userName = '';
|
||||
}
|
||||
}
|
||||
/** Which change history the System Audit Log page asks for (HRM.BO EnumSystemAuditHistory). */
|
||||
export var EnumSystemAuditHistory;
|
||||
(function (EnumSystemAuditHistory) {
|
||||
EnumSystemAuditHistory[EnumSystemAuditHistory["Role"] = 1] = "Role";
|
||||
EnumSystemAuditHistory[EnumSystemAuditHistory["RolePermission"] = 2] = "RolePermission";
|
||||
EnumSystemAuditHistory[EnumSystemAuditHistory["User"] = 3] = "User";
|
||||
EnumSystemAuditHistory[EnumSystemAuditHistory["UserRole"] = 4] = "UserRole";
|
||||
EnumSystemAuditHistory[EnumSystemAuditHistory["UserAccessType"] = 5] = "UserAccessType";
|
||||
})(EnumSystemAuditHistory || (EnumSystemAuditHistory = {}));
|
||||
//# sourceMappingURL=auditTrail.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"auditTrail.js","sourceRoot":"","sources":["auditTrail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qGAAqG;AACrG,MAAM,OAAO,aAAc,SAAQ,UAAU;IAWzC;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;CACJ;AAED,2GAA2G;AAC3G,MAAM,OAAO,mBAAoB,SAAQ,UAAU;IAS/C;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;CACJ;AAED,+FAA+F;AAC/F,MAAM,CAAN,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAC9B,mEAAQ,CAAA;IACR,uFAAkB,CAAA;IAClB,mEAAQ,CAAA;IACR,2EAAY,CAAA;IACZ,uFAAkB,CAAA;AACtB,CAAC,EANW,sBAAsB,KAAtB,sBAAsB,QAMjC"}
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,OAAO,IAAK,SAAQ,UAAU;IAEhC;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC;IAC1C,CAAC;CAoBJ"}
|
||||
{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,OAAO,IAAK,SAAQ,UAAU;IAEhC;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI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AI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,kBAAkB,CAAC,IAAI,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;QAC9B,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QAClC,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;QAC/B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,mBAAmB,CAAC;IAC7D,CAAC;CACJ"}
|
||||
|
|
@ -28,6 +28,7 @@ export class Employee {
|
|||
this.statusName = '';
|
||||
this.isShownInTaxSheet = false;
|
||||
this.pfMemberType = EnumPFMembershipType.NotYetLive;
|
||||
this.pfPercentage = 0;
|
||||
this.branchID = null;
|
||||
this.accountNo = '';
|
||||
this.outPayBranchID = null;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"employee.js","sourceRoot":"","sources":["employee.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,QAAQ,EACR,aAAa,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAC,cAAc,EAA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;YACV,KAAK,kBAAkB,CAAC,OAAO,CAAC;YAChC,mCAAmC;YACnC,KAAK,kBAAkB,CAAC,EAAE,CAAC;YAC3B,KAAK,kBAAkB,CAAC,YAAY;gBAChC,GAAG,GAAG,cAAc,CAAC;gBACrB,MAAM;YACV,QAAQ;QACZ,CAAC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ"}
|
||||
|
|
@ -1,12 +1,14 @@
|
|||
import {EnumAllowOrDeduct} from '../enums';
|
||||
import {EnumAllowOrDeduct, EnumAllowanceType} from '../enums';
|
||||
import {BaseObject} from '../Basic/baseObject';
|
||||
|
||||
|
||||
export class AllowanceDeduction extends BaseObject {
|
||||
constructor() {
|
||||
super();
|
||||
this.allowanceType = EnumAllowanceType.Non_Gross;
|
||||
}
|
||||
code: string;
|
||||
name: string;
|
||||
allowOrDeductType: EnumAllowOrDeduct;
|
||||
allowanceType: EnumAllowanceType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
import { BaseObject } from "../../Basic/baseObject";
|
||||
export class ComponentUploadSetup extends BaseObject {
|
||||
constructor() {
|
||||
super();
|
||||
// this.employeeID = 0;
|
||||
// this.approverID = 0;
|
||||
// this.componentType = EnumComponentType.Allowance;
|
||||
// this.itemID = 0;
|
||||
// this.description = '';
|
||||
this.isDamageManagement = false;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ComponentUploadSetup.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"ComponentUploadSetup.js","sourceRoot":"","sources":["ComponentUploadSetup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGpD,MAAM,OAAO,oBAAqB,SAAQ,UAAU;IAYlD;QACE,KAAK,EAAE,CAAC;QACR,uBAAuB;QACvB,uBAAuB;QACvB,oDAAoD;QACpD,mBAAmB;QACnB,yBAAyB;QACzB,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;IAClC,CAAC;CACF"}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
import { BaseObject } from "../../Basic/baseObject";
|
||||
export class UploadedComponent extends BaseObject {
|
||||
}
|
||||
;
|
||||
//# sourceMappingURL=UploadedComponent.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"UploadedComponent.js","sourceRoot":"","sources":["UploadedComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,MAAM,OAAO,iBAAkB,SAAQ,UAAU;CAUhD;AAAA,CAAC"}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { BaseObject } from "../../Basic/baseObject";
|
||||
export class UploadedComponentEmp extends BaseObject {
|
||||
}
|
||||
//# sourceMappingURL=UploadedComponentEmp.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"UploadedComponentEmp.js","sourceRoot":"","sources":["UploadedComponentEmp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,OAAO,oBAAqB,SAAQ,UAAU;CAUnD"}
|
||||
|
|
@ -40,6 +40,7 @@ export class ADParameter extends BaseObject {
|
|||
this.gradeNames = '';
|
||||
this.adParameterEmployees = [];
|
||||
this.calculatedAmount = 0;
|
||||
this.isOnBalancing = false;
|
||||
}
|
||||
CalculateAmount(asparam, employeeid, basicSalary, grossSalary) {
|
||||
//console.log(asparam);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"adparameter.js","sourceRoot":"","sources":["adparameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAiB,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACzJ,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,OAAO,WAAY,SAAQ,UAA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;QACzD,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IACtB,CAAC;CAoCJ"}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { EnumPeriodicity, EnumAllowOrDeduct, EnumArrearType, EnumADEmpType, EnumValueType, EnumEntitleType, EnumGender, EnumAuthStatus, EnumAllowanceType } from "../enums";
|
||||
import { EnumPeriodicity, EnumAllowOrDeduct, EnumArrearType, EnumADEmpType, EnumValueType, EnumEntitleType, EnumGender, EnumAuthStatus } from "../enums";
|
||||
import { BaseObject } from '../Basic/baseObject';
|
||||
import { AllowanceDeduction } from '../../_models/HRBasic/allowanceDeduction';
|
||||
import { SearchEmployee } from '../../_models/Employee/searchEmployee';
|
||||
|
|
@ -42,7 +42,6 @@ export class ADParameter extends BaseObject
|
|||
this.gradeNames='';
|
||||
this.adParameterEmployees = [];
|
||||
this.calculatedAmount = 0;
|
||||
this.allowanceType=EnumAllowanceType.None;
|
||||
this.isOnBalancing = false;
|
||||
}
|
||||
allowDeductID: number;
|
||||
|
|
@ -73,7 +72,6 @@ export class ADParameter extends BaseObject
|
|||
entitleType: EnumEntitleType;
|
||||
allowOrDeductType: EnumAllowOrDeduct;
|
||||
gender: EnumGender;
|
||||
allowanceType: EnumAllowanceType;
|
||||
isOnBalancing: boolean;
|
||||
|
||||
// public AllowanceDeduction AllowanceDeduction { get; set; }
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"bonusProcess.js","sourceRoot":"","sources":["bonusProcess.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,OAAO,YAAa,SAAQ,UAAU;IACxC;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;CAoBJ;AAED,MAAM,OAAO,kBAAkB;IAA/B;QAiBI,wBAAmB,GAAyB,EAAE,CAAC;QAE/C,kBAAa,GAAc,EAAE,CAAC;QAC9B,0DAA0D;IAC9D,CAAC;CAAA"}
|
||||
{"version":3,"file":"bonusProcess.js","sourceRoot":"","sources":["bonusProcess.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,OAAO,YAAa,SAAQ,UAAU;IACxC;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;CAoBJ;AAED,MAAM,OAAO,kBAAkB;IAA/B;QAmBI,wBAAmB,GAAyB,EAAE,CAAC;QAE/C,kBAAa,GAAc,EAAE,CAAC;QAC9B,0DAA0D;IAC9D,CAAC;CAAA"}
|
||||
|
|
@ -1432,6 +1432,14 @@ export var EnumEntitleType;
|
|||
EnumEntitleType[EnumEntitleType["Grade"] = 1] = "Grade";
|
||||
EnumEntitleType[EnumEntitleType["Individual"] = 2] = "Individual";
|
||||
})(EnumEntitleType || (EnumEntitleType = {}));
|
||||
export var EnumAllowanceType;
|
||||
(function (EnumAllowanceType) {
|
||||
EnumAllowanceType[EnumAllowanceType["Non_Gross"] = 0] = "Non_Gross";
|
||||
EnumAllowanceType[EnumAllowanceType["HouseRent"] = 1] = "HouseRent";
|
||||
EnumAllowanceType[EnumAllowanceType["Medical"] = 2] = "Medical";
|
||||
EnumAllowanceType[EnumAllowanceType["Conveynce"] = 3] = "Conveynce";
|
||||
EnumAllowanceType[EnumAllowanceType["Utilities_Other"] = 4] = "Utilities_Other";
|
||||
})(EnumAllowanceType || (EnumAllowanceType = {}));
|
||||
export var EnumOpiAvgPayType;
|
||||
(function (EnumOpiAvgPayType) {
|
||||
EnumOpiAvgPayType[EnumOpiAvgPayType["NONE"] = 0] = "NONE";
|
||||
|
|
@ -1781,6 +1789,8 @@ export var EnumReportType;
|
|||
EnumReportType[EnumReportType["DailyAbsentLiFung"] = 609] = "DailyAbsentLiFung";
|
||||
EnumReportType[EnumReportType["DailyOddLiFung"] = 610] = "DailyOddLiFung";
|
||||
EnumReportType[EnumReportType["DailyAttnLiFung"] = 611] = "DailyAttnLiFung";
|
||||
EnumReportType[EnumReportType["ComponentUploadReport"] = 1021] = "ComponentUploadReport";
|
||||
EnumReportType[EnumReportType["LFABankAdvice"] = 1201] = "LFABankAdvice";
|
||||
})(EnumReportType || (EnumReportType = {}));
|
||||
export var EnumItemType;
|
||||
(function (EnumItemType) {
|
||||
|
|
@ -1921,6 +1931,7 @@ export var EnumRegularDataUpload;
|
|||
EnumRegularDataUpload[EnumRegularDataUpload["Objective"] = 62] = "Objective";
|
||||
EnumRegularDataUpload[EnumRegularDataUpload["CVUpload"] = 64] = "CVUpload";
|
||||
EnumRegularDataUpload[EnumRegularDataUpload["SecondLineManagerObjectiveRating"] = 63] = "SecondLineManagerObjectiveRating";
|
||||
EnumRegularDataUpload[EnumRegularDataUpload["EssComponentUpload"] = 66] = "EssComponentUpload";
|
||||
EnumRegularDataUpload[EnumRegularDataUpload["PFMemberUpload"] = 501] = "PFMemberUpload";
|
||||
EnumRegularDataUpload[EnumRegularDataUpload["MemberLoanScheduleInfoUpload"] = 502] = "MemberLoanScheduleInfoUpload";
|
||||
EnumRegularDataUpload[EnumRegularDataUpload["MemberLoanOpeningDataUpload"] = 503] = "MemberLoanOpeningDataUpload";
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1429,10 +1429,11 @@ export enum EnumEntitleType {
|
|||
|
||||
export enum EnumAllowanceType
|
||||
{
|
||||
None = 0,
|
||||
Non_Gross = 0,
|
||||
HouseRent = 1,
|
||||
Medical = 2,
|
||||
Conveynce = 3
|
||||
Conveynce = 3,
|
||||
Utilities_Other = 4
|
||||
}
|
||||
|
||||
export enum EnumOpiAvgPayType {
|
||||
|
|
@ -1605,6 +1606,7 @@ export enum EnumReportType {
|
|||
OverAllSummary = 39,
|
||||
SalaryControl = 40,
|
||||
PaySlip = 41,
|
||||
DateRangeWiseSalarySheet = 4101,
|
||||
Envelop = 42,
|
||||
SalaryReconcil = 43,
|
||||
SalaryReconcilItemWise = 143,
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ export class BasicEntryControlComponent implements OnInit {
|
|||
ngOnInit() {
|
||||
if (this.basiccontrol.controlType == EnumDynamicControlType.DropDownServerData
|
||||
|| this.basiccontrol.controlType == EnumDynamicControlType.DropDownEnumData) {
|
||||
if (this.basiccontrol.value != "") {
|
||||
// `!= ""` alone is false for 0, which would leave a saved 0 option unselected
|
||||
if (this.basiccontrol.value !== "" && this.basiccontrol.value != null) {
|
||||
for (var i = 0; i < this.basiccontrol.dropDownValues.length; i++) {
|
||||
if (this.basiccontrol.dropDownValues[i].keyValue.toString() == this.basiccontrol.value) {
|
||||
// this.DDDefaultValue = this.basiccontrol.dropDownValues[i];
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ export var EnumDynamicControlType;
|
|||
EnumDynamicControlType[EnumDynamicControlType["DateTime"] = 5] = "DateTime";
|
||||
EnumDynamicControlType[EnumDynamicControlType["NumText"] = 6] = "NumText";
|
||||
EnumDynamicControlType[EnumDynamicControlType["IntNumText"] = 7] = "IntNumText";
|
||||
// Kendo multi-select fed from a master object ('Object|Get|IDField|TextField').
|
||||
// The value travels as comma-separated IDs, e.g. "1,3".
|
||||
EnumDynamicControlType[EnumDynamicControlType["MultiSelectServerData"] = 8] = "MultiSelectServerData";
|
||||
})(EnumDynamicControlType || (EnumDynamicControlType = {}));
|
||||
export var EnumDefaultValidatorType;
|
||||
(function (EnumDefaultValidatorType) {
|
||||
|
|
@ -44,6 +47,8 @@ export class BasicEntryFormControl {
|
|||
this.isNew = true;
|
||||
this.readOnly = false;
|
||||
this.codeAutoGenerate = false;
|
||||
// MultiSelectServerData only: load the list filtered by the current payroll type.
|
||||
this.multiSelectPayrollTypeSearch = false;
|
||||
this.dropDownValues = [];
|
||||
this.propertyName = PropertyName;
|
||||
this.label = Label;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Basic-Entry-form.js","sourceRoot":"","sources":["Basic-Entry-form.ts"],"names":[],"mappings":"AAEA,MAA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AC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;wBACtG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBACvC,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;QACD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC1B,CAAC;QACD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;CACJ;AAED,MAAM,OAAO,oBAAoB;IAI7B,YAAY,QAAgB,EAAE,SAAiB;QAC3C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAE/B,CAAC;CACJ"}
|
||||
|
|
@ -95,6 +95,10 @@ export class basicformbuilderService {
|
|||
else if (question.controlType == EnumDynamicControlType.MultiSelectServerData) {
|
||||
fromctl = new FormControl(this.toMultiSelectValue(question.value));
|
||||
}
|
||||
else if (this.isZeroEnumOption(question)) {
|
||||
// keep a stored 0 (e.g. EnumAllowanceType.Non_Gross); `|| ''` below would blank it
|
||||
fromctl = new FormControl(0);
|
||||
}
|
||||
else {
|
||||
fromctl = new FormControl(question.value || '');
|
||||
}
|
||||
|
|
@ -105,6 +109,13 @@ export class basicformbuilderService {
|
|||
return new FormGroup(group);
|
||||
}
|
||||
|
||||
// An enum dropdown whose saved value is 0 and which offers a 0 option.
|
||||
isZeroEnumOption(question: any): boolean {
|
||||
return question.controlType == EnumDynamicControlType.DropDownEnumData
|
||||
&& question.value !== '' && question.value != null && Number(question.value) === 0
|
||||
&& question.dropDownValues?.some(d => Number(d.keyValue) === 0);
|
||||
}
|
||||
|
||||
// "1,3" -> [1, 3] (MultiSelectServerData keeps its value as comma-separated IDs)
|
||||
private toMultiSelectValue(value: any): number[] {
|
||||
if (value == undefined || value == null || String(value).trim() == '') {
|
||||
|
|
|
|||
|
|
@ -14,12 +14,6 @@ import {OrganogramService} from '../../_services/payroll/organogram.service';
|
|||
import {loadingPanelService} from '../../hrm-loding panel/loding.panel.service';
|
||||
import {Observable} from 'rxjs';
|
||||
import { type TreeNode } from 'src/app/_models/common/ui-types';
|
||||
|
||||
/** An organogram node also shows the second part of the position name (`label2`) in the chart. */
|
||||
interface OrgTreeNode extends TreeNode {
|
||||
label2?: string;
|
||||
children?: OrgTreeNode[];
|
||||
}
|
||||
import {ApiService} from '../../app.api.service';
|
||||
|
||||
|
||||
|
|
@ -36,6 +30,11 @@ import { TabViewCompatModule } from 'src/app/custom-components/tab-view-compat/t
|
|||
import { EmployeePickerComponent } from 'src/app/picker/employee-picker.component';
|
||||
import { TreeViewModule } from '@progress/kendo-angular-treeview';
|
||||
import { OrganogramPickerComponent } from 'src/app/picker/organogram-picker.component';
|
||||
/** PrimeNG TreeNode plus a second label line (e.g. designation) shown in the organogram chart. */
|
||||
export interface OrgTreeNode extends TreeNode {
|
||||
label2?: string;
|
||||
children?: OrgTreeNode[];
|
||||
}
|
||||
|
||||
const is = (fileName: string, ext: string) =>
|
||||
new RegExp(`.${ext}\$`).test(fileName);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ export class AllowanceAndDeductionComponent {
|
|||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.msv.entryFrom.formHeight = 316;
|
||||
this.msv.entryFrom.formHeight = this._allowDeductType == EnumAllowOrDeduct.Deduction ? 316 : 370;
|
||||
this.msv.entryFrom.formWidth = 550;
|
||||
|
||||
if (this._allowDeductType == EnumAllowOrDeduct.Deduction) {
|
||||
|
|
@ -71,6 +71,9 @@ export class AllowanceAndDeductionComponent {
|
|||
this.msv.entryFrom.AddControl('Deduction Type', 'allowOrDeductType', EnumDynamicControlType.DropDownEnumData, 'Deduction:2', true, EnumDefaultValidatorType.Custom, 256, 5);
|
||||
} else {
|
||||
this.msv.entryFrom.AddControl('Allowance Type', 'allowOrDeductType', EnumDynamicControlType.DropDownEnumData, 'Allowance:1', true, EnumDefaultValidatorType.Custom, 256, 5);
|
||||
// House Rent / Medical / Conveyance heads feed the tax-exemption and passage calculations
|
||||
this.msv.entryFrom.AddControl('Tax Exemption Type', 'allowanceType', EnumDynamicControlType.DropDownEnumData,
|
||||
'Non Gross:0|House Rent:1|Medical:2|Conveyance:3|Utilities & Other:4', true, EnumDefaultValidatorType.Custom, 256, 5);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,28 +73,6 @@
|
|||
</kendo-dropdownlist>
|
||||
</div>
|
||||
</div>
|
||||
<div class="adp-field">
|
||||
<label class="adp-label" for="ddlAllowanceType">Allowance Type <span class="adp-required">*</span></label>
|
||||
<div class="adp-control">
|
||||
<kendo-dropdownlist
|
||||
class="form-control form-control-sm input-sm"
|
||||
style="width: 100%"
|
||||
id="ddlAllowanceType"
|
||||
[data]="_allowanceTpe"
|
||||
[defaultItem]="{
|
||||
name: 'Select Allowance Type',
|
||||
value: null
|
||||
}"
|
||||
[textField]="'name'"
|
||||
[valueField]="'value'"
|
||||
[valuePrimitive]="true"
|
||||
formControlName="allowancetype"
|
||||
[(ngModel)]="_selectedAllowanceType"
|
||||
(selectionChange)="changeallowancetype($event)"
|
||||
>
|
||||
</kendo-dropdownlist>
|
||||
</div>
|
||||
</div>
|
||||
<div class="checkBoxGrid adp-checks">
|
||||
<label class="k-form-field right adp-check">
|
||||
<input
|
||||
|
|
@ -132,7 +110,7 @@
|
|||
kendoCheckBox/>
|
||||
<label class="k-checkbox-label" for="enabletaxableCheck">Taxable</label>
|
||||
</label>
|
||||
<label class="k-form-field right adp-check">
|
||||
<label class="k-form-field right adp-check" [hidden]="!showOnBalancing">
|
||||
<input
|
||||
type="checkbox"
|
||||
formControlName="isOnBalancing"
|
||||
|
|
|
|||
|
|
@ -45,16 +45,8 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
|||
{ name: 'Monthly-Employee-Wise', value: 3 },
|
||||
{ name: 'Once-off', value: 2 },
|
||||
|
||||
];
|
||||
_allowanceTpe = [
|
||||
{ name: 'None', value: 0},
|
||||
{ name: 'HouseRent', value: 1 },
|
||||
{ name: 'Medical', value: 2 },
|
||||
{ name: 'Conveynce', value: 3 },
|
||||
|
||||
];
|
||||
_selectedPeriodicity: number =1;
|
||||
_selectedAllowanceType: number =0;
|
||||
_gender: any = EnumExtension.getNamesAndValues(EnumGender);
|
||||
_selectedPreiodicity: number;
|
||||
_individualAmount: number=0;
|
||||
|
|
@ -125,7 +117,6 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
|||
},
|
||||
() => {
|
||||
this.AllowDeductselectionChange(this._allowDeducts.find(x => x.id == this._adPram.allowDeductID));
|
||||
this._selectedAllowanceType = this._adPram.allowanceType ?? EnumAllowanceType.None;
|
||||
if (this._adPram.periodicity == EnumPeriodicity.Monthly &&
|
||||
this._adPram.entitleType == EnumEntitleType.Grade) {
|
||||
|
||||
|
|
@ -151,7 +142,6 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
|||
this._fromValidator = new FormBuilder().group({
|
||||
allowOrDeductID: ['', Validators.required],
|
||||
periodicity: ['', Validators.required],
|
||||
allowancetype: ['', Validators.required],
|
||||
isIndividual: '',
|
||||
flatAmount: '',
|
||||
percentOfBasic: '',
|
||||
|
|
@ -168,7 +158,22 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
|||
|
||||
}
|
||||
|
||||
// On Balancing applies only to an Allowance head whose Allowance Type is Utilities & Other.
|
||||
get showOnBalancing(): boolean {
|
||||
const item = this._allowDeducts?.find(x => x.id == this._adPram?.allowDeductID);
|
||||
return this.isOnBalancingApplicable(item);
|
||||
}
|
||||
|
||||
private isOnBalancingApplicable(item: AllowanceDeduction): boolean {
|
||||
return item != null
|
||||
&& item.allowOrDeductType == EnumAllowOrDeduct.Allowance
|
||||
&& item.allowanceType == EnumAllowanceType.Utilities_Other;
|
||||
}
|
||||
|
||||
AllowDeductselectionChange(selectedItem: AllowanceDeduction) {
|
||||
if (!this.isOnBalancingApplicable(selectedItem)) {
|
||||
this._adPram.isOnBalancing = false;
|
||||
}
|
||||
let UsedGrades: ADParameterGrade[];
|
||||
this.adparamService.GetGradesOfAllowDeduct(selectedItem.id).subscribe(
|
||||
(x) => {
|
||||
|
|
@ -214,23 +219,6 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
|||
this.prediocityPopulate(2);
|
||||
}
|
||||
|
||||
}
|
||||
changeallowancetype(item:any) {
|
||||
if (item.value == 0) {
|
||||
this._adPram.allowanceType = EnumAllowanceType.None;
|
||||
}
|
||||
else if (item.value == 1) {
|
||||
this._adPram.allowanceType = EnumAllowanceType.HouseRent;
|
||||
}
|
||||
else if (item.value == 2) {
|
||||
|
||||
this._adPram.allowanceType = EnumAllowanceType.Medical;
|
||||
}
|
||||
else if (item.value == 3) {
|
||||
|
||||
this._adPram.allowanceType = EnumAllowanceType.Conveynce;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
IndividualChecked(e) {
|
||||
|
|
|
|||
|
|
@ -50,6 +50,15 @@
|
|||
</div>
|
||||
}
|
||||
|
||||
@if (hiddenIncludeBonus==true) {
|
||||
<div class="col-4 md:col-2">
|
||||
<label for="includeBonus">Include Bonus</label>
|
||||
</div>
|
||||
<div class="col-8 md:col-4">
|
||||
<input type="checkbox" kendoCheckBox id="includeBonus" [(ngModel)]="includeBonus" />
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (hiddenItemDDL==true) {
|
||||
<div class="col-4 md:col-2">
|
||||
<label>{{itemName}}</label>
|
||||
|
|
|
|||
|
|
@ -152,6 +152,9 @@ export class ReportViewerComponent implements OnInit {
|
|||
hiddenSendMail = false;
|
||||
hiddenSelectReport = false;
|
||||
hiddenAllSearch = false;
|
||||
/** Date Range Wise Salary Sheet (4101) only: shows the "Include Bonus" check box. */
|
||||
hiddenIncludeBonus = false;
|
||||
includeBonus = false;
|
||||
itemName = 'Item';
|
||||
reportDropdownDefaultName = 'Select Item...';
|
||||
public gridView: GridDataResult;
|
||||
|
|
@ -417,6 +420,24 @@ export class ReportViewerComponent implements OnInit {
|
|||
this.topview = "decade";
|
||||
this.hiddenSendMail = true;
|
||||
this.apiService.selectedMenuName = 'Payslip';
|
||||
} else if (this.reportType === '4101') {
|
||||
// Date Range Wise Salary Sheet: a salary-sheet style matrix, one row per employee per salary month
|
||||
// from the From month to the To month (ReportController -> PaySlip.ShowReportDateRange).
|
||||
this.SearchFrom = EnumSearchFrom.Salary;
|
||||
this.IsNegletWithheld = true;
|
||||
this.hiddenFromDate = true;
|
||||
this.hiddenToDate = true;
|
||||
this.fromDate = GlobalfunctionExtension.getFirstDateofMonth(new Date(this.payrolltype.nextPayProcessDate));
|
||||
this.toDate = GlobalfunctionExtension.getLastDateOfMonth(new Date(this.payrolltype.nextPayProcessDate));
|
||||
this.PDFTitle = 'Date Range Wise Salary Sheet';
|
||||
this.fromDateFormat = 'MMM yyyy';
|
||||
this.toDateFormat = 'MMM yyyy';
|
||||
this.bottomView = "year";
|
||||
this.topview = "decade";
|
||||
this.apiService.selectedMenuName = 'Date Range Wise Salary Sheet';
|
||||
this.hiddenExport = true;
|
||||
this.hiddenIncludeBonus = true;
|
||||
this.includeBonus = false;
|
||||
} else if (this.reportType === '263' || this.reportType === '709') {
|
||||
// ;
|
||||
this.SearchFrom = EnumSearchFrom.Salary;
|
||||
|
|
@ -1507,6 +1528,17 @@ export class ReportViewerComponent implements OnInit {
|
|||
}
|
||||
}
|
||||
|
||||
if (this.reportType === '4101') {
|
||||
if (this.fromDate == undefined || this.toDate == undefined) {
|
||||
this.notificationService.showWarning('Select From and To month');
|
||||
return;
|
||||
}
|
||||
if (GlobalfunctionExtension.getFirstDateofMonth(this.fromDate) > GlobalfunctionExtension.getFirstDateofMonth(this.toDate)) {
|
||||
this.notificationService.showWarning('From month can not be greater than To month');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.reportType === '2') {
|
||||
this.employeeService.getEmpBasicInfo(this.empIds).subscribe(
|
||||
(resp) => {
|
||||
|
|
@ -2095,7 +2127,9 @@ export class ReportViewerComponent implements OnInit {
|
|||
reportType: reportType,
|
||||
fromDate: this.fromDate != undefined ? this.fromDate.toDateString() : undefined,
|
||||
toDate: this.toDate != undefined ? this.toDate.toDateString() : undefined,
|
||||
locationIds: locationIds
|
||||
locationIds: locationIds,
|
||||
// Date Range Wise Salary Sheet only (ReportController reads it for that report alone)
|
||||
...(this.hiddenIncludeBonus ? { includeBonus: this.includeBonus } : {})
|
||||
};
|
||||
|
||||
this.loadingPanel.ShowLoadingPanel = true;
|
||||
|
|
@ -2540,6 +2574,12 @@ export class ReportViewerComponent implements OnInit {
|
|||
this.notificationService.showError(err.error);
|
||||
},
|
||||
() => {
|
||||
if (this.reportType === '4101' && this.searchEmployees != undefined) {
|
||||
// Date Range Wise Salary Sheet searches salary over several months, so an employee whose
|
||||
// department/designation changed in the range comes back more than once.
|
||||
this.searchEmployees = this.searchEmployees.filter((emp, index, all) =>
|
||||
all.findIndex(x => x.employeeID === emp.employeeID) === index);
|
||||
}
|
||||
this.loadingPanel.ShowLoadingPanel = false;
|
||||
this.loadData();
|
||||
this.selectAllState = "unchecked";
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ export const routes: Routes = [
|
|||
{ path: 'report-viewer/50', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'report-viewer/39', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'report-viewer/41', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'report-viewer/4101', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'report-viewer/43', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'report-viewer/430', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'report-viewer/48', component: ReportViewerComponent, canActivate: [AuthGuard] },
|
||||
|
|
|
|||
|
|
@ -189,6 +189,7 @@
|
|||
<Menu key="4.8.2.19" name="Item Wise Salary Details" url="report-viewer/510" parentkey="4.8.2" action="add;edit;delete" RoleType="User" isvisible="true" menuIcon="pi pi-fw pi-table"/>
|
||||
<Menu key="4.8.2.20" name="Salary Withheld" url="/payroll/salary-withheld" parentkey="4.8.2" action="add;edit;delete" RoleType="User" isvisible="true" menuIcon="pi pi-fw pi-lock"/>
|
||||
<Menu key="4.8.2.21" name="Withheld Salary Sheet" url="report-viewer/56" parentkey="4.8.2" action="add;edit;delete" RoleType="User" isvisible="true" menuIcon="pi pi-fw pi-table"/>
|
||||
<Menu key="4.8.2.22" name="Date Range Wise Salary Sheet" url="/reports/report-viewer/4101" parentkey="4.8.2" action="add;edit;delete" RoleType="User" isvisible="true" menuIcon="pi pi-fw pi-table"/>
|
||||
<Menu key="4.8.3" name="Interface" url="" parentkey="7" action="add;edit;delete" RoleType="User" isvisible="true" menuIcon="pi pi-fw pi-share-alt"/>
|
||||
<Menu key="4.8.3.1" name="Upload Salary Item" url="/common-interface/data-upload/22" parentkey="4.8.3" action="add;edit;delete" RoleType="Admin" menuIcon="pi pi-fw pi-upload"/>
|
||||
<Menu key="4.9" name="Final Settlement" url="" parentkey="4" action="add;edit;delete" RoleType="Admin" menuIcon="pi pi-fw pi-sign-out"/>
|
||||
|
|
|
|||
|
|
@ -244,6 +244,10 @@ namespace HRM.UI.Controllers.Report
|
|||
bytes = new PaySlip().ShowReportNew((int)currentUser.PayrollTypeID, fromDate, sEmpIDs, isForESS);
|
||||
}
|
||||
break;
|
||||
case EnumReportType.DateRangeWiseSalarySheet:
|
||||
bool includeBonus = items["includeBonus"] != null && (bool)items["includeBonus"].ToObject<bool>();
|
||||
bytes = new PaySlip().ShowReportDateRange((int)currentUser.PayrollTypeID, fromDate, toDate, sEmpIDs, reportType, includeBonus);
|
||||
break;
|
||||
case EnumReportType.Envelop:
|
||||
break;
|
||||
case EnumReportType.SalaryReconcil:
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
//"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDB;User Id=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
||||
//"SqlCommandConnection": "Data Source=103.197.204.164,1718;Initial Catalog=autocrop;Persist Security Info=True; User ID=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;", // Development
|
||||
|
||||
"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDBBRAC;User Id= DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
||||
"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDBUATBRAC;User Id= DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
||||
"SqlCommandConnection": "Data Source=103.197.204.164,1718;Initial Catalog=MasterProjectDBBRAC;Persist Security Info=True; User ID=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;" // Development
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user