allocating percentages to multiple accounts

SOLVED

another question on this non profit client.    I have set up 5 different departments to represent the different revenue and expense type.  Within each department are several accounts.   It's the exact same set of accounts under each department (eg. I've number department 1 from 4100 - 4199, dept 2 from 4200 to 4299 etc).  Same for expenses but using 5000 accounts.    This is a non profit company that gets gaming funds from the government and when I process those grants and all the expenses I have to allocate as a percentage across the different department accounts.  So if I have a hydro bill, I need to allocate 20% to 1 account, 25% to another, 10% to another, 15% to another and the final 30% to the last account.   Is there a way to do this via the payments module?