diff --git a/src/QUI/ERP/Coupons/Events.php b/src/QUI/ERP/Coupons/Events.php index 245150326591f6fae5b76c842d6f25e152859e99..d528a8367b4157c14ca0c2b597140814616363a0 100644 --- a/src/QUI/ERP/Coupons/Events.php +++ b/src/QUI/ERP/Coupons/Events.php @@ -27,6 +27,7 @@ use function is_string; use function json_decode; use function json_encode; +use function method_exists; /** * Class Events @@ -213,7 +214,9 @@ public static function onQuiqqerOrderBasketRemovePos( $Order->setData('quiqqer-coupons', $orderCoupons); try { - $Order->save(); + if (method_exists($Order, 'save')) { + $Order->save(); + } } catch (QUI\Exception) { } }