fix(timesheets): small typo to_num function
This commit is contained in:
parent
eefe82153f
commit
18c1ce38be
|
|
@ -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,
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user