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.
This commit is contained in:
Torsten Schulz (local)
2025-12-03 15:39:57 +01:00
parent b3e48a0b06
commit f768ba3b27

View File

@@ -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