Re: Is there a scriptable way to clear transactions past transactions with future bank statements ?

2019-09-24 Thread Jimi Damon


On 9/14/19 6:54 AM, o1bigtenor wrote:
> On Sat, Sep 14, 2019 at 8:42 AM Taylor R Campbell
>
>
>
>
>
>  wrote:; Order a batch of widgets.
> 2018-12-30 Acme Widgets
> Expenses:Widgets100 EUR
> Liabilities:Acme Widgets:Order #12837
>
> ; Write a cheque for the batch of widgets.
> 2019-01-05 Acme Widgets
> Liabilities:Acme Widgets:Order #12837   100 EUR
> Assets:Bank:Cheque:123   ;or Liabilities:Bank:Cheque:123
>
> ; Reconcile the bank statement.
> 2019-02-01 Bank statement
> Assets:Bank:Cheque:123  100 EUR
> Assets:Bank:Balance
>>
>>
>> I can understand why someone, a business owner, would want ALL THREE
>> pieces of information.
>> Part of the challenge is that your example is showing the distinction between
>> three different viewpoints.
>> The bank doesn't care when anything is happening. What is important to the
>> bank is when the 'instrument' is drawn (check is cashed) and that's
>> it. (The bank
>> does sorta care as its a right royal pita dealing with checks after a
>> stale date of
>> over 3 months today.)
>> Acme Widgets only cares that it gets its money.
>> Bookkeeper cares that the cleared check matches an expenditure.
>>
>> Reading back to the beginning of the thread - - - the desire was to
>> have some way
>> of tracking all points of reference (previously mentioned 3 + that of
>> the check writer)
>> easily. I don't really know of an 'easy' way - - -  just know I need to.
>>
>> Sorry for any confusion or misunderstanding caused!!
>>
>> Regards

Taylor answered this perfectly. Using ledger plus the correct command
line filtering , you get everything that you described

1. Bank's perspective

2. When the check was written

3. When the check cleared

The original post was about having the information in a format so that
"one" didn't have to edit ledger files to put in an Asterisks (*)  to
mark transactions as cleared.



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/f1799dfc-3b1b-0266-79ca-0d18f47619aa%40gmail.com.


Re: Auto-completion on Tab in Emacs?

2019-09-24 Thread Alexandre Rademaker


>From https://github.com/ledger/ledger-mode/pull/174, it looks like the 
>functionality was not removed but replaced by something that I didn’t 
>understand yet. It worked for me the code:

 (add-hook 'ledger-mode-hook
   (lambda ()
 (setq-local tab-always-indent 'complete)
 (setq-local completion-cycle-threshold t)))

But I am curious to understand the discussion above. Does anyone here knows 
what was the idea? What is the best solution for completion (mainly of account 
names in my case) in ledger mode?

Best,

--
Alexandre Rademaker
http://arademaker.github.io


> On 23 Sep 2019, at 16:16, Richard Lawrence  wrote:
> 
> Hi Oscar,
> 
> Oscar  writes:
> 
>> I can't seem to have auto-completion to work when I press tab in 
>> ledger-mode in Emacs . 
>> 
>> Previous versions I never had this problem. Is this a bug? It does indent 
>> but pressing tab doesn't do the autocomplete.
> 
> This was changed recently; I noticed it too when I recently upgraded
> ledger-mode.  Discussion here: https://github.com/ledger/ledger-mode/pull/174
> 
> To get (something like) the old behavior back, you can do:
> 
>  (add-hook 'ledger-mode-hook
>(lambda ()
>  (setq-local tab-always-indent 'complete)
>  (setq-local completion-cycle-threshold t)
>  (setq-local ledger-complete-in-steps t)))
> 
> I found that this solution was not quite satisfying; whatever the old
> version did to guess the ordering of completions was better. But I also
> recently decided to try out Ivy for completion; with ivy-mode on, I find
> this is enough:
> 
>  (add-hook 'ledger-mode-hook
>(lambda ()
>  (setq-local tab-always-indent 'complete)
>  (setq-local completion-cycle-threshold t)))
> 
> 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/6B1AE214-6CD2-495A-BFA7-B11F9FB33675%40gmail.com.


Re: Auto-completion on Tab in Emacs?

2019-09-24 Thread speedtapir
yes... you put it in the init.el file.

its not as great as the previous version but its pretty good . i mean it 
does the job

thanks..


On Tuesday, September 24, 2019 at 3:08:31 AM UTC+7, Oscar wrote:
>
> Hi Richard,
>
> Ah i see ...  Yes it seems to be a debatable topic. Thanks for pointing 
> the link .
>
> I personally liked the tab completion. Sorry, but my understanding of 
> emacs is a bit limited . Where do i add these codes ? In the init.el? 
>
>
>
>   (add-hook 'ledger-mode-hook
> (lambda ()
>  (setq-local tab-always-indent 'complete)
>   (setq-local completion-cycle-threshold t)
>   (setq-local ledger-complete-in-steps t)))
> ...
>
>
>
> On Tuesday, September 24, 2019 at 2:16:52 AM UTC+7, Richard Lawrence wrote:
>>
>> Hi Oscar, 
>>
>> Oscar  writes: 
>>
>> > I can't seem to have auto-completion to work when I press tab in 
>> > ledger-mode in Emacs . 
>> > 
>> > Previous versions I never had this problem. Is this a bug? It does 
>> indent 
>> > but pressing tab doesn't do the autocomplete. 
>>
>> This was changed recently; I noticed it too when I recently upgraded 
>> ledger-mode.  Discussion here: 
>> https://github.com/ledger/ledger-mode/pull/174 
>>
>> To get (something like) the old behavior back, you can do: 
>>
>>   (add-hook 'ledger-mode-hook 
>> (lambda () 
>>   (setq-local tab-always-indent 'complete) 
>>   (setq-local completion-cycle-threshold t) 
>>   (setq-local ledger-complete-in-steps t))) 
>>
>> I found that this solution was not quite satisfying; whatever the old 
>> version did to guess the ordering of completions was better. But I also 
>> recently decided to try out Ivy for completion; with ivy-mode on, I find 
>> this is enough: 
>>
>>   (add-hook 'ledger-mode-hook 
>> (lambda () 
>>   (setq-local tab-always-indent 'complete) 
>>   (setq-local completion-cycle-threshold t))) 
>>
>>
>> -- 
>> HTH, 
>> Richard 
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/9cf95d32-ce1f-4341-87af-a1cbb87e7369%40googlegroups.com.