[PR #6645] fix HyperFormula custom functions and add FIXED formula #6647

Closed
opened 2026-02-28 21:31:03 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6645

State: closed
Merged: Yes


This PR is double barrelled, when adding FIXED I found that the custom functions weren't working at all because there were no translations defined. I cleaned that up and forced the language to US (default is enGB) first. They're actually equivalent but it makes sense to keep ourselves consistent and use US

https://github.com/handsontable/hyperformula/blob/master/src/i18n/languages/enUS.ts

Error before this PR:

index.ts:26 Formula execution error: Error: Formula error: Function name INTEGER_TO_AMOUNT not recognized.
    at Action.executeFormulaSync (action.ts:307:15)
    at Action.exec (action.ts:89:33)
    at rule.ts:16:36
    at Array.forEach (<anonymous>)
    at execNonSplitActions (rule.ts:16:11)
    at execActions (rule.ts:98:26)
    at transaction-rules.ts:706:31
    at Array.flatMap (<anonymous>)
    at applyActions (transaction-rules.ts:705:40)
**Original Pull Request:** https://github.com/actualbudget/actual/pull/6645 **State:** closed **Merged:** Yes --- This PR is double barrelled, when adding `FIXED` I found that the custom functions weren't working at all because there were no translations defined. I cleaned that up and forced the language to US (default is enGB) first. They're actually equivalent but it makes sense to keep ourselves consistent and use US https://github.com/handsontable/hyperformula/blob/master/src/i18n/languages/enUS.ts Error before this PR: ``` index.ts:26 Formula execution error: Error: Formula error: Function name INTEGER_TO_AMOUNT not recognized. at Action.executeFormulaSync (action.ts:307:15) at Action.exec (action.ts:89:33) at rule.ts:16:36 at Array.forEach (<anonymous>) at execNonSplitActions (rule.ts:16:11) at execActions (rule.ts:98:26) at transaction-rules.ts:706:31 at Array.flatMap (<anonymous>) at applyActions (transaction-rules.ts:705:40) ```
GiteaMirror added the pull-request label 2026-02-28 21:31:03 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6647