payroll-rules-india 2.7.0 → 2.10.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.
Files changed (25) hide show
  1. package/dist/rules/fy2024_2025/index.d.ts +7 -7
  2. package/dist/rules/fy2024_2025/index.js +7 -7
  3. package/dist/rules/fy2024_2025/mobileAllowanceRules.d.ts +1 -0
  4. package/dist/rules/fy2024_2025/mobileAllowanceRules.js +11 -0
  5. package/dist/rules/fy2024_2025/professionTaxrules.d.ts +2 -0
  6. package/dist/rules/fy2024_2025/professionTaxrules.js +10 -0
  7. package/dist/rules/fy2024_2025/shiftAllowanceRules.js +2 -2
  8. package/dist/rules/fy2024_2025/teaAllowanceRules.js +3 -3
  9. package/dist/rules/fy2024_2025/washingAllowanceRules.d.ts +1 -0
  10. package/dist/rules/fy2024_2025/washingAllowanceRules.js +10 -0
  11. package/package.json +1 -1
  12. /package/dist/rules/fy2024_2025/{acChargesRule.d.ts → acChargesRules.d.ts} +0 -0
  13. /package/dist/rules/fy2024_2025/{acChargesRule.js → acChargesRules.js} +0 -0
  14. /package/dist/rules/fy2024_2025/{elRules.d.ts → earnedleaveRules.d.ts} +0 -0
  15. /package/dist/rules/fy2024_2025/{elRules.js → earnedleaveRules.js} +0 -0
  16. /package/dist/rules/fy2024_2025/{emergencyAllowance.d.ts → emergencyAllowanceRules.d.ts} +0 -0
  17. /package/dist/rules/fy2024_2025/{emergencyAllowance.js → emergencyAllowanceRules.js} +0 -0
  18. /package/dist/rules/fy2024_2025/{extraBasicRule.d.ts → extraBasicRules.d.ts} +0 -0
  19. /package/dist/rules/fy2024_2025/{extraBasicRule.js → extraBasicRules.js} +0 -0
  20. /package/dist/rules/fy2024_2025/{geyserAllowance.d.ts → geyserAllowanceRules.d.ts} +0 -0
  21. /package/dist/rules/fy2024_2025/{geyserAllowance.js → geyserAllowanceRules.js} +0 -0
  22. /package/dist/rules/fy2024_2025/{overTimesRule.d.ts → overTimesRules.d.ts} +0 -0
  23. /package/dist/rules/fy2024_2025/{overTimesRule.js → overTimesRules.js} +0 -0
  24. /package/dist/rules/fy2024_2025/{rfbRule.d.ts → rfbRules.d.ts} +0 -0
  25. /package/dist/rules/fy2024_2025/{rfbRule.js → rfbRules.js} +0 -0
@@ -4,14 +4,14 @@ export * from "./esiRules";
4
4
  export * from "./pfRules";
5
5
  export * from "./profTaxRules";
6
6
  export * from "./incomeTaxRules";
7
- export * from "./rfbRule";
7
+ export * from "./rfbRules";
8
8
  export * from "./specialAllowanceRules";
9
9
  export * from "./conveyanceAllowanceRules";
10
10
  export * from "./medicalAllowanceRules";
11
11
  export * from "./mobileAllowanceRules";
12
12
  export * from "./nationalHolidayRules";
13
13
  export * from "./optionalHolidayRules";
14
- export * from "./elRules";
14
+ export * from "./earnedleaveRules";
15
15
  export * from "./bonusRules";
16
16
  export * from "./localAllowanceRules";
17
17
  export * from "./leaveAllowanceRules";
@@ -27,11 +27,11 @@ export * from "./shiftAllowanceRules";
27
27
  export * from "./washingAllowanceRules";
28
28
  export * from "./uniformAllowanceRules";
29
29
  export * from "./safetyAllowanceRules";
30
- export * from "./emergencyAllowance";
31
- export * from "./acChargesRule";
32
- export * from "./geyserAllowance";
30
+ export * from "./emergencyAllowanceRules";
31
+ export * from "./acChargesRules";
32
+ export * from "./geyserAllowanceRules";
33
33
  export * from "./quarterRentRules";
34
- export * from "./extraBasicRule";
34
+ export * from "./extraBasicRules";
35
35
  export * from "./dearnessAllowanceRules";
36
36
  export * from "./otherDeductionsRule";
37
- export * from "./overTimesRule";
37
+ export * from "./overTimesRules";
@@ -4,14 +4,14 @@ export * from "./esiRules";
4
4
  export * from "./pfRules";
5
5
  export * from "./profTaxRules";
6
6
  export * from "./incomeTaxRules";
7
- export * from "./rfbRule";
7
+ export * from "./rfbRules";
8
8
  export * from "./specialAllowanceRules";
9
9
  export * from "./conveyanceAllowanceRules";
10
10
  export * from "./medicalAllowanceRules";
11
11
  export * from "./mobileAllowanceRules";
12
12
  export * from "./nationalHolidayRules";
13
13
  export * from "./optionalHolidayRules";
14
- export * from "./elRules";
14
+ export * from "./earnedleaveRules";
15
15
  export * from "./bonusRules";
16
16
  export * from "./localAllowanceRules";
17
17
  export * from "./leaveAllowanceRules";
@@ -27,11 +27,11 @@ export * from "./shiftAllowanceRules";
27
27
  export * from "./washingAllowanceRules";
28
28
  export * from "./uniformAllowanceRules";
29
29
  export * from "./safetyAllowanceRules";
30
- export * from "./emergencyAllowance";
31
- export * from "./acChargesRule";
32
- export * from "./geyserAllowance";
30
+ export * from "./emergencyAllowanceRules";
31
+ export * from "./acChargesRules";
32
+ export * from "./geyserAllowanceRules";
33
33
  export * from "./quarterRentRules";
34
- export * from "./extraBasicRule";
34
+ export * from "./extraBasicRules";
35
35
  export * from "./dearnessAllowanceRules";
36
36
  export * from "./otherDeductionsRule";
37
- export * from "./overTimesRule";
37
+ export * from "./overTimesRules";
@@ -4,3 +4,4 @@ export declare const mobileAllowance500Rule: Rule;
4
4
  export declare const mobileAllowanceRuleTierB: Rule;
5
5
  export declare const mobileAllowanceMonthlyProratedRule: Rule;
6
6
  export declare const mobileAllowaceTierC: Rule;
7
+ export declare const mobileAllowaceTierD: Rule;
@@ -55,3 +55,14 @@ export const mobileAllowaceTierC = {
55
55
  monthlyFormula: "round(8.93 * payableDays, 2)",
56
56
  annualFormula: "round(8.93 * payableDays, 2)",
57
57
  };
58
+ export const mobileAllowaceTierD = {
59
+ ruleCode: "MOBILE_Allowance_TIER_D",
60
+ name: "Mobile Allowance (MB) - ₹56.94 per day",
61
+ category: "Earning",
62
+ type: "Custom",
63
+ version: "FY2024-2025",
64
+ description: "Mobile Allowance = 56.94 * payable days",
65
+ condition: "payableDays > 0",
66
+ monthlyFormula: "round(56.94 * payableDays, 2)",
67
+ annualFormula: "round(56.94 * payableDays, 2)",
68
+ };
@@ -0,0 +1,2 @@
1
+ import { Rule } from "../../utils/types";
2
+ export declare const ProfessionTaxFixed: Rule;
@@ -0,0 +1,10 @@
1
+ export const ProfessionTaxFixed = {
2
+ ruleCode: "PT_FIXED",
3
+ name: "Fixed_PT",
4
+ category: "Deduction",
5
+ version: "FY2024-2025",
6
+ description: "Fixed Profession Tax of 200 ₹",
7
+ condition: "true",
8
+ monthlyFormula: "200",
9
+ annualFormula: `200 * 12`,
10
+ };
@@ -23,7 +23,7 @@ export const shiftAllowanceRuleNew = {
23
23
  annualFormula: "round(payableDays * 11.50 * 12, 2)",
24
24
  };
25
25
  export const shiftAllowanceRuleTierA = {
26
- ruleCode: "SHIFT_ALLOWANCE",
26
+ ruleCode: "SHIFT_ALLOWANCE_TIER_A",
27
27
  name: "Shift Allowance",
28
28
  category: "Earning",
29
29
  type: "Custom",
@@ -33,7 +33,7 @@ export const shiftAllowanceRuleTierA = {
33
33
  monthlyFormula: "round((dailyWages * 0.075) * shiftDays, 0)",
34
34
  };
35
35
  export const nightShiftAllowanceRuleTierB = {
36
- ruleCode: "Night Shift Allowance",
36
+ ruleCode: "NIGHT_SHIFT_ALLOWANCE",
37
37
  name: "Night Shift Allowance",
38
38
  category: "Earning",
39
39
  type: "Custom",
@@ -5,8 +5,8 @@ export const teaAllowanceRule = {
5
5
  category: "Earning",
6
6
  type: "Custom",
7
7
  version: "FY2024-2025",
8
- description: "Tea Allowance = 544 * No of payable days",
8
+ description: "Tea Allowance = 5.44 * No of payable days",
9
9
  condition: "payableDays > 0",
10
- monthlyFormula: "round(544 * payableDays, 2)",
11
- annualFormula: "round(544 * payableDays * 12, 2)",
10
+ monthlyFormula: "round(5.44 * payableDays, 2)",
11
+ annualFormula: "round(5.44 * payableDays * 12, 2)",
12
12
  };
@@ -8,3 +8,4 @@ export declare const washingAllowanceUSWRuleTierE: Rule;
8
8
  export declare const washingAllowanceUSWRuleTierF: Rule;
9
9
  export declare const washingAllowanceUSWRuleTierG: Rule;
10
10
  export declare const washingAllowanceTierH: Rule;
11
+ export declare const washingAllowanceDailyRule: Rule;
@@ -93,3 +93,13 @@ export const washingAllowanceTierH = {
93
93
  monthlyFormula: "round(10 * payableDays, 2)",
94
94
  annualFormula: "round(10 * payableDays * 12, 2)",
95
95
  };
96
+ export const washingAllowanceDailyRule = {
97
+ ruleCode: "WASHING_ALLOWANCE_DAILY",
98
+ name: "Washing Allowance",
99
+ category: "Earning",
100
+ type: "Custom",
101
+ version: "FY2024-2025",
102
+ description: "Washing allowance calculated at Rs.41 per payable day.",
103
+ condition: "payableDays > 0",
104
+ monthlyFormula: "round(payableDays * 41, 0)",
105
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payroll-rules-india",
3
- "version": "2.7.0",
3
+ "version": "2.10.0",
4
4
  "description": "Custom and statutory payroll rules engine for India salary calculations.",
5
5
  "author": "Yogesh c",
6
6
  "license": "MIT",