Compare commits

...

3 Commits

Author SHA1 Message Date
Lorenz Hilpert
9668aa8829 Format 2022-10-12 18:34:48 +02:00
Lorenz Hilpert
c49c428688 Newsletter text entfernt 2022-10-12 18:34:00 +02:00
Lorenz Hilpert
46b963c2d1 Ausblenden des Newsletter-Textes bei Gastkunden 2022-10-12 18:31:11 +02:00
3 changed files with 6 additions and 29 deletions

View File

@@ -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"

View File

@@ -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 };
}
}

View File

@@ -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;