actual prod
This commit is contained in:
parent
00254be53c
commit
11cdbeb6fd
14
js/crm.js
14
js/crm.js
@ -3820,7 +3820,7 @@ $(document).ready(function() {
|
||||
|
||||
if (ellada === '0' && agencyID != 8257 && agencyID != 7384 && agencyID != 11082 && agencyID != 11082
|
||||
&& agencyID != 12556 && agencyID != 13154 && agencyID != 14134 && agencyID != 11417
|
||||
&& agencyID != 12028 && agencyID != 18237 && agencyID != 19111
|
||||
&& agencyID != 12028 && agencyID != 18237 && agencyID != 19111 && agencyID != 20189
|
||||
&& agencyID != 19794 && agencyID != 22666) {
|
||||
if (agencyID == 8435 && funnel_id == 283) {
|
||||
|
||||
@ -6294,6 +6294,18 @@ $(document).ready(function() {
|
||||
param.summa = (factPrice !== '' && !isNaN(parseInt(factPrice))) ? parseInt(factPrice) : (window.dealCloseData.contract_price || 0);
|
||||
param.commission = (factCommission !== '' && !isNaN(parseInt(factCommission))) ? parseInt(factCommission) : (window.dealCloseData.total_commission || 0);
|
||||
param.datazakl = Date.parse(dataZZ);
|
||||
|
||||
// var factPayload = {};
|
||||
// if (factPrice !== '' && !isNaN(parseInt(factPrice))) factPayload.contract_price = parseInt(factPrice) || 0;
|
||||
// if (factCommission !== '' && !isNaN(parseInt(factCommission))) factPayload.total_commission = parseInt(factCommission) || 0;
|
||||
// if (Object.keys(factPayload).length > 0) {
|
||||
// $.ajax({
|
||||
// url: '/deal/index.php?path=deals/' + window.dealCloseData.id,
|
||||
// type: 'PUT',
|
||||
// contentType: 'application/json',
|
||||
// data: JSON.stringify(factPayload)
|
||||
// });
|
||||
// }
|
||||
} else {
|
||||
if (isNaN(parseInt($('#summa_sdelki').val()))) {
|
||||
alert("Введите сумму сделки");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user