mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 14:34:02 +00:00
fix(miniapp): clarify cycle summary and balance sections
This commit is contained in:
@@ -311,6 +311,9 @@ function createFinanceService(): FinanceCommandService {
|
||||
generateDashboard: async () => ({
|
||||
period: '2026-03',
|
||||
currency: 'GEL',
|
||||
timezone: 'Asia/Tbilisi',
|
||||
rentDueDay: 20,
|
||||
utilitiesDueDay: 4,
|
||||
paymentBalanceAdjustmentPolicy: 'utilities',
|
||||
totalDue: Money.fromMajor('1000.00', 'GEL'),
|
||||
totalPaid: Money.fromMajor('500.00', 'GEL'),
|
||||
|
||||
@@ -124,6 +124,9 @@ function createDashboard(): NonNullable<
|
||||
return {
|
||||
period: '2026-03',
|
||||
currency: 'GEL',
|
||||
timezone: 'Asia/Tbilisi',
|
||||
rentDueDay: 20,
|
||||
utilitiesDueDay: 4,
|
||||
paymentBalanceAdjustmentPolicy: 'utilities',
|
||||
totalDue: Money.fromMajor('400', 'GEL'),
|
||||
totalPaid: Money.fromMajor('100', 'GEL'),
|
||||
|
||||
@@ -88,6 +88,9 @@ export function createMiniAppDashboardHandler(options: {
|
||||
dashboard: {
|
||||
period: dashboard.period,
|
||||
currency: dashboard.currency,
|
||||
timezone: dashboard.timezone,
|
||||
rentDueDay: dashboard.rentDueDay,
|
||||
utilitiesDueDay: dashboard.utilitiesDueDay,
|
||||
paymentBalanceAdjustmentPolicy: dashboard.paymentBalanceAdjustmentPolicy,
|
||||
totalDueMajor: dashboard.totalDue.toMajorString(),
|
||||
totalPaidMajor: dashboard.totalPaid.toMajorString(),
|
||||
|
||||
@@ -168,6 +168,9 @@ function createFinanceService(): FinanceCommandService {
|
||||
generateDashboard: async () => ({
|
||||
period: '2026-03',
|
||||
currency: 'GEL',
|
||||
timezone: 'Asia/Tbilisi',
|
||||
rentDueDay: 20,
|
||||
utilitiesDueDay: 4,
|
||||
paymentBalanceAdjustmentPolicy: 'utilities',
|
||||
totalDue: Money.fromMajor('1000', 'GEL'),
|
||||
totalPaid: Money.zero('GEL'),
|
||||
|
||||
Reference in New Issue
Block a user