I'm trying to figure out how to do US payroll taxation in ledger.  For
the Social Security portion, 6.2% is paid by the employee (deducted
from their paycheck) and another 6.2% by the employer.   There's a
similar Medicare deduction of 1.45% for each.

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?

I'd basically like to enter hours for each of the employees, and get
the check and tax amounts out the other end.

Here's what I have so far as a ledger file, as a reference:

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

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

Any other input would be useful!

Thanks,
Zack

Reply via email to