Re: What SQL tables are the profit and loss check details in?
The issue I've encountered with this with clients is for any single AP check, users want to see the underlying associated expense accounts for review.
To my knowledge, I don't know of a way to see that check 12345 for $1000 actually paid expenses associated with X expense accounts.
A query in the above manner allows the user to see the AP check, the transactions it was applied to, and the expense accounts associated with the transactions the check was applied to.
There are scenarios where the data may be incorrect under the circumstance of a partial pay with the check and validating against actual distribution amounts, but there really isn't a way around this if those numbers are needed under that circumstance.