Skip to main content

Module util

Module util 

Source

Structs§

ProcessedSplit
Result of processing a single split
SplitData
Common SplitData structure used by both create and edit
TagData

Functions§

build_conversion_price
Build a Price for a multi-currency split from rational components.
create_transaction_tags
Create transaction tags from note
get_account_name
Get account name by ID
get_commodity_name
Get commodity symbol (or name as fallback) by ID
parse_amount_to_rational
Parse a decimal string directly into an exact rational (numerator, denominator).
parse_transaction_date
Parse RFC3339 date string from browser (via toISOString()) or return current time.
parse_uuid
Parse and validate UUID with custom error message
process_split_data
Process a single split data into finance entities
validate_basic_amount
Validate basic amount parsing and positivity (without precision checking)
validate_splits_not_empty
Validate that splits are not empty