forked from EvergreenCrypto/docker-finance
container: hledger-flow: support non-alpha chars (currency)
Removes old hack for currencies with non-alpha characters.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# docker-finance | modern accounting for the power-user
|
||||
#
|
||||
# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -77,9 +77,6 @@ function parse_transfers()
|
||||
# Get/set info_method (if available)
|
||||
if ($10 == "ACH" || $10 == "Wire" || $10 == "SEN" || $10 == "CreditCard") {$8=$10}
|
||||
|
||||
# Allow numerical symbols
|
||||
gsub(/1INCH/, "ONEINCH")
|
||||
|
||||
printf $1 OFS # UID (info_eid)
|
||||
printf date OFS # Date
|
||||
printf "TRANSFER" OFS # Type
|
||||
@@ -151,9 +148,6 @@ function parse_transfers()
|
||||
# Get/set info_method (if available)
|
||||
if ($8 == "ACH" || $8 == "Wire" || $8 == "SEN" || $8 == "CreditCard") {$6=$8}
|
||||
|
||||
# Allow numerical symbols
|
||||
gsub(/1INCH/, "ONEINCH")
|
||||
|
||||
printf $1 OFS # UID (info_eid)
|
||||
printf date OFS # Date
|
||||
printf "TRANSFER" OFS # Type
|
||||
@@ -215,8 +209,6 @@ function parse_trades()
|
||||
if (date !~ global_year)
|
||||
next
|
||||
|
||||
gsub(/,1INCH,/,",ONEINCH,")
|
||||
|
||||
printf $9 OFS # UID (tid)
|
||||
printf date OFS # Date
|
||||
printf "TRADE" OFS # Type
|
||||
@@ -296,8 +288,6 @@ function parse_earn()
|
||||
if (date !~ global_year)
|
||||
next
|
||||
|
||||
gsub(/,1INCH,/,",ONEINCH,")
|
||||
|
||||
printf $1 OFS # UID (earnTransactionId)
|
||||
printf date OFS # Date
|
||||
printf "INTEREST" OFS # Type
|
||||
|
||||
Reference in New Issue
Block a user