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; }
Note : {{ customer().note }}
Type de Contact : {{ customer().customerType}}