Journal Entries from Sales


I am comparing JE to Invoices and having somewhat of a hard time reconciling the two.  I noticed that if the Dimensions for Items are all the same, they get aggregated when posted to the GL.  But my accruals don't always follow this rule.  I have an Invoice with 10 accrual Items (All have same dimensions) and they are posted as two entries to the GL.

What is the logic when posting Invoices to the GL.  Having the same dimensions applies to the Items, but there must be something else that is dictating how lines are posted.


Is this logic in a module some place in code?  How can I find the routine that is used to post an Invoice to the GL, so I can follow the same logic.

Any help appreciated.