Hi,
You have to approach to this problem from end-user view. Here is an invoice, which is about to be posted on WBS. From which fund do you want the budget to be consumed? Is it to be entered manually or derived automatically? If the last is correct, then, obviously, knowing WBS is not sufficient to establish a fund source; you will have to add some more parameters to your rule.
Regards,
Eli