1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00
This commit is contained in:
dima-uryvskiy 2021-03-15 18:12:01 +03:00
parent b4448cfe94
commit 0d5c156b43
2 changed files with 15 additions and 15 deletions

View file

@ -241,9 +241,9 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) :
));
if (empty($crmCorporate)) {
$crmCorporate = $this->customers->searchCorporateCustomer(array(
'companyName' => $wcOrder->get_billing_company()
));
$crmCorporate = $this->customers->searchCorporateCustomer(array(
'companyName' => $wcOrder->get_billing_company()
));
}
if (empty($crmCorporate)) {
@ -371,11 +371,11 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) :
return;
}
if ($order->get_status() == 'auto-draft') {
return;
}
if ($order->get_status() == 'auto-draft') {
return;
}
if ($update === true) {
if ($update === true) {
$this->orders->is_new = false;
}

View file

@ -106,14 +106,14 @@ class WC_Retailcrm_Order extends WC_Retailcrm_Abstracts_Data
/**
* @param WC_Order $order
*/
protected function set_number($order)
{
if (isset($this->settings['update_number']) && $this->settings['update_number'] == WC_Retailcrm_Base::YES ) {
$this->set_data_field('number', $order->get_order_number());
} else {
unset($this->data['number']);
}
}
protected function set_number($order)
{
if (isset($this->settings['update_number']) && $this->settings['update_number'] == WC_Retailcrm_Base::YES ) {
$this->set_data_field('number', $order->get_order_number());
} else {
unset($this->data['number']);
}
}
public function reset_data()
{