diff --git a/src/QUI/ERP/Shipping/Debug.php b/src/QUI/ERP/Shipping/Debug.php index 4eb4d37b264c3fdef5e0a554c1955ccea49a3ccf..7d2a26a02a19fb1a413c065e624b9a91208492fd 100644 --- a/src/QUI/ERP/Shipping/Debug.php +++ b/src/QUI/ERP/Shipping/Debug.php @@ -116,6 +116,10 @@ public static function generateShippingEntryDebuggingLog( $result, $debuggingLog ) { + if (defined('QUIQQER_AJAX')) { + return; + } + if (self::isRuleAlreadyDebugged($Entry->getId())) { return; } diff --git a/src/QUI/ERP/Shipping/Order/Shipping.php b/src/QUI/ERP/Shipping/Order/Shipping.php index b432a01a77b8538853898208b76c346d121dafec..d448cc1dccc69c89aa1273052ee414cd9662a427 100644 --- a/src/QUI/ERP/Shipping/Order/Shipping.php +++ b/src/QUI/ERP/Shipping/Order/Shipping.php @@ -67,7 +67,7 @@ public function getBody() $shippingList = $this->getValidShipping(); // debugging logger - if (QUI\ERP\Shipping\Shipping::getInstance()->debuggingEnabled()) { + if (QUI\ERP\Shipping\Shipping::getInstance()->debuggingEnabled() && !defined('QUIQQER_AJAX')) { QUI\ERP\Shipping\Debug::clearLogStock(); $debugStack = []; diff --git a/src/QUI/ERP/Shipping/Types/ShippingEntry.php b/src/QUI/ERP/Shipping/Types/ShippingEntry.php index a0eec7fbb1da6af4fbbff81e1dea198b7a8d53e8..8c0597ca5717cd1092969bad9189568ee7c8de3c 100644 --- a/src/QUI/ERP/Shipping/Types/ShippingEntry.php +++ b/src/QUI/ERP/Shipping/Types/ShippingEntry.php @@ -724,7 +724,7 @@ public function getShippingRules(): array } // debug shipping entry / rules - if ($debugging) { + if ($debugging && !defined('QUIQQER_AJAX')) { QUI\ERP\Shipping\Debug::enable(); QUI\ERP\Shipping\Debug::generateShippingEntryDebuggingLog($this, $result, $debuggingLog); QUI\ERP\Shipping\Debug::disable();