From 45690ecd14ef6f194dfc78a9ee51ed2b03a8ec35 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 3 Nov 2026 23:21:12 +0000 Subject: [PATCH] chore(costs): keep the money helpers used only by settlementFx module-private --- server/src/nest/budget/budget-money.helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/nest/budget/budget-money.helpers.ts b/server/src/nest/budget/budget-money.helpers.ts index 9f1ecc19a..97666c0b7 100644 --- a/server/src/nest/budget/budget-money.helpers.ts +++ b/server/src/nest/budget/budget-money.helpers.ts @@ -41,7 +41,7 @@ export function sumMoney(amounts: number[]): number { * a won and rounded one by one on screen stops adding up (#2604). In the trip's own * currency the remainders are integers, so booking what is offered clears it. */ -export function allocateDisplayCents(cents: number[], factor: number, total?: number, unit = 1): number[] { +function allocateDisplayCents(cents: number[], factor: number, total?: number, unit = 1): number[] { if (factor === 1 && unit === 1) return [...cents]; const exact = cents.map((c) => (c * factor) / unit); const out = exact.map((v) => Math.floor(v)); @@ -159,7 +159,7 @@ export function tripConverter( * Units of `to` per 1 `from`, from a set of rates quoted against any base (each rate is * units of that currency per 1 base). Null when either quote is missing. */ -export function quoteRatio(rates: Record | null, to: string, from: string): number | null { +function quoteRatio(rates: Record | null, to: string, from: string): number | null { const rTo = rates?.[to]; const rFrom = rates?.[from]; return rTo && rTo > 0 && rFrom && rFrom > 0 ? rTo / rFrom : null;