Projekt

Allgemein

Profil

GX-Bug #52240 » MoveOnlyIfNoGuest1.patch

Till Tepelmann, 23.06.2017 12:28

Unterschiede anzeigen:

src/lang/german/original_sections/admin/configuration.lang.inc.php (revision )
701 701
	'USE_WYSIWYG_TITLE' => 'WYSIWYG-Editor aktivieren',
702 702
	'EMAIL_MAX_LIMIT_TITLE' => 'Maximale Anzahl E-Mails pro Versand',
703 703
	'UPDATE_ORDER_EMAIL_SUBJECT_TEXT' => 'Ihre Bestellung',
704
	'MOVE_ONLY_IF_NO_GUEST_TITLE' => 'Gäste verschieben wenn "Kundengruppe nach USt-IdNr. Überprüfung anpassen" aktiv ist',
704 705
);
src/lang/english/original_sections/admin/configuration.lang.inc.php (revision )
703 703
	'USE_WYSIWYG_TITLE' => 'Activate WYSIWYG Editor',
704 704
	'EMAIL_MAX_LIMIT_TITLE' => 'Max Newsletter-Mails per Script',
705 705
	'UPDATE_ORDER_EMAIL_SUBJECT_TEXT' => 'Your order',
706
	'MOVE_ONLY_IF_NO_GUEST_TITLE' => 'Move guest account if automatic pruning is active',
706 707
);
src/GXMainComponents/Services/Core/Customer/CustomerWriteService.inc.php (revision )
187 187
		$customer->setVatNumber($vatNumber);
188 188
		$customer->setVatNumberStatus($vatNumberStatus);
189 189

  
190
		if(MOVE_ONLY_IF_NO_GUEST)
191
		{
190
		$vatCustomerStatus = $this->vatNumberValidator->getCustomerStatusId($vatNumber,
192
			$vatCustomerStatus = $this->vatNumberValidator->getCustomerStatusId($vatNumber,
191
		                                                                    $addressBlock->getCountry()->getId(), true);
193
			                                                                    $addressBlock->getCountry()->getId(),
194
			                                                                    true);
192
		$customer->setStatusId($vatCustomerStatus);
195
			$customer->setStatusId($vatCustomerStatus);
193
		
196
		}
194 197
		$customer->addAddonValues($addonValues);
195 198

  
196 199
		$this->customerRepository->store($customer);
    (1-1/1)