fixed #168
This commit is contained in:
parent
797a4d41de
commit
12ae53cfea
@ -1178,20 +1178,16 @@ class RetailCrmHistory
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$paymentExternalId = $orderPayment->getId();
|
$newHistoryPayments[$orderPayment->getField('XML_ID')]['externalId'] = $paymentExternalId;
|
||||||
|
RCrmActions::apiMethod(
|
||||||
|
$api,
|
||||||
|
'paymentEditById',
|
||||||
|
__METHOD__,
|
||||||
|
$newHistoryPayments[$orderPayment->getField('XML_ID')]
|
||||||
|
);
|
||||||
|
|
||||||
if ($paymentExternalId) {
|
if ($paymentId) {
|
||||||
$newHistoryPayments[$orderPayment->getField('XML_ID')]['externalId'] = $paymentExternalId;
|
\Bitrix\Sale\Internals\PaymentTable::update($paymentId, array('XML_ID' => ''));
|
||||||
RCrmActions::apiMethod(
|
|
||||||
$api,
|
|
||||||
'paymentEditById',
|
|
||||||
__METHOD__,
|
|
||||||
$newHistoryPayments[$orderPayment->getField('XML_ID')]
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($paymentId) {
|
|
||||||
\Bitrix\Sale\Internals\PaymentTable::update($paymentId, array('XML_ID' => ''));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user