This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Получить все выборки для удаления аккаунта | |
* @return array | |
*/ | |
public function getDeleteQueries() { | |
//Source Object Attached | |
$q['crm_source_object_attached'] = "DELETE csoa FROM `crm_source_object_attached` csoa JOIN ``"; | |
// Phone Attached | |
$account_type = ObjectType::ACCOUNT; | |
$q['crm_phone_attached'] = "DELETE FROM `crm_phone_attached` WHERE object_id = ?d AND object_type_id = $account_type"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<strong ng-switch="$ctrl.current_client['type']"> | |
<span ng-switch-when="1">{{ $ctrl.current_client['name'] }}</span> | |
<span ng-switch-default>{{ $ctrl.current_client['last_name'] }} {{ $ctrl.current_client['first_name'] }}</span> | |
</strong> |