• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/orderprops.php
  • Класс: BitrixSaleInternalsOrderPropsTable
  • Вызов: OrderPropsTable::modifyRequiredForSave
static function modifyRequiredForSave ($value, array $property)
{
	$isProfileName = isset($property['IS_PROFILE_NAME']) && $property['IS_PROFILE_NAME'] === 'Y';
	$isLocation = isset($property['IS_LOCATION']) && $property['IS_LOCATION'] === 'Y';
	$isLocation4Tax = isset($property['IS_LOCATION4TAX']) && $property['IS_LOCATION4TAX'] === 'Y';
	$isPayer = isset($property['IS_PAYER']) && $property['IS_PAYER'] === 'Y';
	$isZip = isset($property['IS_ZIP']) && $property['IS_ZIP'] === 'Y';

	if ($value == 'Y' || $isProfileName || $isLocation || $isLocation4Tax || $isPayer || $isZip)
	{
		return 'Y';
	}

	return 'N';
}