>> The problem is that I'm not sure how to deduct the the employee >> portion of the tax in ledger without making a special virtualized >> transaction per employee. Is there some way to make the virtual >> transaction apply to the account it matches? > > Use the account name "$account".
Ah... tried that. It works, but it doesn't do a straight replace of $account with the account name. In my case, I'd like to print out a per-employee tax amount for each of EFICA and EMED, and what seems obvious to me would be something like the following: --- D $1,000.00 ; payroll taxes as given by http://www.ssa.gov/pubs/10003.html ; codes from: http://en.wikipedia.org/wiki/Payroll_tax#United_States = /^Payroll/ Liabilities:Taxes:CFICA 0.062 Liabilities:Taxes:CMED 0.0145 Liabilities:Taxes:EFICA 0.062 Liabilities:Taxes:EMED 0.0145 $account:EFICA -0.062 $account:EMED -0.0145 ; Hourly rates for each employee, as commodity prices. P 2010/01/01 EONE $20 P 2010/01/01 ETWO $15 ; Payroll transactions 2010/05/18 Payroll from May 2nd to May 15th for Employee1 Assets:Checking 40 EONE Payroll:Employee1 2010/05/18 Payroll from May 2nd to May 15th for Employee2 Assets:Checking 20 ETWO Payroll:Employee2 --- Running the above results in the following unexpected result - it doesn't expand $account if $account is a part of an account name: --- $ ledger3 -s -V -f payroll.led bal $84.15 $account $68.20 EFICA $15.95 EMED $1,100.00 Assets:Checking $-84.15 Liabilities:Taxes $-68.20 EFICA $-15.95 EMED $-1,100.00 Payroll $-800.00 Employee1 $-300.00 Employee2 -------------------- 0 --- Thanks, Zack
