diff --git a/env.mjs b/env.mjs index 854034bfc..30a136ca9 100644 --- a/env.mjs +++ b/env.mjs @@ -16,6 +16,7 @@ export const env = { MANAGEMENT_FEES_BILLING_ITEM: process.env.MANAGEMENT_FEES_BILLING_ITEM, TRAINER_FEES_BILLING_ITEM: process.env.TRAINER_FEES_BILLING_ITEM, CONSULTING_PROGRAM_IDS: process.env.CONSULTING_PROGRAM_IDS, + BILLING_COMPANI_EMAIL: process.env.BILLING_COMPANI_EMAIL, }; export const parseEnv = environment => Object.keys(environment).reduce((acc, key) => { diff --git a/src/modules/vendor/components/billing/CollectiveCourseBillingItem.vue b/src/modules/vendor/components/billing/CollectiveCourseBillingItem.vue index aaa7a80d0..d4cbde459 100644 --- a/src/modules/vendor/components/billing/CollectiveCourseBillingItem.vue +++ b/src/modules/vendor/components/billing/CollectiveCourseBillingItem.vue @@ -5,11 +5,13 @@ {{ courseName }} -
Honoraires prévus : {{ formatPrice(course.plannedSalary) }}
-
- Montant déjà facturé : {{ formatPrice(course.invoicedAmount) }} -
-
Montant réglé : {{ formatPrice(course.paidAmount) }}
+
{{ TRAINER_COURSE_BILLING_STATUS[course.status] }} le {{ formattedBillingDates }} @@ -17,7 +19,7 @@ {{ TRAINER_COURSE_BILLING_STATUS[course.status] }}
- @@ -62,6 +64,9 @@ export default { const isBilled = computed(() => hasPlannedSalary.value && [INVOICED, PAID].includes(course.value.status)); + // Courses ended before trainer billing was tracked in the app (01/10/2026) are paid without any bill + const isPaidBeforeBillingSystem = computed(() => course.value.status === PAID && !course.value.invoicedAmount); + const goToCourse = computed(() => ({ name: isTrainer.value ? 'trainers courses info' : 'ni management blended courses info', params: { courseId: course.value._id }, @@ -82,6 +87,7 @@ export default { courseName, hasPlannedSalary, isBilled, + isPaidBeforeBillingSystem, goToCourse, formattedBillingDates, // Methods diff --git a/src/modules/vendor/components/billing/CollectiveCoursesBillingCard.vue b/src/modules/vendor/components/billing/CollectiveCoursesBillingCard.vue index a950bbbb6..424b50062 100644 --- a/src/modules/vendor/components/billing/CollectiveCoursesBillingCard.vue +++ b/src/modules/vendor/components/billing/CollectiveCoursesBillingCard.vue @@ -4,7 +4,7 @@