I am creating a generic inquiry where i would like to join the ARInvoice table to the FSServiceOrder table. This is so i can refence the docdate of the Invoice. What are the Parent and child fields to link service orders and AR invoices table?

I am creating a generic inquiry where i would like to join the ARInvoice table to the FSServiceOrder table. This is so i can refence the docdate of the Invoice. What are the Parent and child fields to link service orders and AR invoices table?

Best answer by darylbowman
I don’t have much experience with the Service module, but from a bit of investigation, it looks like Invoices would show up under ‘Billing Documents’ on Appointments. These documents come from the FSBillHistory table, which can be joined to FSServiceOrder like:
FSServiceOrder.SrvOrdType = FSBillHistory.SrvOrdType and
FSServiceOrder.RefNbr = FSBillHistory.ServiceOrderRefNbr.
Then, to join the FSBillHistory table to ARInvoice:
FSBillHistory.ChildDocType = ARInvoice.DocType and
FSBillHistory.ChildRefNbr = ARInvoice.RefNbr
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.