]> git.plutz.net Git - confetti/commitdiff
bugfix: parser for transaction values
authorPaul Hänsch <paul@plutz.net>
Thu, 23 Oct 2025 07:45:48 +0000 (09:45 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 23 Oct 2025 07:45:48 +0000 (09:45 +0200)
ledgers/account.sh

index 9d3329936e08d25ee74c3248b7bff216bd913fb1..6211f0987c8bfa417a3dda23ea6fd34320bc1cd9 100755 (executable)
@@ -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"