Re: Automated Transactions Identifier Error

2017-05-12 Thread John Wiegley
> "J" == James   writes:

J> Noted. I assume this has something to do with one of the cardinal rules of 
J> Ledger which is it does not edit or change anything in the .ledger file. 
J> I am considering a corn job for this. Any other suggestions?

Your automated transaction *should* work, it's just a missing feature.

-- 
John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2

-- 

--- 
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.


Re: Automated Transactions Identifier Error

2017-05-12 Thread James

Or would be some good ways to track interests (which are periodical and 
irregular amounts(ie. percentages) ?




On Friday, May 12, 2017 at 10:20:25 PM UTC+7, James wrote:
>
>
> Hi,
> I can't get the automated transaction below to work.
> Appreciate if someone could help with this. 
>
>
>
> While parsing file "/home/system/LedgerTest/interest_test.ledger", line 2:
> While evaluating value expression:
> (account("Liabilities") * 0.05)
> ^^
> While calling function 'account Liabilities':
> While parsing posting:
> Payable:MyCreditSupplier (account("Liabilities") * 0.05)
> ^^^
> Error: Could not find an account matching 'Liabilities'
>
>
>
> My ledger file is as follows:- 
>
> ~ monthly
>  Payable:MyCreditSupplier (account("Liabilities") * 0.05)
>  Accounts:checking
>
> 2017/01/01 Credit Goods
>  Liabilities:VendorPayable:AcmeCo US$ 5,000.00
>  Liabilities:VendorPayable:XZYCo US$ 3,000.00
>  Liabilities:VendorPayable:Untitled US$ 2,000.00
>  Assets:Inventory:Goods 
>
>
>
>
>
>
>
>
>
>

-- 

--- 
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.


Re: Automated Transactions Identifier Error

2017-05-12 Thread James
Hi John,
Noted. I assume this has something to do with one of the cardinal rules of 
Ledger which is it does not edit or change anything in the .ledger file. 
I am considering a cron job for this. Any other suggestions?
Thanks


On Friday, May 12, 2017 at 10:20:25 PM UTC+7, James wrote:
>
>
> Hi,
> I can't get the automated transaction below to work.
> Appreciate if someone could help with this. 
>
>
>
> While parsing file "/home/system/LedgerTest/interest_test.ledger", line 2:
> While evaluating value expression:
> (account("Liabilities") * 0.05)
> ^^
> While calling function 'account Liabilities':
> While parsing posting:
> Payable:MyCreditSupplier (account("Liabilities") * 0.05)
> ^^^
> Error: Could not find an account matching 'Liabilities'
>
>
>
> My ledger file is as follows:- 
>
> ~ monthly
>  Payable:MyCreditSupplier (account("Liabilities") * 0.05)
>  Accounts:checking
>
> 2017/01/01 Credit Goods
>  Liabilities:VendorPayable:AcmeCo US$ 5,000.00
>  Liabilities:VendorPayable:XZYCo US$ 3,000.00
>  Liabilities:VendorPayable:Untitled US$ 2,000.00
>  Assets:Inventory:Goods 
>
>
>
>
>
>
>
>
>
>

-- 

--- 
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.


Re: Automated Transactions Identifier Error

2017-05-12 Thread John Wiegley
> "J" == James   writes:

J> ~ monthly
J>   Payable:MyCreditSupplier (account("Liabilities") * 0.05)
J>   Accounts:checking

This has been requested before, but to my knowledge there is no way to do what
you're trying. And no reason it couldn't be added, either, we just can't refer
to the totals of other accounts in all places yet.

-- 
John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2

-- 

--- 
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.


Automated Transactions Identifier Error

2017-05-12 Thread James

Hi,
I can't get the automated transaction below to work.
Appreciate if someone could help with this. 



While parsing file "/home/system/LedgerTest/interest_test.ledger", line 2:
While evaluating value expression:
(account("Liabilities") * 0.05)
^^
While calling function 'account Liabilities':
While parsing posting:
Payable:MyCreditSupplier (account("Liabilities") * 0.05)
^^^
Error: Could not find an account matching 'Liabilities'



My ledger file is as follows:- 

~ monthly
 Payable:MyCreditSupplier (account("Liabilities") * 0.05)
 Accounts:checking

2017/01/01 Credit Goods
 Liabilities:VendorPayable:AcmeCo US$ 5,000.00
 Liabilities:VendorPayable:XZYCo US$ 3,000.00
 Liabilities:VendorPayable:Untitled US$ 2,000.00
 Assets:Inventory:Goods 









-- 

--- 
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.