diff --git a/modules/splashsync/src/Objects/Order/CRUDTrait.php b/modules/splashsync/src/Objects/Order/CRUDTrait.php index 268d2c4c..8350670e 100644 --- a/modules/splashsync/src/Objects/Order/CRUDTrait.php +++ b/modules/splashsync/src/Objects/Order/CRUDTrait.php @@ -98,7 +98,7 @@ public function load($objectId) //====================================================================// // Set Context Currency to Order Currency if ($object->id_currency) { - Context::getContext()->currency = new Currency($object->id_currency); + Context::getContext()->currency = Currency::getCurrencyInstance($object->id_currency); } return $object; diff --git a/modules/splashsync/src/Services/MultiShopManager.php b/modules/splashsync/src/Services/MultiShopManager.php index 464e576c..4840d152 100644 --- a/modules/splashsync/src/Services/MultiShopManager.php +++ b/modules/splashsync/src/Services/MultiShopManager.php @@ -226,6 +226,7 @@ public static function setContext(int $shopId = null, $force = false): bool public static function initLegacyContext(): bool { if (class_exists(static::$legacyContextClass) && !isset(Context::getContext()->employee->id)) { + /** @phpstan-ignore-next-line */ Context::getContext()->employee = null; static::$legacyContextClass::getContext();