payroll-rules-india 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/fy2024_2025/acChargesRule.d.ts +2 -0
- package/dist/rules/fy2024_2025/acChargesRule.js +10 -0
- package/dist/rules/fy2024_2025/geyserAllowance.d.ts +2 -0
- package/dist/rules/fy2024_2025/geyserAllowance.js +10 -0
- package/dist/rules/fy2024_2025/index.d.ts +3 -0
- package/dist/rules/fy2024_2025/index.js +3 -0
- package/dist/rules/fy2024_2025/quarterRentRules.d.ts +2 -0
- package/dist/rules/fy2024_2025/quarterRentRules.js +10 -0
- package/dist/rules/fy2024_2025/safetyAllowanceRules.d.ts +1 -0
- package/dist/rules/fy2024_2025/safetyAllowanceRules.js +13 -2
- package/dist/rules/fy2024_2025/shiftAllowanceRules.d.ts +1 -0
- package/dist/rules/fy2024_2025/shiftAllowanceRules.js +10 -0
- package/dist/rules/fy2024_2025/washingAllowanceRules.d.ts +2 -0
- package/dist/rules/fy2024_2025/washingAllowanceRules.js +20 -0
- package/dist/utils/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const acChargesRule = {
|
|
2
|
+
ruleCode: "AC_CHARGES",
|
|
3
|
+
name: "AC Charges",
|
|
4
|
+
category: "Deduction",
|
|
5
|
+
type: "Fixed",
|
|
6
|
+
version: "FY2024-2025",
|
|
7
|
+
description: "Fixed monthly AC charges deduction of Rs.1625.",
|
|
8
|
+
condition: "true",
|
|
9
|
+
monthlyFormula: "1625",
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const geyserChargeRuleTierA = {
|
|
2
|
+
ruleCode: "GEYSER_CHARGE",
|
|
3
|
+
name: "Geyser Charge",
|
|
4
|
+
category: "Deduction",
|
|
5
|
+
type: "Fixed",
|
|
6
|
+
version: "FY2024-2025",
|
|
7
|
+
description: "Fixed monthly geyser charge deduction of Rs.91.",
|
|
8
|
+
condition: "true",
|
|
9
|
+
monthlyFormula: "91",
|
|
10
|
+
};
|
|
@@ -29,3 +29,6 @@ export * from "./uniformAllowanceRules";
|
|
|
29
29
|
export * from "./safetyAllowanceRules";
|
|
30
30
|
export * from "./emergencyAllowance";
|
|
31
31
|
export * from "./emergencyAllowance";
|
|
32
|
+
export * from "./acChargesRule";
|
|
33
|
+
export * from "./geyserAllowance";
|
|
34
|
+
export * from "./quarterRentRules";
|
|
@@ -29,3 +29,6 @@ export * from "./uniformAllowanceRules";
|
|
|
29
29
|
export * from "./safetyAllowanceRules";
|
|
30
30
|
export * from "./emergencyAllowance";
|
|
31
31
|
export * from "./emergencyAllowance";
|
|
32
|
+
export * from "./acChargesRule";
|
|
33
|
+
export * from "./geyserAllowance";
|
|
34
|
+
export * from "./quarterRentRules";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const quarterRentHSWRuleTierA = {
|
|
2
|
+
ruleCode: "QUARTER_RENT_HSW",
|
|
3
|
+
name: "Quarter Rent (HSW)",
|
|
4
|
+
category: "Deduction",
|
|
5
|
+
type: "Fixed",
|
|
6
|
+
version: "FY2024-2025",
|
|
7
|
+
description: "Quarter rent deduction for HSW category at Rs.498.",
|
|
8
|
+
condition: "skillCategory == 'HSW'",
|
|
9
|
+
monthlyFormula: "498",
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const safetyEarningsRule = {
|
|
2
|
-
ruleCode: "
|
|
3
|
-
name: "Safety Earnings-
|
|
2
|
+
ruleCode: "SAFETY_EARNINGS_TIER_ONE",
|
|
3
|
+
name: "Safety Earnings-Tier-One",
|
|
4
4
|
category: "Earning",
|
|
5
5
|
type: "Custom",
|
|
6
6
|
version: "FY2024-2025",
|
|
@@ -9,3 +9,14 @@ export const safetyEarningsRule = {
|
|
|
9
9
|
monthlyFormula: "round((674 * 0.01) * payableDays, 2)",
|
|
10
10
|
annualFormula: "round((674 * 0.01) * payableDays * 12, 2)",
|
|
11
11
|
};
|
|
12
|
+
export const safetyEarningsRuleTwoPercent = {
|
|
13
|
+
ruleCode: "SAFETY_EARNINGS_TIER_TWO",
|
|
14
|
+
name: "Safety Earnings – Tier Two",
|
|
15
|
+
category: "Earning",
|
|
16
|
+
type: "Custom",
|
|
17
|
+
version: "FY2024-2025",
|
|
18
|
+
description: "Safety Earnings calculated at 2% of Basic pay per payable day. Formula: (Basic × 2%) × Payable Days.",
|
|
19
|
+
condition: "payableDays > 0",
|
|
20
|
+
monthlyFormula: "round((basic * 0.02) * payableDays, 2)",
|
|
21
|
+
annualFormula: "round((basic * 0.02) * payableDays * 12, 2)",
|
|
22
|
+
};
|
|
@@ -22,3 +22,13 @@ export const shiftAllowanceRuleNew = {
|
|
|
22
22
|
monthlyFormula: "round(payableDays * 11.50, 2)",
|
|
23
23
|
annualFormula: "round(payableDays * 11.50 * 12, 2)",
|
|
24
24
|
};
|
|
25
|
+
export const shiftAllowanceRuleTierA = {
|
|
26
|
+
ruleCode: "SHIFT_ALLOWANCE",
|
|
27
|
+
name: "Shift Allowance",
|
|
28
|
+
category: "Earning",
|
|
29
|
+
type: "Custom",
|
|
30
|
+
version: "FY2024-2025",
|
|
31
|
+
description: "Shift Allowance calculated as 7.5% of wage rate multiplied by shift days.",
|
|
32
|
+
condition: "shiftDays > 0",
|
|
33
|
+
monthlyFormula: "round((dailyWages * 0.075) * shiftDays, 0)",
|
|
34
|
+
};
|
|
@@ -3,3 +3,5 @@ export declare const washingAllowanceTierA: Rule;
|
|
|
3
3
|
export declare const washingAllowanceTierB: Rule;
|
|
4
4
|
export declare const washingAllowanceTierC: Rule;
|
|
5
5
|
export declare const washingAllowanceTierCRevised: Rule;
|
|
6
|
+
export declare const washingAllowanceUSWRuleTierD: Rule;
|
|
7
|
+
export declare const washingAllowanceUSWRuleTierE: Rule;
|
|
@@ -42,3 +42,23 @@ export const washingAllowanceTierCRevised = {
|
|
|
42
42
|
monthlyFormula: "round(11.50 * payableDays, 2)",
|
|
43
43
|
annualFormula: "round(11.50 * payableDays * 12, 2)",
|
|
44
44
|
};
|
|
45
|
+
export const washingAllowanceUSWRuleTierD = {
|
|
46
|
+
ruleCode: "WASHING_ALLOWANCE_USW",
|
|
47
|
+
name: "Washing Allowance (USW)",
|
|
48
|
+
category: "Earning",
|
|
49
|
+
type: "Custom",
|
|
50
|
+
version: "FY2024-2025",
|
|
51
|
+
description: "Washing allowance for USW category at Rs.25 per present day.",
|
|
52
|
+
condition: "payableDays > 0",
|
|
53
|
+
monthlyFormula: "round(payableDays * 25, 2)",
|
|
54
|
+
};
|
|
55
|
+
export const washingAllowanceUSWRuleTierE = {
|
|
56
|
+
ruleCode: "WASHING_ALLOWANCE_SW",
|
|
57
|
+
name: "Washing Allowance (SW)",
|
|
58
|
+
category: "Earning",
|
|
59
|
+
type: "Custom",
|
|
60
|
+
version: "FY2024-2025",
|
|
61
|
+
description: "Washing allowance for SW category at Rs.35 per present day.",
|
|
62
|
+
condition: "payableDays > 0",
|
|
63
|
+
monthlyFormula: "round(payableDays * 35, 2)",
|
|
64
|
+
};
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type Rule = {
|
|
2
2
|
ruleCode: string;
|
|
3
3
|
name: string;
|
|
4
|
-
category: "Earning" | "Deduction";
|
|
5
|
-
type?: "Statutory" | "Custom";
|
|
4
|
+
category: "Earning" | "Deduction" | "Adjustment";
|
|
5
|
+
type?: "Statutory" | "Custom" | "Fixed";
|
|
6
6
|
description?: string;
|
|
7
7
|
version?: string;
|
|
8
8
|
condition?: string;
|