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:
@@ -3752,6 +3752,7 @@ class FalukantService extends BaseService {
|
|||||||
// Nur Städte zurückgeben, wo der Preis höher ist
|
// Nur Städte zurückgeben, wo der Preis höher ist
|
||||||
// Kleine Toleranz (0.01) für Rundungsfehler bei Gleitkommaberechnungen
|
// Kleine Toleranz (0.01) für Rundungsfehler bei Gleitkommaberechnungen
|
||||||
const PRICE_TOLERANCE = 0.01;
|
const PRICE_TOLERANCE = 0.01;
|
||||||
|
console.log(`[getProductPricesInCities] priceInCity=${priceInCity}, currentPrice=${currentPrice}, PRICE_TOLERANCE=${PRICE_TOLERANCE}`);
|
||||||
if (priceInCity > currentPrice - PRICE_TOLERANCE) {
|
if (priceInCity > currentPrice - PRICE_TOLERANCE) {
|
||||||
// Branch-Typ bestimmen
|
// Branch-Typ bestimmen
|
||||||
let branchType = null; // null = kein Branch
|
let branchType = null; // null = kein Branch
|
||||||
|
|||||||
Reference in New Issue
Block a user