1
0
Fork 0
mirror of synced 2025-04-11 05:00:55 +00:00

Вернул корп клиентов в условие

This commit is contained in:
Viktor 2023-10-25 16:47:34 +03:00 committed by GitHub
parent a834716ea0
commit 9a2bd450f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,9 @@ class LoyaltyAccountService
$file = 'loyaltyStatus';
$privilegeType = 'none';
if (isset($arParams['crmOrder']['privilegeType'])) {
if (!empty($arParams['customerCorporate']['privilegeType'])) {
$privilegeType = $arParams['crmOrder']['privilegeType'];
} else if (isset($arParams['crmOrder']['privilegeType'])) {
return $arParams['crmOrder']['privilegeType'];
} elseif (ConfigProvider::getLoyaltyProgramStatus() === 'Y' && self::getLoyaltyPersonalStatus()) {
$privilegeType = 'loyalty_level';