forked from EvergreenCrypto/docker-finance
Compare commits
1 Commits
paypal-bus
...
gemini-tra
| Author | SHA1 | Date | |
|---|---|---|---|
|
d1b6b29757
|
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# docker-finance | modern accounting for the power-user
|
||||
#
|
||||
# Copyright (C) 2021-2026 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
|
||||
@@ -99,10 +99,9 @@ if %from_email [a-z0-9]
|
||||
if %direction ^IN$
|
||||
account2 income:paypal-business:%subaccount:%currency_
|
||||
|
||||
# TODO: if a rebate is ever a non-fiat asset (e.g., BTC), reconcile the taxable event (cost-basis)
|
||||
if %direction ^IN$
|
||||
& %type ^Debit Card Cash Back Bonus$
|
||||
account2 expenses:paypal-business:%subaccount:%type:%currency_
|
||||
account2 income:paypal-business:%subaccount:rebate:%currency_
|
||||
comment type:%type, balance_impact:%balance_impact, status:%status_, to_email:%to_email, txid:%txid, direction:%direction, taxed_as:REBATE
|
||||
|
||||
# All non-income considered capital contributions (use custom rules as needed)
|
||||
|
||||
Reference in New Issue
Block a user