hvp-shared 6.59.0 → 6.60.1
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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HRIS (Human Resources Information System) constants.
|
|
3
|
+
*
|
|
4
|
+
* These are currently hardcoded values. Some should eventually become
|
|
5
|
+
* configurable via CompanySettings (see GH issue for reorganization).
|
|
6
|
+
*
|
|
7
|
+
* Categories:
|
|
8
|
+
* - Mexican labor law (not configurable)
|
|
9
|
+
* - Company policy (should become configurable)
|
|
10
|
+
* - Derived/calculated (computed from other constants)
|
|
11
|
+
*/
|
|
12
|
+
/** Prima vacacional: 25% of vacation days' salary (Art. 80 LFT) */
|
|
13
|
+
export declare const VACATION_BONUS_PERCENTAGE = 0.25;
|
|
14
|
+
/** Sunday premium: 25% extra for working Sundays (Art. 71 LFT) */
|
|
15
|
+
export declare const SUNDAY_BONUS_PERCENTAGE = 0.25;
|
|
16
|
+
/** Holiday or rest day extra pay: 200% (double pay) (Art. 75 LFT) */
|
|
17
|
+
export declare const HOLIDAY_OR_REST_EXTRA_PAY_PERCENTAGE = 2;
|
|
18
|
+
/** Maximum legal work week in hours (Art. 61 LFT: 48 for daytime) */
|
|
19
|
+
export declare const MAX_WORK_WEEK_LIMIT = 48;
|
|
20
|
+
/** Maximum overtime threshold for double pay (48 + 9 = 57 hrs) */
|
|
21
|
+
export declare const MAX_DOUBLE_PLAY_WORK_WEEK_LIMIT = 57;
|
|
22
|
+
/** Working days per week (company policy: 6 days) */
|
|
23
|
+
export declare const WORKING_DAYS_IN_A_WEEK = 6;
|
|
24
|
+
/** Annual salary raise percentage per year of seniority */
|
|
25
|
+
export declare const ANNUAL_RAISE_PERCENT = 0.02;
|
|
26
|
+
/** Year-end bonus (aguinaldo) days (legal minimum: 15, Art. 87 LFT) */
|
|
27
|
+
export declare const YEAR_END_BONUS_DAYS = 15;
|
|
28
|
+
/** Percentage of commissions considered for year-end bonus calculation */
|
|
29
|
+
export declare const COMMISSION_PERCENTAGE_FOR_YEAR_END_BONUS = 0.5;
|
|
30
|
+
/** Commission seniority bonus: 5% increase per semester */
|
|
31
|
+
export declare const COMMISSION_SENIORITY_BONUS_PER_SEMESTER = 0.05;
|
|
32
|
+
export declare const CLOSING_LARGE_THRESHOLD = 10000;
|
|
33
|
+
export declare const BONUS_LARGE_CLOSING = 100;
|
|
34
|
+
export declare const BONUS_SMALL_CLOSING = 50;
|
|
35
|
+
export declare const BONUS_PER_CLOSING = 60;
|
|
36
|
+
export declare const DEDUCTION_INVALID_CLOSING = 40;
|
|
37
|
+
export declare const DEDUCTION_INVALID_WITHDRAWAL = 20;
|
|
38
|
+
export declare const EXCELLENCE_BONUS_MIN_CLOSINGS = 3;
|
|
39
|
+
export declare const EXCELLENCE_BONUS_RATE = 0.25;
|
|
40
|
+
/** Average working days per month (365/12/7 × 6) */
|
|
41
|
+
export declare const AVERAGE_WORK_DAYS_PER_MONTH: number;
|
|
42
|
+
/** Weeks in a month (365/12/7) */
|
|
43
|
+
export declare const WEEKS_IN_MONTH = 4.34524;
|
|
44
|
+
/** Calendar days in a month (used for nominal daily calculations) */
|
|
45
|
+
export declare const MONTH_DAYS = 30;
|
|
46
|
+
/** Working days in a month (6 × weeks) */
|
|
47
|
+
export declare const MONTH_WORK_DAYS: number;
|
|
48
|
+
/** Standard daily working hours (48/6) */
|
|
49
|
+
export declare const DAILY_WORK_HOURS = 8;
|
|
50
|
+
/** Working days in a week (alias for clarity) */
|
|
51
|
+
export declare const WEEK_WORK_DAYS = 6;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* HRIS (Human Resources Information System) constants.
|
|
4
|
+
*
|
|
5
|
+
* These are currently hardcoded values. Some should eventually become
|
|
6
|
+
* configurable via CompanySettings (see GH issue for reorganization).
|
|
7
|
+
*
|
|
8
|
+
* Categories:
|
|
9
|
+
* - Mexican labor law (not configurable)
|
|
10
|
+
* - Company policy (should become configurable)
|
|
11
|
+
* - Derived/calculated (computed from other constants)
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.WEEK_WORK_DAYS = exports.DAILY_WORK_HOURS = exports.MONTH_WORK_DAYS = exports.MONTH_DAYS = exports.WEEKS_IN_MONTH = exports.AVERAGE_WORK_DAYS_PER_MONTH = exports.EXCELLENCE_BONUS_RATE = exports.EXCELLENCE_BONUS_MIN_CLOSINGS = exports.DEDUCTION_INVALID_WITHDRAWAL = exports.DEDUCTION_INVALID_CLOSING = exports.BONUS_PER_CLOSING = exports.BONUS_SMALL_CLOSING = exports.BONUS_LARGE_CLOSING = exports.CLOSING_LARGE_THRESHOLD = exports.COMMISSION_SENIORITY_BONUS_PER_SEMESTER = exports.COMMISSION_PERCENTAGE_FOR_YEAR_END_BONUS = exports.YEAR_END_BONUS_DAYS = exports.ANNUAL_RAISE_PERCENT = exports.WORKING_DAYS_IN_A_WEEK = exports.MAX_DOUBLE_PLAY_WORK_WEEK_LIMIT = exports.MAX_WORK_WEEK_LIMIT = exports.HOLIDAY_OR_REST_EXTRA_PAY_PERCENTAGE = exports.SUNDAY_BONUS_PERCENTAGE = exports.VACATION_BONUS_PERCENTAGE = void 0;
|
|
15
|
+
// ── Mexican Labor Law (not configurable) ──
|
|
16
|
+
/** Prima vacacional: 25% of vacation days' salary (Art. 80 LFT) */
|
|
17
|
+
exports.VACATION_BONUS_PERCENTAGE = 0.25;
|
|
18
|
+
/** Sunday premium: 25% extra for working Sundays (Art. 71 LFT) */
|
|
19
|
+
exports.SUNDAY_BONUS_PERCENTAGE = 0.25;
|
|
20
|
+
/** Holiday or rest day extra pay: 200% (double pay) (Art. 75 LFT) */
|
|
21
|
+
exports.HOLIDAY_OR_REST_EXTRA_PAY_PERCENTAGE = 2;
|
|
22
|
+
// LEGAL_VACATIONS is in time-off.constants.ts (already in shared)
|
|
23
|
+
// ── Company Policy (TODO: move to CompanySettings — see GH#XX) ──
|
|
24
|
+
/** Maximum legal work week in hours (Art. 61 LFT: 48 for daytime) */
|
|
25
|
+
exports.MAX_WORK_WEEK_LIMIT = 48;
|
|
26
|
+
/** Maximum overtime threshold for double pay (48 + 9 = 57 hrs) */
|
|
27
|
+
exports.MAX_DOUBLE_PLAY_WORK_WEEK_LIMIT = 57;
|
|
28
|
+
/** Working days per week (company policy: 6 days) */
|
|
29
|
+
exports.WORKING_DAYS_IN_A_WEEK = 6;
|
|
30
|
+
/** Annual salary raise percentage per year of seniority */
|
|
31
|
+
exports.ANNUAL_RAISE_PERCENT = 0.02;
|
|
32
|
+
/** Year-end bonus (aguinaldo) days (legal minimum: 15, Art. 87 LFT) */
|
|
33
|
+
exports.YEAR_END_BONUS_DAYS = 15;
|
|
34
|
+
/** Percentage of commissions considered for year-end bonus calculation */
|
|
35
|
+
exports.COMMISSION_PERCENTAGE_FOR_YEAR_END_BONUS = 0.5;
|
|
36
|
+
/** Commission seniority bonus: 5% increase per semester */
|
|
37
|
+
exports.COMMISSION_SENIORITY_BONUS_PER_SEMESTER = 0.05;
|
|
38
|
+
// ── Reception Bonus (Bono de recepción) ──
|
|
39
|
+
// Legacy thresholds (kept for historical data)
|
|
40
|
+
exports.CLOSING_LARGE_THRESHOLD = 10000;
|
|
41
|
+
exports.BONUS_LARGE_CLOSING = 100;
|
|
42
|
+
exports.BONUS_SMALL_CLOSING = 50;
|
|
43
|
+
// Current policy
|
|
44
|
+
exports.BONUS_PER_CLOSING = 60;
|
|
45
|
+
exports.DEDUCTION_INVALID_CLOSING = 40;
|
|
46
|
+
exports.DEDUCTION_INVALID_WITHDRAWAL = 20;
|
|
47
|
+
exports.EXCELLENCE_BONUS_MIN_CLOSINGS = 3;
|
|
48
|
+
exports.EXCELLENCE_BONUS_RATE = 0.25;
|
|
49
|
+
// ── Derived / Calculated ──
|
|
50
|
+
/** Average working days per month (365/12/7 × 6) */
|
|
51
|
+
exports.AVERAGE_WORK_DAYS_PER_MONTH = (365 / 12 / 7) * exports.WORKING_DAYS_IN_A_WEEK;
|
|
52
|
+
/** Weeks in a month (365/12/7) */
|
|
53
|
+
exports.WEEKS_IN_MONTH = 4.34524;
|
|
54
|
+
/** Calendar days in a month (used for nominal daily calculations) */
|
|
55
|
+
exports.MONTH_DAYS = 30;
|
|
56
|
+
/** Working days in a month (6 × weeks) */
|
|
57
|
+
exports.MONTH_WORK_DAYS = 6 * exports.WEEKS_IN_MONTH;
|
|
58
|
+
/** Standard daily working hours (48/6) */
|
|
59
|
+
exports.DAILY_WORK_HOURS = 8;
|
|
60
|
+
/** Working days in a week (alias for clarity) */
|
|
61
|
+
exports.WEEK_WORK_DAYS = 6;
|
package/dist/constants/index.js
CHANGED
|
@@ -35,3 +35,4 @@ __exportStar(require("./employment.enums"), exports);
|
|
|
35
35
|
__exportStar(require("./qvet-cash-flow.enums"), exports);
|
|
36
36
|
__exportStar(require("./time-off.enums"), exports);
|
|
37
37
|
__exportStar(require("./time-off.constants"), exports);
|
|
38
|
+
__exportStar(require("./hris.constants"), exports);
|