From 649fbb00d260bb936ebea82cbdb4f2b4bfa69bba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 23 Oct 2025 09:45:48 +0200 Subject: [PATCH] bugfix: parser for transaction values --- ledgers/account.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledgers/account.sh b/ledgers/account.sh index 9d33299..6211f09 100755 --- a/ledgers/account.sh +++ b/ledgers/account.sh @@ -33,7 +33,7 @@ if tid="$(POST tid)"; then tref="$(POST tref |grep -m1 -xE '.+')" tamount="$(POST tamount \ | sed -E ' - s;^([\+-]?[0-9]+)[\.,]([0-9][0-9])$;\1\2;; + s;^([\+-]?[0-9]+)[\.,]([0-9][0-9])$;\1\2;; t; s;^([\+-]?[0-9]+)$;&00;; ' | grep -m1 -xE '[\+-]?[0-9]+')" # debug "TDATE: $tdate TREF: $tref AMOUNT: $tamount" -- 2.39.5