payroll-rules-india 1.0.4 → 1.0.5

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,4 +1,5 @@
1
1
  import { Rule } from "../../utils/types";
2
- export declare const washingAllowanceHSWRule: Rule;
3
- export declare const washingAllowanceSWRule: Rule;
4
- export declare const washingAllowanceSSWRule: Rule;
2
+ export declare const washingAllowanceTierA: Rule;
3
+ export declare const washingAllowanceTierB: Rule;
4
+ export declare const washingAllowanceTierC: Rule;
5
+ export declare const washingAllowanceTierCRevised: Rule;
@@ -1,36 +1,44 @@
1
- // Washing Allowance - HSW: Rs. 16.02/- * payable days
2
- export const washingAllowanceHSWRule = {
3
- ruleCode: "WASHING_ALLOWANCE_HSW",
4
- name: "Washing Allowance - HSW",
1
+ export const washingAllowanceTierA = {
2
+ ruleCode: "WASHING_ALLOWANCE_TIER_A",
3
+ name: "Washing Allowance – Tier A",
5
4
  category: "Earning",
6
5
  type: "Custom",
7
6
  version: "FY2024-2025",
8
- description: "Washing Allowance (HSW) = Rs. 16.02/- * payable days (worked days)",
9
- condition: "payableDays > 0 && employeeCategory === 'HSW'",
7
+ description: "Washing Allowance = Rs. 16.02 * payable days",
8
+ condition: "payableDays > 0",
10
9
  monthlyFormula: "round(16.02 * payableDays, 2)",
11
10
  annualFormula: "round(16.02 * payableDays * 12, 2)",
12
11
  };
13
- // Washing Allowance - SW: Rs. 12.58/- * payable days
14
- export const washingAllowanceSWRule = {
15
- ruleCode: "WASHING_ALLOWANCE_SW",
16
- name: "Washing Allowance - SW",
12
+ export const washingAllowanceTierB = {
13
+ ruleCode: "WASHING_ALLOWANCE_TIER_B",
14
+ name: "Washing Allowance – Tier B",
17
15
  category: "Earning",
18
16
  type: "Custom",
19
17
  version: "FY2024-2025",
20
- description: "Washing Allowance (SW) = Rs. 12.58/- * payable days (worked days)",
21
- condition: "payableDays > 0 && employeeCategory === 'SW'",
18
+ description: "Washing Allowance = Rs. 12.58 * payable days",
19
+ condition: "payableDays > 0",
22
20
  monthlyFormula: "round(12.58 * payableDays, 2)",
23
21
  annualFormula: "round(12.58 * payableDays * 12, 2)",
24
22
  };
25
- // Washing Allowance - SSW: Rs. 10.30/- * payable days
26
- export const washingAllowanceSSWRule = {
27
- ruleCode: "WASHING_ALLOWANCE_SSW",
28
- name: "Washing Allowance - SSW",
23
+ export const washingAllowanceTierC = {
24
+ ruleCode: "WASHING_ALLOWANCE_TIER_C",
25
+ name: "Washing Allowance – Tier C",
29
26
  category: "Earning",
30
27
  type: "Custom",
31
28
  version: "FY2024-2025",
32
- description: "Washing Allowance (SSW) = Rs. 10.30/- * payable days (worked days)",
33
- condition: "payableDays > 0 && employeeCategory === 'SSW'",
29
+ description: "Washing Allowance = Rs. 10.30 * payable days",
30
+ condition: "payableDays > 0",
34
31
  monthlyFormula: "round(10.30 * payableDays, 2)",
35
32
  annualFormula: "round(10.30 * payableDays * 12, 2)",
36
33
  };
34
+ export const washingAllowanceTierCRevised = {
35
+ ruleCode: "WASHING_ALLOWANCE_TIER_C_REVISED",
36
+ name: "Washing Allowance – Tier C (Revised Rate)",
37
+ category: "Earning",
38
+ type: "Custom",
39
+ version: "FY2024-2025",
40
+ description: "Washing Allowance = Rs. 11.50 * payable days",
41
+ condition: "payableDays > 0",
42
+ monthlyFormula: "round(11.50 * payableDays, 2)",
43
+ annualFormula: "round(11.50 * payableDays * 12, 2)",
44
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payroll-rules-india",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Custom and statutory payroll rules engine for India salary calculations.",
5
5
  "author": "Yogesh c",
6
6
  "license": "MIT",