feat(finance): add settlement currency and cycle fx rates

This commit is contained in:
2026-03-10 16:46:59 +04:00
parent 4c0508f618
commit fb85219409
38 changed files with 3546 additions and 114 deletions

View File

@@ -89,6 +89,11 @@ export function createMiniAppDashboardHandler(options: {
period: dashboard.period,
currency: dashboard.currency,
totalDueMajor: dashboard.totalDue.toMajorString(),
rentSourceAmountMajor: dashboard.rentSourceAmount.toMajorString(),
rentSourceCurrency: dashboard.rentSourceAmount.currency,
rentDisplayAmountMajor: dashboard.rentDisplayAmount.toMajorString(),
rentFxRateMicros: dashboard.rentFxRateMicros?.toString() ?? null,
rentFxEffectiveDate: dashboard.rentFxEffectiveDate,
members: dashboard.members.map((line) => ({
memberId: line.memberId,
displayName: line.displayName,
@@ -104,6 +109,10 @@ export function createMiniAppDashboardHandler(options: {
title: entry.title,
amountMajor: entry.amount.toMajorString(),
currency: entry.currency,
displayAmountMajor: entry.displayAmount.toMajorString(),
displayCurrency: entry.displayCurrency,
fxRateMicros: entry.fxRateMicros?.toString() ?? null,
fxEffectiveDate: entry.fxEffectiveDate,
actorDisplayName: entry.actorDisplayName,
occurredAt: entry.occurredAt
}))