From a29646cb57cc6180a85af30a0516bc72674e177b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 17 Oct 2017 18:20:16 -0700 Subject: [PATCH] examples: csv: coinbase tweak --- examples/csv/coinbase-btc.csv.rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/csv/coinbase-btc.csv.rules b/examples/csv/coinbase-btc.csv.rules index e24b99fda..c432adfdf 100644 --- a/examples/csv/coinbase-btc.csv.rules +++ b/examples/csv/coinbase-btc.csv.rules @@ -21,3 +21,9 @@ currency %currency if Visa debit.*1234 account2 assets:bank:checking # TODO want BTC on account1 posting, $ on account2 posting + +# if there's a transfer total, add that as price +# The double quotes enclosing each field have been removed at this point. +# TODO when supported, we'll set the other posting's amount instead +if ^[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]+ + amount %amount @@ $%transfer_total