change last step
This commit is contained in:
parent
63794889e6
commit
9299bad7e2
@ -4218,8 +4218,11 @@ $user_id = $_SESSION['id'];
|
||||
if (!d) { console.log('[DEAL_CLOSE] dealCloseData is null/undefined'); return; }
|
||||
var html = '';
|
||||
if (d.title) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Название:</span> ' + d.title + '</div>';
|
||||
if (d.contract_price) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Сумма в договоре:</span> ' + Number(d.contract_price).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
if (d.total_commission) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Комиссия:</span> ' + Number(d.total_commission).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
if (d.object_price) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Цена объекта:</span> ' + Number(d.object_price).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
if (d.commission_buyer) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Комиссия с покупателя/арендатора:</span> ' + Number(d.commission_buyer).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
if (d.commission_seller) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Комиссия с продавца/арендодателя:</span> ' + Number(d.commission_seller).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
if (d.agent_commission) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Комиссия агента:</span> ' + Number(d.agent_commission).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
if (d.counter_agent_commission) html += '<div style="margin-bottom: 8px;"><span style="font-weight: 500;">Комиссия встречному агенту:</span> ' + Number(d.counter_agent_commission).toLocaleString('ru-RU') + ' руб.</div>';
|
||||
$('#deal_close_content').html(html);
|
||||
|
||||
// Собираем ID заявок и объектов
|
||||
@ -4316,7 +4319,7 @@ $user_id = $_SESSION['id'];
|
||||
html += '</div>';
|
||||
|
||||
html += '<div style="flex:1;min-width:200px;">';
|
||||
html += '<label style="font-size:12px;color:#666;">Комиссия (руб.)</label>';
|
||||
html += '<label style="font-size:12px;color:#666;">Комиссия итого (руб.)</label>';
|
||||
html += '<input type="number" name="fact_agent_commission" id="fact_agent_commission" class="text" style="width:100%;box-sizing:border-box;" value="' + (d.total_commission || '') + '">';
|
||||
html += '</div>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user