Re: Grouping by account and total by month

2024-04-19 Thread John Wiegley
> "NT" == Nothing ToSee writes: NT> When I try to run this command: ledger --pedantic -f journal.lgr reg NT> expenses -b 2023-01-01 -X USD --no-revalued --group-by 'account' -M , the NT> transactions are grouped by account, but they are repeated in each account NT> starting from the second

Re: What could be the reason for this warning?

2024-02-02 Thread John Wiegley
> "lf" == lipp f writes: lf> Getting many warnings like this: lf> Warning: "/mnt/e/Data/Invest/data//ldg-t14/t14.j", line 27591: lf> Transaction check failed: (commodity == "TDB164") Elsewhere in your file do you have a ‘check’ directive that is assertion some condition for each of your

Re: fixed lot prices

2024-01-05 Thread John Wiegley
> "TO" == Tavis Ormandy writes: TO> 09-Jan-01 Shell Expenses:Gasoline 11 GAL {=$2.299} 11 GAL {=$2.299} TO> Assets:Checking$-25.29 $-25.29 TO> 11 GAL {=$2.299} TO> TO> Shouldn't it

Re: Filtering by commodity issue

2023-12-15 Thread John Wiegley
> "lf" == lipp f writes: lf> I have a commodity called "T 210618C0003" and I want to filter the lf> register by this commodity. lf> When I use "like" operator it works fine but when I use equal operator lf> does not work. Any advice? That’s very interesting. The quotes are part of

Re: Capital gain records

2023-12-14 Thread John Wiegley
> "lf" == lipp f writes: lf> Sorry, my question was if there is  a way to automate this. I have more lf> than 2000 transactions and doing that manually is not really an option. I see, I wrote a Haskell program to generate these entries from a CSV file. I don’t know of any automation that

Re: Capital gain records

2023-12-14 Thread John Wiegley
> "lf" == lipp f writes: lf> I'm importing all transactions from my broker. They are buy / sell lf> securities. Is there a easy way to create the capital gain records? For purchases, just to be sure to record the price at purchase of the late. For sales, you need to record the price of the

Re: Error: Only one posting with null amount allowed per transaction

2023-11-30 Thread John Wiegley
> "RM" == Roger Mason writes: RM> touch my.ledger RM> ledger convert /home/rmason/Personal/Finances/PlainText/foo.csv -f /home/rmason/Personal/Finances/PlainText/my.ledger RM> While parsing file "/home/rmason/Personal/Finances/PlainText/foo.csv", line 1: RM> While parsing CSV line: RM>

Apologies about the spam

2023-11-28 Thread John Wiegley
Somehow a user who had posted valid content in the past had their account taken over and was able to submit a lot of spam. They've been banned and the spam reported. John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from

Re: Error: Only one posting with null amount allowed per transaction

2023-11-27 Thread John Wiegley
> "RM" == Roger Mason writes: RM> If I run: RM> ledger convert foo.csv -f ./my.ledger RM> I get: Error: Cannot read journal file RM> "/usr/home/rmason/Personal/Finances/PlainText/foo.csv" Can you try with absolute paths for both files? John -- --- You received this message because

Re: Error: Only one posting with null amount allowed per transaction

2023-11-22 Thread John Wiegley
> "RM" == Roger Mason writes: RM> I don't know what information you need but this is the top few lines of RM> the CSV file: RM> date,description,debit,credit RM> 2023-11-20,"Point of Sale - Interac RETAIL PURCHASE 01553028 CIRCLE K # 252",100.54, RM> 2023-11-20,Point of Sale - Interac

Re: Make "reg" output the account balance

2023-11-22 Thread John Wiegley
> Ondřej Čertík writes: >> Does something like `--display-total account.total` help? > It doesn't seem to show the correct totals. Consider: Hmm… this doesn’t seem like something that the ‘reg’ report will ever be able to do, since it’s designed around a running total that reflects the

Re: Error: Only one posting with null amount allowed per transaction

2023-11-22 Thread John Wiegley
> "s" == sprock writes: s> I'm getting this error: s> While parsing file "/usr/home/sprock/Personal/Finances/ledger.csv", line 1: s> While parsing CSV line:   2023-11-20,Point of Sale - Interac RETAIL s> PURCHASE 01553028 CIRCLE K # 252,100.54, s> Error: Only one posting with null

Re: Make "reg" output the account balance

2023-11-15 Thread John Wiegley
> "OČ" == Ondřej Čertík writes: OČ> Does anybody know how to do that? Does something like `--display-total account.total` help? John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving

Re: Force balance report to always put sub accounts in own node

2023-10-11 Thread John Wiegley
> "NS" == Nikita Skobelevs writes: NS> --empty seems relevant but not quite what I'm looking for. NS> It would help in the above example if I already had some account NS> Baz:* that was 0 and not displayed, but in this case Foo is the only NS> subaccount in Baz so --empty doesn't change how

Re: Force balance report to always put sub accounts in own node

2023-10-09 Thread John Wiegley
> "NS" == Nikita Skobelevs writes: NS> I was wondering if it's possible to force the balance report to NS> always have sub accounts as new nodes in the indented tree even if NS> there's only 1 sub account? Either with some flag or custom NS> --balance-format? Does --empty does what you

Re: Ledger turns 20 today!

2023-09-29 Thread John Wiegley
Thank you for noticing, Alexis! Indeed, it did begin that long ago, originally as a CVS repository on my G4 MacBook at the time. I was staying at my brother's house in San Jose for a few weeks while looking for an apartment, living off savings, which is what made knowing my financial situation

Re: Is there any way to do a currency conversion with "ledger csv"

2023-09-12 Thread John Wiegley
> "lf" == lipp f writes: lf> Using "reg": lf> $ ledger reg INV:Assets:External -X CAD  lf> I'm getting 1230 lines like this: Ah, try the --no-revalued option. John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from

Re: Is there any way to do a currency conversion with "ledger csv"

2023-09-11 Thread John Wiegley
> "lf" == lipp f writes: lf> $ ledger csv INV:Assets:External -X CAD -V | csvcut -c 1,6,5 The -X and -V options are mutually exclusive, so I would use only “-X CAD”. Maybe you can use it with the register command, to find out what all of those entries are that it’s reporting? John --

Re: Owner withdrawals in journal?

2023-09-07 Thread John Wiegley
> "MJ" == Michael Jones writes: MJ> Owner withdrawals - I mean money that I take out of my business each MJ> month. It sounds like an asset transfer, from the company’s assets to your assets, is that about right? John -- --- You received this message because you are subscribed to the

Re: Owner withdrawals in journal?

2023-09-07 Thread John Wiegley
> "MJ" == Michael Jones writes: MJ> Apologies if this has been asked before. I'm just staring out with Ledger MJ> and have got a bit stuck. MJ> I'm not quite sure I understand how to enter owner withdrawals in my MJ> journal. I know it's not an asset or a liability. What type of account is

Re: Subtracting subtree values

2023-08-12 Thread John Wiegley
Won’t that option collapse the sub account balances into the parent? John On Sat, Aug 12, 2023, at 12:41 PM, david kayal wrote: > Why not use —collapse? > > On Sat, Aug 12, 2023 at 12:27 PM John Wiegley wrote: >> >>>>> "DC" == Dillan Chang write

Re: Subtracting subtree values

2023-08-12 Thread John Wiegley
> "DC" == Dillan Chang writes: DC> If you run bal Assets, you currently get: DC> $100.00   Assets:Checking DC> $30.00       Virtual-A DC> $70.00       Virtual-B You’d need to run: ledger bal -T amount '^Assets$' In order to report amounts, not aggregate totals, and to confine your

Re: Register Report Output

2023-07-16 Thread John Wiegley
> "J" == Jasel17212 writes: J> I looked through the manual and didn’t see an option for this, but hoping J> someone knows of a way to produce a register report and force ledger to J> print the payee on every line. If you look at the register-format that’s defined in report.h, it contains a

Re: Sync Ledger with the MyExpenses Android App

2023-06-20 Thread John Wiegley
> "I" == IanTwenty writes: I> Just want to let you know about a new script I wrote that lets you I> sync your ledger files with the android app MyExpenses. It's open I> source (GPL3.0) and written in BASH for Linux: This is great to hear about, thank you! John -- --- You received this

Re: Multiple Currencies: Budgeting

2023-06-11 Thread John Wiegley
> "SAN" == Scott A Nichols writes: SAN> Note: Everything else works perfect for me in ledger using multiple SAN> currencies (data input, running reports, and so forth), the only thing SAN> I'm struggling with is budgeting. I want it to work exactly (or at least SAN> very similar) to the

Re: Printing to stdout

2023-06-11 Thread John Wiegley
> Alexis writes: > * Should ledger really be looking for and use less if PAGER is unset? Isn't > the absence of PAGER and indicator that the user prefers their output > straight to the terminal? I don’t think it should. If PAGER is not set, it shouldn’t use a pager… > * When looking for

Re: Printing to stdout

2023-06-10 Thread John Wiegley
> "BW" == Bob Wilson writes: BW> --no-pager works. Terminology in hand, the guide suggested looking at the BW> LEDGER_PAGER environment variable, which is unset on my platform. BW> I installed via homebrew (I'm on macos 13.4). Perhaps some detail on how BW> they compiled ledger is relevant?

Re: Reducing repetition/duplication of amount value in entries

2023-06-10 Thread John Wiegley
> "VA" == Viraj Alankar writes: VA> Something I was a bit confused about. If I change the automated VA> transaction to: VA> = "Liabilities:Apple Card" and has_tag("cashback") This is a bug in the query parser, which you can see by running: ledger query '"Liabilities:Apple Card" and

Re: Printing to stdout

2023-06-10 Thread John Wiegley
> "BW" == Bob Wilson writes: BW> Previously, running a command like `ledger -f ledger.dat balance ^ Assets` BW> would print results directly to the screen and return me to the prompt, BW> but now that same command prints results to some kind of temporary screen BW> that disappears when I hit

Re: Reducing repetition/duplication of amount value in entries

2023-06-09 Thread John Wiegley
> "VA" == Viraj Alankar writes: VA> I found one way that I think should work: VA> = "Liabilities:Apple Card" and %cashback VA> Assets:Apple Cash (-tag("cashback")) VA> Income:Credit Card Rewards (tag("cashback")) VA> 2023/06/06 McDonalds VA> ; cashback:: 0.02 VA>

Re: Strange sorting when using --market and multiple currencies

2023-04-14 Thread John Wiegley
> "VA" == Viraj Alankar writes: VA> Hm, strange it gives me a segmentation fault: VA> ledger -f ledger.ledger --price-db prices.db -Y -V -c --period-sort ' VA> (display_amount)' -b "2023" register ^expenses VA> Segmentation fault Using this same options with my own data, I didn't not see a

Re: Strange sorting when using --market and multiple currencies

2023-04-14 Thread John Wiegley
> "VA" == Viraj Alankar writes: VA> I'm trying to understand why sorting by amount doesn't seem to work VA> right when using multiple currencies and --market: VA> ledger -f ledger.ledger --price-db prices.db -Y -V -c --period-sort ' VA> (amount)' -b "2023" register ^expenses Please try

Re: Balance comparing date with date/time

2023-04-11 Thread John Wiegley
> "PFS" == Paulo Flabiano Smorigo writes: PFS> If I pass a date in --display to register command, like below, it works PFS> fine. $ ledger reg -d "d>=[2023-04-01] and d<[2023-05-01] PFS> If I use the same argument with the balance command, it fails: PFS> $ ledger bal -d "d>=[2023-04-01]

Re: divide by zero processing transaction

2023-03-23 Thread John Wiegley
> "MM" == Martin Michlmayr writes: MM> Yeah, I thought "format" was for *display* precision only, so it doesn't MM> make sense that this cuts off precision. Am I misunderstanding "format?" This has been fixed in https://github.com/ledger/ledger/pull/2224. Good find! John -- --- You

Re: Updating Ledger's dependencies regularly

2023-03-22 Thread John Wiegley
> "A" == Alexis writes: A> A conservative approach—possibly maintaining overly high backwards A> compatibility—could be to decide that once a year Ledger's dependencies are A> updated to the latest version of each dependency that is 4 years old. I think I definitely fall on the

Re: Register filter for a specific currency

2023-02-23 Thread John Wiegley
> "PFS" == Paulo Flabiano Smorigo writes: PFS> Is this a bug or the expected result? If this is expected, how can I use PFS> a register filter to show only the entries in a specific currency that PFS> also works with --market argument? It looks like there is no predicate that's "late"

Re: Unexpected balance verification

2023-02-23 Thread John Wiegley
> "'WvL" == 'Dave Webb' via Ledger writes: 'WvL> I found a transaction in my ledger for which I think balance 'WvL> verification should fail but ledger accepts it. I am using 3.3.0. 'WvL> Here is a simplified example of what I found 'WvL> 2016-08-19 OpeningBalances 'WvL>   Assets:Cash  £ 3

A feature idea: An alternative org-mode input format

2023-02-09 Thread John Wiegley
Hi all, I was thinking of creating a separate tool for translating specially formatted Org-mode files into Ledger files. For example, this entry: 2023-01-10 Adobe Acrobat Pro ; ID: 076497DC-45F7-43EC-BFDA-00177EFC3C0D ; CREATED: [2023-01-25 Wed 21:40]

Re: [ANNOUNCE] ledger 3.3.0

2023-02-08 Thread John Wiegley
> "A" == Alexis writes: A> Thank you Martin for driving this release! It's been long overdue, so great A> to see all these fixes and improvements finally being officially released. Yes, thank you so much to Martin and everyone who was a part of it! John -- --- You received this

Re: Query Help

2023-02-08 Thread John Wiegley
> "J" == Jasel17212 writes: J> I'm using zsh so entered: J> ledger reg ^exp and "(%tag1 | %tag2)"  Sadly, it has to be more separated than this: ledger reg ^exp and '(%tag1' '|' '%tag2)' It's a bug to me that the query parser interprets "(%tag1 | %tag2)"  as if you had written

Re: Query Help

2023-02-07 Thread John Wiegley
> "J" == Jasel17212 writes: J> Is there a shorthand way to write the following query? J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr J> "has_meta('tag2')" You may need to escape it from your shell, but this should do it: ledger reg ^exp & (%tag1 | %tag2) J> ledger

Re: Stats Report Failure

2023-02-03 Thread John Wiegley
> "J" == Jasel17212 writes: J> Is this a bug? Other than commenting out the automatic transaction, is J> there a workaround? Any assertion failure is always a bug. John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe

Re: How do period expressions work with --begin and --end?

2023-02-03 Thread John Wiegley
> "MB" == Marcin Borkowski writes: MB> Is that correct? Also, is it documented somewhere? Try the "ledger period EXPR" command, which will tell you how Ledger interprets any given date expression. Not sure if this debugging subcommand is documented... John -- --- You received this

Re: Two questions about budgeting

2023-02-03 Thread John Wiegley
> "MB" == Marcin Borkowski writes: MB> 1. I can do MB> ~ Daily from 2022-01-01 to 2023-01-01 MB> ~ Daily from 2023-01-01 MB> (the intervals are closed-open, like with -b/-e). Right? Yes, intervals should always be closed-open, everywhere. MB> 2. The --invert option does nothing for the

Re: How to compute average monthly expenses?

2023-01-27 Thread John Wiegley
> "MB" == Marcin Borkowski writes: MB> Thanks for the answer, but that still does not explain the "450" figure MB> for me. Of course, the total is 2700, so I assume Ledger divided it by 6 MB> -- but why 6? Hmmm.. good question, I wonder where that count is coming from. MB> (Also, since

Re: Two questions about budgeting

2023-01-27 Thread John Wiegley
> "MB" == Marcin Borkowski writes: > 1. Why is there no "budget transaction" for groceries for 2022-01-01? Use this: ~ Daily from 2022-01-01 > 2. I would assume that after these three days my "books" budget should >allow me to spend 155 PLN more on books and my "food" budget would

Re: Assertion failure in unistring

2023-01-25 Thread John Wiegley
> "TO" == Tavis Ormandy writes: TO> Hello! I've been hitting an assertion when experimenting with register TO> formats: $ ledger --file finance.dat reg -F '%12(total)' Error: Assertion TO> failed in "/build/ledger-SR1_DQ/ledger-3.1.3/src/unistring.h", line TO>

Re: How to compute average monthly expenses?

2023-01-23 Thread John Wiegley
> o1bigtenor writes: > That - sir - - - -begs the question - - - what is 'average' supposed to do? Average just takes the number of entries in a group, and divides the total by the count. Here's the implementation: OPTION_(report_t, average, DO() { // -A OTHER(empty).on(whence);

Re: How to compute average monthly expenses?

2023-01-23 Thread John Wiegley
> "MB" == Marcin Borkowski writes: MB> What is going on here? (Obviously, I expected 900 PLN monthly average.) MB> Even more unexpectedly, when I use -p "last year", the result is exactly MB> the same (and I would expect 300 PLN then). I'm not sure that "--average" has ever done what

Re: Planning new ledger release

2023-01-20 Thread John Wiegley
> "MM" == Martin Michlmayr writes: MM> I've been saying for months that we need a new release of ledger. There MM> have been a lot of fixes in the last ~2 years. MM> If anyone has pending fixes or contributions, please open PRs now. I definitely support this, and will devote time this

Re: How to split expenses

2023-01-09 Thread John Wiegley
> "AR" == Alexandre Rademaker writes: AR> I am traveling friends. We are splitting some expenses like the car AR> rental, full, some restaurants etc. but I also want to record how I paid AR> each expense (credit card, cash etc). Idea? What is the best practice? I usually do something like

Re: Automated transaction amounts "doubled"

2022-11-10 Thread John Wiegley
> "RS" == Robert Shanley writes: RS> journal.txt: RS> = expr payee == "Joe" RS> SetAside$100 RS> MoreMoney -$100 RS> 2022/01/05 * Joe RS> Stuff $600.00 RS> Checking RS> ledger -f journal.txt balance : RS>

Re: squash weekly totals across sub-accounts?

2022-11-09 Thread John Wiegley
> "A" == Alan writes: A> I have some of my Expense accounts organized hierarchically. For example, A> rather than simply "Expenses:Food" I have a few accounts, such as: A> Expenses:Food:Groceries A> Expenses:Food:Chicken A> Expenses:Food: ... (a few others) A> But now I would

Re: Function to regex match accounts in a transaction?

2022-10-30 Thread John Wiegley
> Martin Michlmayr writes: > You want to --group-by the Assets: account to find on which broker account > you received dividends, e.g.: > bal Income:Dividends --group-by get_account("^Assets:Broker") I'm not sure this means what you expect it to mean... --group-by EXPR evaluates EXPR

Re: is this a bug?

2022-08-31 Thread John Wiegley
> "LF" == Lipp F writes: LF> Thanks John. I am wondering if you can be more specific. I have tried to LF> add -G to "ledger reg" and it throws an error - "Error: Cannot add a LF> sequence to an integer" LF> I am looking to get a list with account values, it could be either balance LF> or

Re: is this a bug?

2022-08-30 Thread John Wiegley
> "lf" == lipp f writes: lf> Those are investment / trading accounts and, although there are no always lf> transactions for the last day, the value of the accounts always change due lf> to daily changes for prices of securities held. There are daily entries in lf> the pricedb for all

Re: is this a bug?

2022-08-30 Thread John Wiegley
> "lf" == lipp f writes: lf> "ledger reg" command is missing records at the end. I am running these on lf> Aug 31. For acc1 the last row is 2022-08-21 (2 weeks missing) and for acc2 lf> the last row is 2022-07-03 (9 weeks missing). Is this a bug? Any lf> workaround? And you have

Re: Time tracking: time formatting and hourly rates

2022-05-25 Thread John Wiegley
> "CT" == Carl Tappan writes: CT> 1.) Is it possible to enter time in "HH:MM" format? Converting to decimal CT> hours is clunky, and the various timeclock options don't fit my workflow CT> well. I know that I can add a timelog entry with "time in" and "time out", CT> but ideally I'd be able

Re: Check balance of account and all its children

2022-05-07 Thread John Wiegley
> "JJ" == J J writes: JJ> O - The total of all postings seen so far, or the total of an account and JJ> all its children. I would just use "total". The O syntax is from the old version of value expressions. Does that work? John -- --- You received this message because you are

Re: Ledger Convert should add an amount to the stated account, not the guessed account

2022-04-15 Thread John Wiegley
> "JJ" == J J writes: JJ> The proposed change would instead have Ledger provide the amount on the JJ> given account and elide the expense side. This way, a user can easily add JJ> new expense lines to make a split. Sounds like a great feature request to me! John -- --- You received

Re: Crypto Chart of Accounts setup (staking, DeFi, impermanent loss etc).

2022-02-07 Thread John Wiegley
> "DM" == Daryl Manning writes: DM> Interesting. I was rather hoping there was something like Reckon that DM> could suck in csvs from the various CEX and DEX exports (where they have DM> them) and then figure out how to write the entries in Ledger themselves. DM> (tho recognize that this

Re: Crypto Chart of Accounts setup (staking, DeFi, impermanent loss etc).

2022-02-06 Thread John Wiegley
> "DM" == Daryl Manning writes: DM> Your comment about different staking schemes is interesting though. DM> Did you find ledger-cli just impossible to support those in? (to my DM> initial question, really.). Ledger can represent them, but it ends up being a very manual affair. The objective

Re: Crypto Chart of Accounts setup (staking, DeFi, impermanent loss etc).

2022-02-05 Thread John Wiegley
> "DM" == Daryl Manning writes: DM> Would love to see some examples or descriptions (or pointers to blog DM> posts) of how you might be cleverly handling the issue(s) since I need to DM> get this sorted relatively soon and realize my current setup is DM> inadequate. (also, end up using

Re: [Entries that are expressions]

2021-12-30 Thread John Wiegley
> "UB" == Uwe Brauer writes: UB> 2010/07/23 User2:User1-Compensation UB> expenses:User2:User1-Compensation ((110-60)*0.5) UB> expenses:User1:User1-Compensation UB> Does not work! I'm not entirely sure why, but Ledger doesn't like the absence of spaces around the '-' sign. This does

Re: currency trading accounts

2021-12-29 Thread John Wiegley
> "PB" == Pierre Bastoul writes: PB> I'm working on tracking my cryptocurrencies trades with ledger-cli as PB> described in the "Multiple currencies with currency trading accounts " PB> wiki page. I'd like to note that my trade-journal project: https://github.com/jwiegley/trade-journal

Re: Invoicing (feature request??)

2021-12-28 Thread John Wiegley
> "o" == o1bigtenor writes: o> Maybe I'm just slow but I can't think of how to write things so that I can o> do all the things I need to do to an invoice. (tracking, aging, closing, o> etc etc) in ledger. There may be some way but I'm not seeing it. o> Maybe trying to add this to ledger

Re: Invoicing (feature request??)

2021-12-28 Thread John Wiegley
> "o" == o1bigtenor writes: o> So things like invoice aging and tracking are just 2 things to be able to o> do. These sound like great features to add to the Ledger ecosystem, but I would be hesitant to integrate them into the Ledger "core", where there is intentionally very little

Re: Currency Designator/Reporting Issues

2021-11-08 Thread John Wiegley
> "J" == Jasel17212 writes: J> As mentioned in my original post, running the report with -X USD produces J> the expected output. It sounds like I've stumbled upon a bug related to the J> -V option. Yes, could very well be. Really the -V should be removed, I think, but it's been relatively

Re: Currency Designator/Reporting Issues

2021-11-07 Thread John Wiegley
> "o" == o1bigtenor writes: o> Any ideas on what’s happening here? I'm not sure what's going on, but -V tries to be smart and maybe it's failing in your case. What happens if you use "-X USD" instead? John -- --- You received this message because you are subscribed to the Google

Re: investment reporting

2021-10-24 Thread John Wiegley
The gain option may not work with -M or -X On Sun, Oct 24, 2021, at 11:54 AM, lipp f wrote: > It does not work, throws different errors: > > $ ledger reg Assets:Investment -p 2021 -X USD -M --gain > While calling function 'get_at (CAD 97.45000 > -2,234.66891242292 USD, 1)': > Error: Attempting

Re: investment reporting

2021-10-24 Thread John Wiegley
> "lf" == lipp f writes: lf> Assuming that all the investments are in Assets:Investment, how do I get a lf> weekly / monthly report for realized / unrealized gains? lf> I have tryed lf> $ ledger reg Assets:Investment -p 2021 -X USD -M --unrealized lf> and it is not showing the proper

Re: Looking for Formal Specification

2021-10-16 Thread John Wiegley
> "ДП" == Дмитрий Поляков writes: ДП> Have ledger something like paper or document that describe so-called ДП> "Ledger Data Structure" with corresponding methods or something like this? Great question; I don't think anything like this exists, at least for the C++ version of the project.

Re: ledger python module documentation

2021-10-05 Thread John Wiegley
> "MM" == Martin Michlmayr writes: >> I have seen python/demo.py in the distribution but I am looking for >> somethin more detaled. Like a standard python module documentation. >> >> Is it available anywhere? TIA. MM> Unfortunately not. There's just the code, in the py*.cc modules, from

Re: Is it possible to abbreviate very large numbers? Using megs (M), kilos (K), etc? (EOM)

2021-09-17 Thread John Wiegley
> "FM" == Felipe Mica writes: FM> The ledger-cli starts to ignore the conversion. FM> It seems a bug behavior. I agree that this sounds like a bug. --exchange should always take priority, if a conversion exists into your desired display commodity. John -- --- You received this message

Re: Timeclock transactions balanced?

2021-09-14 Thread John Wiegley
> "CM" == Cassie McCarthy <759...@gmail.com> writes: CM> Is this possible to do still? I know I'm 10 years late but I am also CM> having this issue. I don't think anything has changed with time reporting since then. :( John -- --- You received this message because you are subscribed to

Re: GitHub workflows for ledger CI - help required

2021-09-14 Thread John Wiegley
> "MM" == Martin Michlmayr writes: MM> I removed the Travis hook already but I can't figure out how to remove the MM> Travis requirement for pull requests. Do you know how? I've removed the Travis requirement. It was in the Branch protection settings, under "Status checks". John -- ---

Re: Is it possible to abbreviate very large numbers? Using megs (M), kilos (K), etc? (EOM)

2021-09-14 Thread John Wiegley
> "CD" == Colin Dean writes: CD> You should be able to use commodity equivalencies to solve this problem to CD> a degree, but it won't be automatic based on the magnitude in context, CD> only whatever you set as the exchange, I think. Actually, it should adjust the magnitude dependent on

Re: Termux Ledger package now supports Python

2021-06-15 Thread John Wiegley
> "R" == Randy writes: R> I noticed that Ledger wasn't compiled with Python support in the R> Termux package on Android, so I made a pull request and it has just R> been accepted. Now you can do Python stuff with Ledger in Termux. R> Just thought I'd share the news in case anyone was

Re: periodic transaction

2021-03-14 Thread John Wiegley
> "BC" == Banait Clinic writes: BC> I am not getting how periodic transactions are added to ledger on windows BC> using emacs. I tried these, but they don't seem to have effect on balance Periodic transactions are only used for budgeting and forecasting; they are not "actual" transactions

Re: Updating lot information for an automated transaction

2021-03-07 Thread John Wiegley
> "s" == samt writes: s> Any guidance on this? It would really help me a lot to have the sale date s> and sale price of each of these "Sold Lots" lots. I need to be able to s> determine the fraction of the capital gain that was earned in the calendar s> year of the sale (i.e. (asset sale

Re: Year end date

2021-02-22 Thread John Wiegley
> "DS" == Dan Sladden writes: DS> But none of this does what I want - a single list of tallied DS> transactions for each financial year from one ledger command. Yes, I DS> can do it by executing multiple commands with different -b and -e DS> arguments, but that's IMHO not very elegant. Have

Re: ledger

2020-10-17 Thread John Wiegley
> "EL" == Ed Laux writes: EL> It will put entries for that day in amount order. When you say "it will put", can you tell me which command you're running? And if you have a ~/.ledgerrc with anything in it? John -- --- You received this message because you are subscribed to the

Re: Custom format to remove the currency

2020-10-17 Thread John Wiegley
> "JD" == Jimi Damon writes: JD> Thanks for that...also you solved a problem for me with roundto. Why is JD> roundto() so sensitive to spaces in it's argument ? JD> This works JD> roundto(amount, 2 ) JD> but this doesn't ?? JD> roundto(amount,2) Well, comma might be a European decimal

Re: ledger

2020-10-16 Thread John Wiegley
> "EL" == Ed Laux writes: EL> If I post say 10 transactions of various amounts on a certain day - how do EL> I get the system to stop putting the transactions in amount order? I want EL> to keep them in the order as I enter them. What is amount order? The 'register' and 'print' commands in

Re: Historical balance

2020-09-15 Thread John Wiegley
> "JF" == Jun Furukawa writes: JF> I have one thing that I can’t find a good way to do this. JF> ‘ledger b bankname’ will show the latest balance of the asset, but I JF> want to get a list of ending balance for each month (not sum of cash JF> in and out) JF> What I want to get is some like:

Re: Forecasting beginning in the future

2020-09-13 Thread John Wiegley
> "A" == Alan writes: A> Is it correct to glean from this that it doesn't work to give a "from" date A> in a periodic transaction? I was trying to do so, but I was not able to A> make it work. I would definitely expect periodic transactions to accept date ranges.

Re: Question for users

2020-09-08 Thread John Wiegley
> "o" == o1bigtenor writes: o> Mr John - - - - - would there be a relatively easy way of using printed bar o> codes as account numbers? Since an account name can be pretty anything at all, I don't see why not. :) John -- --- You received this message because you are subscribed to the

Re: data formats for ledger convert

2020-07-20 Thread John Wiegley
> "o" == o1bigtenor writes: o> You may wish to consider using the ISO date/time format  - - - - - your  o> example would look like   20160805T0850   . Ledger currently does not track the time of a transaction, although you're free to record that information bin metadata. John -- ---

Re: data formats for ledger convert

2020-07-15 Thread John Wiegley
> "J" == Joel writes: J> The ledger manual gives a bit of guidance for csv conversion of data J> formats. J> Can ledger convert handle dates such as this:  Aug. 05, 2016, 08:50 AM I think if you set --input-date-format correctly, you should be able to achieve this. John -- --- You

Re: amount multipliers based on the value of a tag

2020-06-23 Thread John Wiegley
> "mm" == mail mitko writes: mm> Can an "amount multiplier" in an "automated transaction" be based on the mm> value of a tag? Sounds like an interesting idea. You'd have to use this: (Me->Roommate)(to_val(tag("SHARED"))) Not sure if it works, though! John -- --- You

Re: --date-format

2020-05-26 Thread John Wiegley
> "MM" == Martin Michlmayr writes: MM> * Joost Kremers [2020-05-26 14:33]: >> So I think ledger-mode should not use ledger's `--date-format` for >> *reading* MM> I don't use ledger-mode but based on your description it sounds like it MM> should use --input-date-format instead. Sounds

Re: [ANNOUNCE] ledger 3.2.1

2020-05-20 Thread John Wiegley
> "MM" == Martin Michlmayr writes: MM> - Fix regression with expression evaluation by reverting commit MM> `Correction to the way parens are parsed in query expressions` (bug #1894) MM> - Fix --invert breakage by reverting commit `Change --invert to invert MM> displayed amounts and totals,

Re: Is it possible to query an account note?

2020-05-20 Thread John Wiegley
> "dw" == david whiting writes: dw> ledger.dat reg expr "note =~ /1234/" It would be "tag("ID") =~ /1234/", for your example. Which is also what '%ID=1234' should mean. John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe

Re: Expressions in ledger, query interface

2020-05-11 Thread John Wiegley
> "MM" == Martin Michlmayr writes: MM> So the command line expects a "query", which can be a regex, @regex, MM> %regex. Or you can add an expression with "expr EXPRESSION". Anything else MM> that is allowed as a query? (And is "query" the right word, or what are MM> those things that are not

Re: Archiving Previous Years

2020-05-10 Thread John Wiegley
> "J" == Joel writes: J> Is there a way to do this that carries cost basis forward for transactions J> with commodities or currencies where one wants to track the cost basis? Or J> must I manually run a report with the lot information and then add that to J> the opening balances statement?

Re: Stock/Commodities fee posting positions and cost basis

2020-05-09 Thread John Wiegley
> "o" == o1bigtenor writes: o> The example here you are putting the inside the transaction o> information. Would you also use this technique in a currency exchange o> transaction (transaction done in a different currency than the ledger's o> 'base currency)? Sure. I also use the "lot

Re: Stock/Commodities fee posting positions and cost basis

2020-05-08 Thread John Wiegley
> "o" == o1bigtenor writes: o> A semantical question - - - - AIUI what you are referring to in the above o> is a 'stock' not a 'commodity' - - - yes? I guess I'm mixing Ledger terminology with market terminology. To Ledger, everything is a commodity. But yes, in this particular case, the

Re: Stock/Commodities fee posting positions and cost basis

2020-05-07 Thread John Wiegley
> "JS" == Joel Swanson writes: JS> Does posting order affect stock or commodity cost basis in Ledger? JS> Is that really the desired behavior, where changing the order of postings JS> changes the items for which ledger tracks lots? Does this have something JS> to do with which postings are

Re: Newbie questions

2020-05-07 Thread John Wiegley
> "NC" == Nikos Charonitakis writes: NC> I ll try to see what is wrong with my file because i set stock prices with NC> eg @ EUR 20 when i first recorded (opening balance) my assets, and after NC> your reply i set at the end of my file P 7/5/2020 STOCK_NAME EUR 20 but NC> even this does not

Re: Newbie questions

2020-05-07 Thread John Wiegley
> "NC" == Nikos Charonitakis writes: NC> a) Is it possible to change the number format when entering transactions? NC> Ledger uses , for thousands and . for decimal. Can we use (and how) them NC> the opposite way: (.) for thousands and , for decimal? Ledger uses whatever it sees you use.

  1   2   3   4   5   6   7   8   9   10   >