From: Paul Hänsch Date: Thu, 23 Oct 2025 07:45:48 +0000 (+0200) Subject: bugfix: parser for transaction values X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=649fbb00d260bb936ebea82cbdb4f2b4bfa69bba;p=confetti bugfix: parser for transaction values --- 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"