ledger-obsidian
ledger-obsidian copied to clipboard
Support for three letter currency codes and commodities
Original ledger.cli protocol supports any number of currencies and commodities. The obsidian plugin returns a parsing error when a transaction is included where the amounts are not preceeded by one of the major currency symbols. Support for currency codes would be valuable for those of us operating in currencies without a symbol (Czech Crowns, CZK for example) and those who want to keep track of their stock and other commodities.
Can you please give me an example of how a transaction amount would be written in those currencies? An example of how that looks in Ledger would be very helpful too. Thank you.
I believe the transaction in ledger would be written as such:
2022-01-03 Lunch in Czech Republic
Assets:Wallet -120.00 CZK
Expenses:Food 120.00 CZK
example adapted from ledger.cli docs, original stands as:
apply fixed A fixed block is used to set fixated prices (see Fixated prices and costs) for a series of transactions. It’s purely a typing saver, for use when entering many transactions with fixated prices.
Thus, the following:
apply fixed CAD $0.90
2012-04-10 Lunch in Canada
Assets:Wallet -15.50 CAD
Expenses:Food 15.50 CAD
2012-04-11 Second day Dinner in Canada
Assets:Wallet -25.75 CAD
Expenses:Food 25.75 CAD
end apply fixed
is equivalent to this:
2012-04-10 Lunch in Canada
Assets:Wallet -15.50 CAD {=$0.90}
Expenses:Food 15.50 CAD {=$0.90}
2012-04-11 Second day Dinner in Canada
Assets:Wallet -25.75 CAD {=$0.90}
Expenses:Food 25.75 CAD {=$0.90}
I don't have my own experience with using ledger, in fact I am new to this world of command line tools and scripting, so apologies if my request does not make sense.
It is also great to include this functionality from ledger.cli as it allows to account all kind of things (stock trading, working hours, inventory in an online game) (There are several of those examples in the ledger.cli docs.
Just had exactly this issue trying to use this to track a characters assets in D&D as I can't use custom commodities (e.g. silver, gold, items)
It is rather confusing to reference ledger-cli so directly when the implementation does not use it for processing and only supports a limited amount of its file format.