diff --git a/src/modules/timesheets/services/timesheets-query.service.ts b/src/modules/timesheets/services/timesheets-query.service.ts index 84ad942..88b725a 100644 --- a/src/modules/timesheets/services/timesheets-query.service.ts +++ b/src/modules/timesheets/services/timesheets-query.service.ts @@ -89,8 +89,8 @@ export class TimesheetsQueryService { const expenses: ExpenseRow[] = raw_expenses.map(expense => ({ date: expense.date, - amount: typeof (expense.amount as any)?.toNumber === 'function' ? - (expense.amount as any).toNumber() : Number(expense.amount), + amount: typeof (expense.amount as any)?.to_num === 'function' ? + (expense.amount as any).to_num() : Number(expense.amount), type: String(expense.bank_code?.type ?? '').toUpperCase(), is_approved: expense.is_approved ?? true, }));