Invoice Workbench SQL?
I am trying to put together a SQL for some users who would like the workbench in excel. I am struggling with joining all the tables needed to make this happen. I have looked around but cannot find any SQL already written for this.
Has anyone ever had to do this or have one on hand? At the moment, I am slowly working through it but it is painful. I know I need a lot more tables but not sure exactly what ...
Select *
from ap_invoices_all AIA -- Invoice_ID
,ap_invoice_lines_all AIAL -- Invoice_id , Line_number