convert: currency -> base-currency
This commit is contained in:
parent
7d3b1f4a55
commit
780dc878c7
@ -149,7 +149,7 @@ initialRulesFileContent =
|
|||||||
"date-field 0\n" ++
|
"date-field 0\n" ++
|
||||||
"description-field 4\n" ++
|
"description-field 4\n" ++
|
||||||
"amount-field 1\n" ++
|
"amount-field 1\n" ++
|
||||||
"currency $\n" ++
|
"base-currency $\n" ++
|
||||||
"\n" ++
|
"\n" ++
|
||||||
"# account-assigning rules\n" ++
|
"# account-assigning rules\n" ++
|
||||||
"\n" ++
|
"\n" ++
|
||||||
@ -300,7 +300,7 @@ account2field = do
|
|||||||
updateState (\r -> r{account2Field=readMay v})
|
updateState (\r -> r{account2Field=readMay v})
|
||||||
|
|
||||||
basecurrency = do
|
basecurrency = do
|
||||||
string "currency"
|
choice [string "base-currency", string "currency"]
|
||||||
many1 spacenonewline
|
many1 spacenonewline
|
||||||
v <- restofline
|
v <- restofline
|
||||||
updateState (\r -> r{baseCurrency=Just v})
|
updateState (\r -> r{baseCurrency=Just v})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user