mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 468: #1396 Fix für nicht selektierte Lieferadresse
#1396 Fix für nicht selektierte Lieferadresse
This commit is contained in:
@@ -50,8 +50,8 @@ export class PayerEditB2CComponent extends PayerEditComponent implements OnDestr
|
||||
|
||||
this.formsSubscription = this.organisationGroup?.get('name').valueChanges.subscribe((value: string) => {
|
||||
if (!value) {
|
||||
this.organisationGroup.get('department').reset();
|
||||
this.organisationGroup.get('vatId').reset();
|
||||
this.organisationGroup.get('department').reset('', { onlySelf: true });
|
||||
this.organisationGroup.get('vatId').reset('', { onlySelf: true });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -73,7 +73,10 @@ export class CustomerDetailsComponent implements OnInit {
|
||||
this.selectedPayer = defaultPayer?.payer?.id;
|
||||
this.selectedAddress = defaultShippingAddress?.id;
|
||||
|
||||
if (!AddressHelper.hasRequiredProperties(customer?.address)) {
|
||||
if (
|
||||
!AddressHelper.hasRequiredProperties(customer?.address) ||
|
||||
customer.features?.some((f) => f.key === 'webshop' || f.key === 'guest')
|
||||
) {
|
||||
if (!this.selectedPayer && customer.payers.length > 0) {
|
||||
this.selectedPayer = customer.payers[0].payer?.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user