Merge pull request #56 into master
71960c1hledger-flow: coinbase: allow 1INCH parsing (Aaron Fiore)ce61e85hledger-flow: gemini: allow 1INCH transfers (Aaron Fiore)
This commit was merged in pull request #56.
This commit is contained in:
@@ -85,6 +85,9 @@ function __parse()
|
|||||||
sub(/Z/, "", $9);
|
sub(/Z/, "", $9);
|
||||||
sub(/\+.*/, "", $9);
|
sub(/\+.*/, "", $9);
|
||||||
|
|
||||||
|
# Allow numerical symbols
|
||||||
|
gsub(/1INCH/, "ONEINCH")
|
||||||
|
|
||||||
# Print for rules consumption
|
# Print for rules consumption
|
||||||
printf $1 OFS # account_id (prepended column)
|
printf $1 OFS # account_id (prepended column)
|
||||||
printf $2 OFS # id (coinbase_id)
|
printf $2 OFS # id (coinbase_id)
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ function parse_transfers()
|
|||||||
# Get/set info_method (if available)
|
# Get/set info_method (if available)
|
||||||
if ($10 == "ACH" || $10 == "Wire" || $10 == "SEN" || $10 == "CreditCard") {$8=$10}
|
if ($10 == "ACH" || $10 == "Wire" || $10 == "SEN" || $10 == "CreditCard") {$8=$10}
|
||||||
|
|
||||||
|
# Allow numerical symbols
|
||||||
|
gsub(/1INCH/, "ONEINCH")
|
||||||
|
|
||||||
printf $1 OFS # UID (info_eid)
|
printf $1 OFS # UID (info_eid)
|
||||||
printf date OFS # Date
|
printf date OFS # Date
|
||||||
printf "TRANSFER" OFS # Type
|
printf "TRANSFER" OFS # Type
|
||||||
@@ -147,6 +150,9 @@ function parse_transfers()
|
|||||||
# Get/set info_method (if available)
|
# Get/set info_method (if available)
|
||||||
if ($8 == "ACH" || $8 == "Wire" || $8 == "SEN" || $8 == "CreditCard") {$6=$8}
|
if ($8 == "ACH" || $8 == "Wire" || $8 == "SEN" || $8 == "CreditCard") {$6=$8}
|
||||||
|
|
||||||
|
# Allow numerical symbols
|
||||||
|
gsub(/1INCH/, "ONEINCH")
|
||||||
|
|
||||||
printf $1 OFS # UID (info_eid)
|
printf $1 OFS # UID (info_eid)
|
||||||
printf date OFS # Date
|
printf date OFS # Date
|
||||||
printf "TRANSFER" OFS # Type
|
printf "TRANSFER" OFS # Type
|
||||||
|
|||||||
Reference in New Issue
Block a user