conecta6 Posted December 20, 2017 Share Posted December 20, 2017 Hello I am developing an addon and need to link purchase orders with your invoices to see the status of payment. I see that whmcs displays it in the order payment info but I don't see any fields in the order table or invoice table that relate to them. How does whmcs relate to them? thanks miguel Link to comment Share on other sites More sharing options...
brian! Posted December 20, 2017 Share Posted December 20, 2017 the tblorders database table has an 'invoiceid' field -> this value will match the 'id' value in tblinvoices for any given order... or you could use the API. Link to comment Share on other sites More sharing options...
bellafronte Posted December 20, 2017 Share Posted December 20, 2017 Maybe you can use the internal API like @brian! suggested. GetOrders Obtain orders matching the passed criteria Link to comment Share on other sites More sharing options...
Recommended Posts