Deal time in history
This commit is contained in:
parent
d1fafbcdb3
commit
264bacf146
@ -1063,10 +1063,8 @@ ORDER BY date_sort ASC";
|
|||||||
|
|
||||||
|
|
||||||
if ($event['type'] == 'deal') {
|
if ($event['type'] == 'deal') {
|
||||||
$date = date("d.m.Y", strtotime($event['schedule_date']));
|
$date_source = $event['schedule_date'];
|
||||||
list($d, $m, $y) = explode(".", $date);
|
|
||||||
|
|
||||||
// Получаем данные сделки, если есть deal_id
|
|
||||||
$deal_id_for_edit = !empty($event['deal_id']) ? intval($event['deal_id']) : null;
|
$deal_id_for_edit = !empty($event['deal_id']) ? intval($event['deal_id']) : null;
|
||||||
$deal_data = null;
|
$deal_data = null;
|
||||||
if ($deal_id_for_edit) {
|
if ($deal_id_for_edit) {
|
||||||
@ -1074,6 +1072,14 @@ ORDER BY date_sort ASC";
|
|||||||
$rez_deal_data = mysql_query($sql_deal_data);
|
$rez_deal_data = mysql_query($sql_deal_data);
|
||||||
$deal_data = mysql_fetch_assoc($rez_deal_data);
|
$deal_data = mysql_fetch_assoc($rez_deal_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Если есть deal_date в сделке — используем его
|
||||||
|
if (!empty($deal_data['deal_date'])) {
|
||||||
|
$date_source = $deal_data['deal_date'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$date = date("d.m.Y", strtotime($date_source));
|
||||||
|
list($d, $m, $y) = explode(".", $date);
|
||||||
?>
|
?>
|
||||||
<div class="chat-block<?=$class_ev?>">
|
<div class="chat-block<?=$class_ev?>">
|
||||||
<div class="chat-author">
|
<div class="chat-author">
|
||||||
@ -1123,7 +1129,7 @@ ORDER BY date_sort ASC";
|
|||||||
<span>Сделка</span>
|
<span>Сделка</span>
|
||||||
<?php if ($event['partner_id']) : ?><sup style="padding-left:3px; font-weight:normal;color:#dea847;" data-partner-id="<?= $event['partner_id'] ?>">от партнёра</sup><?php endif; ?>
|
<?php if ($event['partner_id']) : ?><sup style="padding-left:3px; font-weight:normal;color:#dea847;" data-partner-id="<?= $event['partner_id'] ?>">от партнёра</sup><?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="message">Запланирована сделка на <?=$d?> <?=getRusMonth($m)?> <?=$y?> в <?=date("H:i", strtotime($event['schedule_date']))?></div>
|
<div class="message">Запланирована сделка на <?=$d?> <?=getRusMonth($m)?> <?=$y?> в <?=date("H:i", strtotime($date_source))?></div>
|
||||||
|
|
||||||
<?php if ($deal_data) { ?>
|
<?php if ($deal_data) { ?>
|
||||||
<!-- НОВЫЙ ВАРИАНТ: расширенная информация о сделке -->
|
<!-- НОВЫЙ ВАРИАНТ: расширенная информация о сделке -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user