Periodic transaction - end of month

2021-08-05 Thread Luka Bradesko
Hi,

how do I set up the periodic transaction that happens every end of month?
Something in the direction 
~every end-of-month

-- 

--- 
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/95bb03b9-a8af-482c-b976-c309a12c30ddn%40googlegroups.com.


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 and never contribute to the reported balance.

John

-- 

--- 
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/m2eeghmsdq.fsf%40newartisans.com.


periodic transaction

2021-03-14 Thread Banait Clinic
I am not getting how periodic transactions are added to ledger on windows 
using emacs. I tried these, but they don't seem to have effect on balance 

~ monthly 
liability: loan  50
asset:checking 

10/*/2021
liability: loan  50
asset:checking 

Kindly suggest

-- 

--- 
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/84597ca3-d11f-402f-b72f-f24f31064b2cn%40googlegroups.com.


reset balance in a periodic transaction

2015-03-23 Thread John Buxton
Hello, 

Can someone please tell me if it's possible to reset an account balance in 
a periodic transaction ?

For example:

~ yearly from 04/06
CumulativeMiles = 0


I get an error:

While parsing file /home/john/Documents/miles_test.ldg, line 2:
While parsing posting:
  CumulativeMiles   = 0


Error: Unexpected char '=' (Note: inline math requires parentheses)


Why do I want to do this ?

In the UK we have car business mileage rates at 45 pence per mile for the 
first 10,000 miles in each tax year, then 25 pence per mile after that. At 
the beginning of each tax year (which starts 6th April) the counter gets 
reset.

I'm hoping I can add some kind of value expression to a miles commodity 
which does the following:

   1. add the value to the cummulative miles
   2. convert the miles into £ as follows (pseudo code):
   
0.45 * max(0, min(new, 1) - old) +
0.25 * max(0, new - max(1, old))

where old is the old cummulative miles total and new is the new
cumulative miles total.

Perhaps I'm barking up the wrong tree here. Is this even possible with 
ledger ?

Thanks in advance,
John

P.S. I'm trying this with Ledger 3.1.0-20141005 on Centos7

-- 

--- 
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.
For more options, visit https://groups.google.com/d/optout.