We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit e5de8538 authored by Rik ter Beek's avatar Rik ter Beek

only store billing agreement if this one is not assigned to the order yet.

parent 37ac8c0c
...@@ -1037,10 +1037,10 @@ class Cron ...@@ -1037,10 +1037,10 @@ class Cron
// save into sales_billing_agreement_order // save into sales_billing_agreement_order
$billingAgreement->addOrderRelation($this->_order); $billingAgreement->addOrderRelation($this->_order);
}
// add to order to save agreement // add to order to save agreement
$this->_order->addRelatedObject($billingAgreement); $this->_order->addRelatedObject($billingAgreement);
}
} else { } else {
$message = __('Failed to create billing agreement for this order.'); $message = __('Failed to create billing agreement for this order.');
throw new \Exception($message); throw new \Exception($message);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment