nazar-salary 3.4.8 → 3.4.9
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.
- package/index.d.ts +14 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -461,6 +461,10 @@ declare module 'nazar-salary' {
|
|
|
461
461
|
active_students: number;
|
|
462
462
|
/** Distinct students whose courses on this tariff are all closed */
|
|
463
463
|
inactive_students: number;
|
|
464
|
+
/** Team salary per month per student on this tariff; null if not configured */
|
|
465
|
+
monthly_team_price: number | null;
|
|
466
|
+
/** Sum of monthly_team_price * enrollment_months over active courses (same as /admin/team_salary/total gross, per tariff); null if not configured */
|
|
467
|
+
team_salary_total: number | null;
|
|
464
468
|
}
|
|
465
469
|
|
|
466
470
|
export interface PricesListResponse {
|
|
@@ -483,6 +487,8 @@ declare module 'nazar-salary' {
|
|
|
483
487
|
rate_per_lesson: number;
|
|
484
488
|
/** Gross payments attributed to this student on this tariff */
|
|
485
489
|
purchase_amount: number;
|
|
490
|
+
/** enrollment_months * monthly_team_price; null if no team_salary config for this price */
|
|
491
|
+
team_salary_amount: number | null;
|
|
486
492
|
teacher_id: number | null;
|
|
487
493
|
teacher_name: string | null;
|
|
488
494
|
/** Owner of the student (student_history.owned_by) */
|
|
@@ -511,6 +517,8 @@ declare module 'nazar-salary' {
|
|
|
511
517
|
lessons_per_month: number;
|
|
512
518
|
duration_minutes: number;
|
|
513
519
|
rate_per_lesson: number;
|
|
520
|
+
/** null if team salary is not configured for this tariff */
|
|
521
|
+
monthly_team_price: number | null;
|
|
514
522
|
};
|
|
515
523
|
pagination: {
|
|
516
524
|
page: number;
|
|
@@ -911,6 +919,12 @@ declare module 'nazar-salary' {
|
|
|
911
919
|
future_teacher_payment: number;
|
|
912
920
|
/** Future teacher payments owed for students whose payments fall in the selected month (verified or not). Group courses counted once per group. */
|
|
913
921
|
future_teacher_payment_from_month: number;
|
|
922
|
+
/** Team salary for sales of the selected month: months sold (new sales, extensions, resales) × tariff monthly_team_price */
|
|
923
|
+
team_salary_gross: number;
|
|
924
|
+
/** Team salary deductions with deduction_date in the selected month */
|
|
925
|
+
team_salary_deductions: number;
|
|
926
|
+
/** team_salary_gross − team_salary_deductions */
|
|
927
|
+
team_salary_net: number;
|
|
914
928
|
};
|
|
915
929
|
}
|
|
916
930
|
|