payroll-rules-india 1.4.0 → 1.7.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.
@@ -1,3 +1,4 @@
1
1
  import { Rule } from "../../utils/types";
2
2
  export declare const esiRule: Rule;
3
3
  export declare const ESI_Employee_On_Basic: Rule;
4
+ export declare const ESIRuleOnBasic: Rule;
@@ -20,3 +20,13 @@ export const ESI_Employee_On_Basic = {
20
20
  monthlyFormula: "round(basic * 0.0075, 2)",
21
21
  annualFormula: "round(basic * 0.0075 * 12, 2)",
22
22
  };
23
+ export const ESIRuleOnBasic = {
24
+ ruleCode: "ESI_RULE_ON_BASIC_WAGE",
25
+ name: "Employee ESIC Contribution",
26
+ category: "Deduction",
27
+ type: "Custom",
28
+ version: "FY2024-2025",
29
+ description: "Employee ESIC contribution calculated at 0.75% of basic wages, applicable only when basic is up to Rs.21,000.",
30
+ condition: "basic <= 21000",
31
+ monthlyFormula: "ceil(basic * 0.0075)",
32
+ };
@@ -1,7 +1,7 @@
1
1
  // Allowance: Basic * 13%
2
2
  export const generalAllowanceRule = {
3
3
  ruleCode: "GENERAL_ALLOWANCE",
4
- name: "Allowance",
4
+ name: "General_Allowancee",
5
5
  category: "Earning",
6
6
  type: "Custom",
7
7
  version: "FY2024-2025",
@@ -4,7 +4,6 @@ export * from "./esiRules";
4
4
  export * from "./pfRules";
5
5
  export * from "./profTaxRules";
6
6
  export * from "./incomeTaxRules";
7
- export * from "./gratuityRules";
8
7
  export * from "./rfbRule";
9
8
  export * from "./specialAllowanceRules";
10
9
  export * from "./conveyanceAllowanceRules";
@@ -4,7 +4,6 @@ export * from "./esiRules";
4
4
  export * from "./pfRules";
5
5
  export * from "./profTaxRules";
6
6
  export * from "./incomeTaxRules";
7
- export * from "./gratuityRules";
8
7
  export * from "./rfbRule";
9
8
  export * from "./specialAllowanceRules";
10
9
  export * from "./conveyanceAllowanceRules";
@@ -1,2 +1,3 @@
1
1
  import { Rule } from "../../utils/types";
2
2
  export declare const safetyEarningsRule: Rule;
3
+ export declare const safetyEarningsRuleTwoPercent: Rule;
@@ -1,6 +1,6 @@
1
1
  export const safetyEarningsRule = {
2
- ruleCode: "SAFETY_EARNINGS_tier_one",
3
- name: "Safety Earnings-tier-one",
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
+ };
@@ -4,3 +4,4 @@ export declare const washingAllowanceTierB: Rule;
4
4
  export declare const washingAllowanceTierC: Rule;
5
5
  export declare const washingAllowanceTierCRevised: Rule;
6
6
  export declare const washingAllowanceUSWRuleTierD: Rule;
7
+ export declare const washingAllowanceUSWRuleTierE: Rule;
@@ -52,3 +52,13 @@ export const washingAllowanceUSWRuleTierD = {
52
52
  condition: "payableDays > 0",
53
53
  monthlyFormula: "round(payableDays * 25, 2)",
54
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payroll-rules-india",
3
- "version": "1.4.0",
3
+ "version": "1.7.0",
4
4
  "description": "Custom and statutory payroll rules engine for India salary calculations.",
5
5
  "author": "Yogesh c",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- import { Rule } from "../../utils/types";
2
- export declare const gratuityRule: Rule;
@@ -1,10 +0,0 @@
1
- export const gratuityRule = {
2
- ruleCode: "GRATUITY",
3
- name: "Gratuity",
4
- category: "Earning",
5
- version: "FY2024-2025",
6
- description: "4.81% of Basic (15/26 rule)",
7
- condition: "basic > 0",
8
- monthlyFormula: "round(basic * 0.0481, 2)",
9
- annualFormula: "round(basic * 0.0481 * 12, 2)",
10
- };