Automated Transactions not working

102 views
Skip to first unread message

Marcos

unread,
Apr 3, 2016, 5:54:08 AM4/3/16
to Ledger





=~ Monthly from 2014/01
 
Assets:Current:Bank  US$ 500.00
 
Revenue:Rental

~ Monthly from 2014/01
 
Assets:Current:Bank  US$ 500.00
 
Revenue:Rental

2014/03/01 Foodd Expenses
    Expenses:Food:Subway  US$ 3.40
    Assets:Cash:Bank





When I run the following command:-

 bal -p 2014/04


I dont see any of the automated transactions in effect.
Why?





Marcos

unread,
Apr 3, 2016, 8:46:55 AM4/3/16
to Ledger
I have been trying and testing but cant seem to understand why it wont work!



= Income:Sales
 
Liabilities:Tax Payable  0.1  ; 10% VAT


2014/03/01  Sales
 
Income:Sales  USD -2,000.00
 
Assets:Bank:  USD 2,000.00




 


The error i get is transaction does not balance.
What entries am I missing here?

Tobias Pfeiffer

unread,
Apr 3, 2016, 9:26:32 AM4/3/16
to ledge...@googlegroups.com, niteg...@gmail.com
Hi,

On Sun, 3 Apr 2016 05:46:54 -0700 (PDT) Marcos wrote:
> = Income:Sales
> Liabilities:Tax Payable 0.1 ; 10% VAT
>
> 2014/03/01 Sales
> Income:Sales USD -2,000.00
> Assets:Bank: USD 2,000.00
>
> The error i get is transaction does not balance.
> What entries am I missing here?

If you apply that automated transaction, your transaction would be
transformed to

2014/03/01 Sales
Income:Sales USD -2,000.00
Assets:Bank: USD 2,000.00
Liabilities:Tax Payable USD -200.00

and these postings do not sum up to zero. You would have to define
where that additional money comes from.

= Income:Sales
Liabilities:Tax Payable 0.1 ; 10% VAT
Assets:Bank -0.1

or so should work.

> > =~ Monthly from 2014/01
> > Assets:Current:Bank US$ 500.00
> > Revenue:Rental
> >
> > ~ Monthly from 2014/01
> > Assets:Current:Bank US$ 500.00
> > Revenue:Rental
> >
> > 2014/03/01 Foodd Expenses
> > Expenses:Food:Subway US$ 3.40
> > Assets:Cash:Bank
> >
> > When I run the following command:-
> >
> > bal -p 2014/04
> >
> > I dont see any of the automated transactions in effect.
> > Why?

These are not automated transactions, but periodic transactions. They
are only used for forecasting and budgeting.

Tobias
signature.asc

Marcos

unread,
Apr 3, 2016, 11:28:31 AM4/3/16
to Ledger, niteg...@gmail.com, tgpfe...@web.de
Hi Tobais,
Thank you so much. It makes more sense now.

Marcos

unread,
Apr 3, 2016, 11:37:01 AM4/3/16
to Ledger, niteg...@gmail.com, tgpfe...@web.de
Hi Tobias,
How would I show an automated monthly income into Assets:Bank account?
Lets say a fixed amount of US$100.00 starting 2014/01 .
I just cannot seem to understand what is the correct expression
Appreciate if you could help me. 

Marcos

unread,
Apr 3, 2016, 11:46:41 AM4/3/16
to Ledger, niteg...@gmail.com, tgpfe...@web.de
Hi,
I read the manual again and now its starting to make more sense

= expr true  ;  (needs an '=' to be automated transaction) and then expression has to be true
Foo $50.00 ; accounts that need the automation to be made
Bar $-50.00 ; 2nd double entry transaction.



Ok make sense now a bit.

= monthly Income
Income:Salary  US$-100.00
Assets:Bank  US$100.00


Is the expression above ok?

Tobias Pfeiffer

unread,
Apr 9, 2016, 10:30:38 AM4/9/16
to ledge...@googlegroups.com, niteg...@gmail.com
Hi,

On Sun, 3 Apr 2016 08:46:40 -0700 (PDT) Marcos wrote:
> = monthly Income
> Income:Salary US$-100.00
> Assets:Bank US$100.00
>
> Is the expression above ok?

No, not if you want to make this a transaction that is applied every
month. Except when using the functions "budgeting" or "forecasting",
you cannot use "periodic transactions", i.e. there are no transactions
that are applied automatically periodically, as far as I know. For your
salary that comes every month, you will have to write a transaction
every month.

OK?
Tobias
signature.asc
Reply all
Reply to author
Forward
0 new messages