From a1e73304631612a2e842df7e46687512fe625c5a Mon Sep 17 00:00:00 2001 From: MathieuCarteron Date: Wed, 10 Jun 2026 21:40:37 +0200 Subject: [PATCH] =?UTF-8?q?Type=20de=20customer=20ajout=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customers/customers-card/get-all-customers-card.html | 1 + .../opportunity-add-form/opportunity-add-form.ts | 5 ++++- src/app/services/api/model/get-customer-dto.ts | 1 + src/app/services/api/model/get-staff-dto.ts | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/pages/customers/customers-card/get-all-customers-card.html b/src/app/pages/customers/customers-card/get-all-customers-card.html index 4afd437..83fbd88 100644 --- a/src/app/pages/customers/customers-card/get-all-customers-card.html +++ b/src/app/pages/customers/customers-card/get-all-customers-card.html @@ -2,6 +2,7 @@

Client n°{{ customer().id }}

Note : {{ customer().note }}

+

Type de Contact : {{ customer().customerType}}

diff --git a/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts index 3056b60..d1ec64b 100644 --- a/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts +++ b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts @@ -49,6 +49,9 @@ export class OpportunityAddForm { async submitForm() { if (this.communicationForm.invalid) return; + const raw = this.communicationForm.getRawValue(); + console.log('contactId:', raw.contactId, 'type:', typeof raw.contactId); + console.log(this.communicationForm.getRawValue()) this.communicationPost.set(this.communicationForm.getRawValue()) @@ -63,7 +66,7 @@ export class OpportunityAddForm { calling: calling, email: email, meeting: meeting, - contactId: contactId + contactId: Number(contactId) } try { diff --git a/src/app/services/api/model/get-customer-dto.ts b/src/app/services/api/model/get-customer-dto.ts index ef85c4e..f4c6a47 100644 --- a/src/app/services/api/model/get-customer-dto.ts +++ b/src/app/services/api/model/get-customer-dto.ts @@ -13,5 +13,6 @@ export interface GetCustomerDto { id?: number; note?: string | null; customerTypeId?: number; + customerType?: string | null; } diff --git a/src/app/services/api/model/get-staff-dto.ts b/src/app/services/api/model/get-staff-dto.ts index f9610b6..231c9bc 100644 --- a/src/app/services/api/model/get-staff-dto.ts +++ b/src/app/services/api/model/get-staff-dto.ts @@ -16,6 +16,6 @@ export interface GetStaffDto { profession?: string | null; email?: string | null; f4T2NumberApproval?: string | null; - f4T2ExpirationDate?: string; + f4T2ExpirationDate?: Date | null; }