Anyone know how to associate vendor bills with cli...
# general
a
Anyone know how to associate vendor bills with client invoices through the REST/SOAP api records?
b
reframe your question using the native netsuite names of transactions
purchase order is the normal transaction before a vendor bill, and a vendor payment is the normal one after
honestly neither sounds like a client invoice
a
If you review the Endpoints in the API browsers - Invoices and Vendor Bills are distinct endpoints. I really only have familiarity with API side. When I pull from the "PurchaseOrder" endpoint - there is no data.
My goal is to create a P/L for each invoice line. Associate all the Invoices with their respective Vendor Bills and do a basic aggregation and subtraction.
b
invoices are linked to the sales line of transaction
so sales order to invoice to customer payment
vendor bills are linked to the purchases line
purchase order to vendor bill to vendor payment
a
So if I wanted to know which Vendor Bills are associated with a specific Invoice - what is the key? Invoice A was 500 for Project A Vendor Bill 1,2, 3 each were 100 for Invoice A on Project A - I don't want just to associate to the project, I want to associate to the Invoice
b
there is none
natively netsuite does not track which individual item is sold unless you are using things like serialized items
a
so we are a marketing firm. I know it's possible to associate our vendor bills with the client invoices because we have a custom report that does so. It provides us a P and L on each invoice based on the associated vendor bills.
I don't know how to do it using the API endpoints available
b
you can use customization to associate invoices with bills, but you would need to understand how that association is done
then replicate that via api