container: hledger-flow: gemini: fix transfer method detection

if no on-chain transfers occurred for the given year.
This commit is contained in:
2026-03-27 18:00:53 -07:00
parent 78f24a2659
commit d1b6b29757

View File

@@ -71,11 +71,11 @@ function parse_transfers()
next
# NOTE: If info_method isnt ACH/Wire/SEN then it should be GUSD (exception being CreditCard)
if ($10 == "ACH" || $10 == "Wire" || $10 == "SEN") {$4="USD"}
if ($NF == "ACH" || $NF == "Wire" || $NF == "SEN") {$4="USD"}
else {gsub(/,USD,/,",GUSD,")}
# Get/set info_method (if available)
if ($10 == "ACH" || $10 == "Wire" || $10 == "SEN" || $10 == "CreditCard") {$8=$10}
if ($NF == "ACH" || $NF == "Wire" || $NF == "SEN" || $NF == "CreditCard") {$8=$NF}
printf $1 OFS # UID (info_eid)
printf date OFS # Date