From e69c6f3ba14e466dd658855152e31c0d4165fe3d Mon Sep 17 00:00:00 2001 From: Jainamshah2289 <43310942+Jainamshah2289@users.noreply.github.com> Date: Mon, 5 Jun 2023 16:34:09 +0530 Subject: [PATCH] Update Order.php first we have to validate. i face error related $order->getStoreId() so this is fix now invoice create word good --- Model/Api/Order.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Api/Order.php b/Model/Api/Order.php index 0f9388b..b89ad36 100755 --- a/Model/Api/Order.php +++ b/Model/Api/Order.php @@ -398,11 +398,11 @@ private function load($model) */ public function update($order, $status, $oldStatus, $description) { - if (!$this->_apiConfig->isEnabled($order->getStoreId())) { + if (!$order) { return; } - - if (!$order) { + + if (!$this->_apiConfig->isEnabled($order->getStoreId())) { return; }