From f768ba3b2731fa944dc91dde1ba80f65b2770241 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 3 Dec 2025 15:39:57 +0100 Subject: [PATCH] Add debug logging for priceInCity in getProductPricesInCities method of FalukantService - Introduced a console log to capture the values of priceInCity, currentPrice, and PRICE_TOLERANCE, enhancing visibility into the price comparison process. - This addition aims to improve traceability and facilitate debugging during price evaluations, building on previous logging enhancements. --- backend/services/falukantService.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/services/falukantService.js b/backend/services/falukantService.js index c4ac809..632d2dd 100644 --- a/backend/services/falukantService.js +++ b/backend/services/falukantService.js @@ -3752,6 +3752,7 @@ class FalukantService extends BaseService { // Nur Städte zurückgeben, wo der Preis höher ist // Kleine Toleranz (0.01) für Rundungsfehler bei Gleitkommaberechnungen const PRICE_TOLERANCE = 0.01; + console.log(`[getProductPricesInCities] priceInCity=${priceInCity}, currentPrice=${currentPrice}, PRICE_TOLERANCE=${PRICE_TOLERANCE}`); if (priceInCity > currentPrice - PRICE_TOLERANCE) { // Branch-Typ bestimmen let branchType = null; // null = kein Branch