rickthewilliams
01/31/2023, 7:01 PMClay Roper
01/31/2023, 10:37 PMtransaction
for the transaction body details, transactionaccountingline
to pull posting lines, and accountingperiod
to filter based on closed periods. You might want to start with something like:
SELECT
tran.tranid
FROM
transaction AS tran
JOIN transactionaccountingline AS line
ON line.transaction = tran.id
JOIN accountingperiod AS period
ON period.id = tran.postingperiod
WHERE
line.posting = 'T' AND
period.closed = 'T'
*edited to fix a table namerickthewilliams
01/31/2023, 10:39 PM