It is a common practice to use a Payroll Clearing Fund when recording payroll costs. That clearing fund (and optionally a sub fund) is specified on the Payroll (PYRL) document type accounting line in addition to the regular fund field that will contain the operating fund. Such accounting is very similar to other internal accounting because the clearing fund is actually the receiving fund. The rules for that event type processor are as follows:
If the Internal Fund field is not populated on the accounting line, then issue an error.
Generate Posting Pair A with the regular fund and sub fund codes on the accounting line with a Posting Line Amount equal to the Accounting Line Amount.
Generate Posting Pair B with the clearing fund and sub fund codes on the accounting line with a Posting Line Amount equal to the Accounting Line Amount.
The inference of a Bank code is dependent on the Event Type Requirement Bank rule. If set to Optional or Prohibited, no bank will be inferred. If set to Required, then the Bank code will be inferred from the Fund table using the fiscal year and fund code.
If the event category is HRB, then populate the Internal Fund, Sub Fund and Department values on the posting line in pair A with the Fund, Sub Fund, and Department from the posting line in pair B. Populate the Internal Fund, Sub Fund and Department values on the posting line in pair B with the Fund, Sub Fund, and Department from the posting line in pair A.