Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Invoice Line Item MarginSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v6 Forum

 New Topic 
 
 Post Reply 
[1]  
 Invoice Line Item Margin 
 Author   Message 
  Greg 
  
 Group: Members 
 Posts: 1 
 Joined: 2006-08-11 
 Profile
 Posted : 2006-08-11 06:35:19

What tables contain item, item sell price, sales person, item cost

Trying to write a margin report by line item by salesperson

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-08-11 08:54:25

Items are contained in a number of tables:

This will show the Purchase Cost and Average Cost of Stock Items invoiced for your Customer: 'Customer ABC'

SELECT "Customer"."FullName",  "InvoiceLine"."InvoiceLineItemRefFullName",
"InvoiceLine"."InvoiceLineQuantity", "InvoiceLine"."InvoiceLineDesc",
"InvoiceLine"."IsPaid", "InvoiceLine"."InvoiceLineAmount", "InvoiceLine"."InvoiceLineItemRefFullName", "InvoiceLine"."InvoiceLineClassRefFullName", "InvoiceLine"."InvoiceLineRate", "ItemInventory"."PurchaseCost", "ItemInventory"."AverageCost"
FROM
   "Customer" "Customer","InvoiceLine" "InvoiceLine", "ItemInventory" "ItemInventory"
WHERE  ("InvoiceLine"."CustomerRefListID"="Customer"."ListID")
AND  ("InvoiceLine"."InvoiceLineItemRefListID" = "ItemInventory"."ListID")

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to