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 : Sales By Item Detail Report and Custom FieldsSearch Forum

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

 New Topic 
 
 Post Reply 
 Sales By Item Detail Report and Custom Fields 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-16 10:24:14

In QuickBooks I can do the following Sales By Item Details report:

Using QODBC, the same report can be extracted using the QuickBooks reporting engine with the stored procedure report SalesByItemDetail like this:

sp_report SalesByItemDetail show Text, Account, TxnType as Type, Date, RefNumber as Num, Item,
Memo, Name, Quantity as Qty, UnitPrice as SalesPrice, Amount, OpenBalance, ModifiedTime
parameters DateMacro = 'ThisMonth'

The data can also be found in the SalesLine QODBC table like this:

SELECT Type, TxnDate as Date, RefNumber as Num, SalesLineItemRefFullName as Item,
SalesLineDesc as Memo, SalesLineQuantity as Qty, SalesLineRate as SalesPrice,
SalesLineAmount as Amount, TimeModified FROM SalesLine NOSYNC
where (TxnDate >= {d'2007-12-01'} and TxnDate <={d'2007-12-15'})
and SalesLineType='Item' and SalesLineItemRefFullName is not null order by SalesLineItemRefFullName

In QuickBooks you can also link your custom fields within your reports like this:

Unfortunately, the Intuit qbXML SDK doesn't currently include Custom Fields in our calls to the QuickBooks Reporting Engine. To extract custom fields I need to go back to the SalesLine table like this instead:

SELECT Type, TxnDate as Date, RefNumber as Num, SalesLineItemRefFullName as Item,
SalesLineDesc as Memo, SalesLineQuantity as Qty, SalesLineRate as SalesPrice,
SalesLineAmount as Amount, TimeModified, CustomFieldContract as Contract#
FROM SalesLine NOSYNC
where (TxnDate >= {d'2007-12-01'} and TxnDate <={d'2007-12-15'})
and SalesLineType='Item' and SalesLineItemRefFullName is not null order by SalesLineItemRefFullName

 

  Top 
 New Topic 
 
 Post Reply 

Jump to