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
// save into sales_billing_agreement_order
$billingAgreement->addOrderRelation($this->_order);
}
// add to order to save agreement
$this->_order->addRelatedObject($billingAgreement);
// add to order to save agreement
$this->_order->addRelatedObject($billingAgreement);
}
} else {
$message = __('Failed to create billing agreement for this order.');
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