payroll-rules-india 1.2.0 → 1.4.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.
@@ -0,0 +1,2 @@
1
+ import { Rule } from "../../utils/types";
2
+ export declare const acChargesRule: Rule;
@@ -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,2 @@
1
+ import { Rule } from "../../utils/types";
2
+ export declare const geyserChargeRuleTierA: Rule;
@@ -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
+ };
@@ -28,3 +28,7 @@ export * from "./washingAllowanceRules";
28
28
  export * from "./uniformAllowanceRules";
29
29
  export * from "./safetyAllowanceRules";
30
30
  export * from "./emergencyAllowance";
31
+ export * from "./emergencyAllowance";
32
+ export * from "./acChargesRule";
33
+ export * from "./geyserAllowance";
34
+ export * from "./quarterRentRules";
@@ -28,3 +28,7 @@ export * from "./washingAllowanceRules";
28
28
  export * from "./uniformAllowanceRules";
29
29
  export * from "./safetyAllowanceRules";
30
30
  export * from "./emergencyAllowance";
31
+ export * from "./emergencyAllowance";
32
+ export * from "./acChargesRule";
33
+ export * from "./geyserAllowance";
34
+ export * from "./quarterRentRules";
@@ -0,0 +1,2 @@
1
+ import { Rule } from "../../utils/types";
2
+ export declare const quarterRentHSWRuleTierA: Rule;
@@ -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,3 +1,4 @@
1
1
  import { Rule } from "../../utils/types";
2
2
  export declare const shiftAllowanceRule: Rule;
3
3
  export declare const shiftAllowanceRuleNew: Rule;
4
+ export declare const shiftAllowanceRuleTierA: Rule;
@@ -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,4 @@ 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;
@@ -42,3 +42,13 @@ 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
+ };
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payroll-rules-india",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Custom and statutory payroll rules engine for India salary calculations.",
5
5
  "author": "Yogesh c",
6
6
  "license": "MIT",