mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Compare commits
3 Commits
fix/4715-B
...
fix/hide-n
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9668aa8829 | ||
|
|
c49c428688 | ||
|
|
46b963c2d1 |
@@ -25,12 +25,6 @@
|
||||
>
|
||||
</app-name-form-block>
|
||||
|
||||
<p class="info">
|
||||
Wir werden Ihnen Werbung zu ähnlichen Produkten oder Dienstleistungen aus unserem Sortiment per E-Mail zusenden. Sie können der
|
||||
Verwendung Ihrer Daten jederzeit z.B. mittels der in den E-Mails enthaltenen Abmeldelinks widersprechen, ohne dass hierfür andere als
|
||||
die Übermittlungskosten nach den Basistarifen entstehen.
|
||||
</p>
|
||||
|
||||
<app-email-form-block
|
||||
#email
|
||||
[tabIndexStart]="name.tabIndexEnd + 1"
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { ApplicationService } from '@core/application';
|
||||
import { CustomerDTO } from '@swagger/crm';
|
||||
import { UiModalRef } from '@ui/modal';
|
||||
import { encodeFormData, mapCustomerDtoToCustomerCreateFormData } from '../../create-customer';
|
||||
|
||||
@Component({
|
||||
selector: 'page-cant-select-guest-modal',
|
||||
@@ -13,26 +14,8 @@ export class CantSelectGuestModalComponent {
|
||||
constructor(public ref: UiModalRef<any, CustomerDTO>, public readonly applicationService: ApplicationService) {}
|
||||
|
||||
createCustomerDataQuery(customer: CustomerDTO): { [key: string]: string } {
|
||||
const query: { [key: string]: string } = {
|
||||
gender: String(customer.gender),
|
||||
title: customer?.title,
|
||||
firstName: customer?.firstName,
|
||||
lastName: customer?.lastName,
|
||||
email: customer?.communicationDetails?.email,
|
||||
phone: customer?.communicationDetails?.phone,
|
||||
mobile: customer?.communicationDetails?.mobile,
|
||||
street: customer?.address?.street,
|
||||
streetNumber: customer?.address?.streetNumber,
|
||||
zipCode: customer?.address?.zipCode,
|
||||
city: customer?.address?.city,
|
||||
country: customer?.address?.country,
|
||||
info: customer?.address?.info,
|
||||
name: customer?.organisation?.name,
|
||||
department: customer?.organisation?.department,
|
||||
vatId: customer?.organisation?.vatId,
|
||||
dateOfBirth: customer?.dateOfBirth,
|
||||
};
|
||||
const formData = encodeFormData(mapCustomerDtoToCustomerCreateFormData(customer));
|
||||
|
||||
return query;
|
||||
return { formData };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,9 +117,9 @@ export class CustomerTypeSelectorComponent extends ComponentStore<CustomerTypeSe
|
||||
});
|
||||
}
|
||||
|
||||
if (!result.some((o) => o.value === customerType)) {
|
||||
this.customerType = first(result)?.value;
|
||||
}
|
||||
// if (!result.some((o) => o.value === customerType)) {
|
||||
// this.customerType = first(result)?.value;
|
||||
// }
|
||||
|
||||
if (customerType === 'b2b' && this.p4mUser) {
|
||||
this.p4mUser = false;
|
||||
|
||||
Reference in New Issue
Block a user