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 : PriceLevelPerItem Updates & InsertsSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 PriceLevelPerItem Updates & Inserts 
 Author   Message 
  SaSGurus 
  
 Group: Members 
 Posts: 26 
 Joined: 2006-04-02 
 Profile
 Posted : 2006-04-29 04:35:14

There is a text file with 5 prices in it and the approriate name for each item.

How do I update these prices into the PriceLevelPerItem File?

Is there a way to send the system minimum data on the INSERT statement and it will build some of the data.

ListID(PriceLevel), Name(PriceLevel), PriceLevelPerItemCustomPrice(PriceLevelPerItem).

How do I create the ListID(PriceLevelPerItem)?  What is the PriceLevelPerItemRefListID(PriceLevelPerItem)?  What are the field names in PriceLevelPerItem that contains the ListId(from PriceLevel), ListID(from ItemInventory) to help in this function.

Can you specifically give me an example of an INSERT statement for PriceLevelPerItem where only the minimum date is passed?

Thanks

 

 
Victor Nahigian
617-965-4615 x110
jvn@sysgbs.com 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-01 10:07:10

Ok, you can import PriceLevelPerItem lists, but the only restiction is that the items must already exist in QuickBooks. See: How do I add a Inventory Item using QODBC? for more on adding the item to QuickBooks before creating the PriceLevelPerItem special price.

To create a new PriceLevel and PriceLevelPerItem item (at the same time) you do:

INSERT INTO PriceLevelPerItem ("Name","IsActive","PriceLevelPerItemItemRefListID",
"PriceLevelPerItemCustomPrice")
values ('Door Bell Special', 1,'550000-1197760985',20)

where the Name 'Door Bell Special' is the new PriceLevel.

To add another item to the 'Door Bell Special' price level, you need to first determine the ListID for the PriceLevel you want to add the item too. This can be found by doing:

SELECT ListID, Name, PriceLevelType from PriceLevel where Name='Door Bell Special'

From this we can see that the PriceLevel ListID is: 60000-1197761756.

To add another item to this PriceLevel we do:

INSERT INTO PriceLevelPerItem ("ListID","IsActive","PriceLevelPerItemItemRefListID",
"PriceLevelPerItemCustomPrice")
values ('60000-1197761756', 1,'560000-1197762079',1)

After these two inserts the PriceLevelPerItem table shows the following items for: 'Door Bell Special' 

select ListID, Name, IsActive, PriceLevelPerItemItemRefListID,
PriceLevelPerItemItemRefFullName, PriceLevelPerItemCustomPrice
from PriceLevelPerItem where Name='Door Bell Special'

To update a PriceLevelPerItem we do this:

UPDATE PriceLevelPeritem SET PriceLevelPerItemCustomPrice = 43.21, PriceLevelPerItemItemRefListID = 'F0000-933272656'  WHERE ListID = '30000-1197755980' AND PriceLevelPerItemItemRefListID = 'F0000-933272656'

Due to a bug in QODBC v6.00.00.155, you need to use PriceLevelPerItemItemRefListID in the WHERE clause, later revisions will only need the ListID to be used in the WHERE clause.

See: How do I apply PriceLevel Profile to Invoice Line Items? for further information on invoicing PriceLevel discount.

 

Note: The PriceLevel and PriceLevelPerItem tables are currently available to USA users of QuickBooks 2005 or later only.

 

  Top 
  Wally J 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-05-12 
 Profile
 Posted : 2006-05-12 02:40:24

I have not purchased your software as of yet.  What I need is a tool that will allow me to import a list of items with three different price levels into the PriceLevelPerItem table.  All the items will be on file and the PriceLevel tabel will have the three levels in it.  I can format the data as needed.  What tools would I need to buy to accomplish this?

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-12 08:18:24
Using QODBC you can use any programming tool you like to read your list and execute the insert statement as shown above using a Do While...Loop routine. 

  Top 
  Wally J 
  
 Group: Members 
 Posts: 3 
 Joined: 2006-05-12 
 Profile
 Posted : 2006-05-23 21:27:41

I am trying to use Microsoft Access to read thru a CSV file and write records into the PriceLevel table.  I am trying to read the ItemInventory file to get the ListID for the item with the FullName of '003/115'. I am using the following code:

Private Sub Command0_Click()
    Dim SQLArg As String
    SQLArg = "Select ListID, FullName from ItemInventory where FullName='003/115'"
    DoCmd.RunSQL SQLArg
End Sub

When I run it, I get the error "A RunSQL action needs an SQL argument consisting of an SQL statement.".  What am I needing in order to get my SQL statement to work?

Thank you,

WallyKJ

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-24 10:02:42
QODBC is a ODBC source, normally you would setup a ADO connection string and load the SQL into the objCommand.CommandText and do a obj.Command.Execute to run the command object and then store the result using a recordset. 

  Top 
  Shanewaj 
  
 Group: Members 
 Posts: 22 
 Joined: 2007-09-24 
 Profile
 Posted : 2007-12-28 09:00:37

Hi

I am not able to find this table PriceLevel ...............

I am using qodbc 8.0 and quickbook sdk 07/08

Thanks

 

 

 
Md Shanewaj Rahman
Software Developer
Nulab Professional Imaging Pty. Ltd. 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-12-28 16:06:32
The PriceLevelPerItem table is only avaliable in the USA versions of QuickBooks and now in QuickBooks 2008 Canadian edition. I expect the Australian version to support PriceLevelPerItem in QuickBooks 2008/09 next year. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to