Change order number transfer for history
This commit is contained in:
parent
7f04fe822a
commit
81dc5071dd
@ -236,12 +236,14 @@ if (!class_exists('WC_Retailcrm_History')) :
|
|||||||
$wcOrder->calculate_totals();
|
$wcOrder->calculate_totals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$wcOrderNumber = $wcOrder->get_order_number();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$order['number'] != $wcOrderId
|
$order['number'] != $wcOrderNumber
|
||||||
&& isset($this->retailcrmSettings['update_number'])
|
&& isset($this->retailcrmSettings['update_number'])
|
||||||
&& $this->retailcrmSettings['update_number'] == WC_Retailcrm_Base::YES
|
&& $this->retailcrmSettings['update_number'] == WC_Retailcrm_Base::YES
|
||||||
) {
|
) {
|
||||||
$order['number'] = $wcOrderId;
|
$order['number'] = $wcOrderNumber;
|
||||||
|
|
||||||
$this->retailcrm->ordersEdit($order, 'id');
|
$this->retailcrm->ordersEdit($order, 'id');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user