Home Page link  

custom pos button

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
custom pos button josh 08-10-2005
---> Re: custom pos button Glenn Adams [MVP - Retail...08-12-2005
Posted by josh on August 10, 2005, 8:42 pm
Please log in for more thread options
can anyone help me with this line of code for adding a item with a qsrule

Session.Transaction.Entries.Add(52, 4050, 1, 0, 0, 0, 0) = TransactionEntry

am getting a runtime error 5
invalid procedute call or argument

thanks josh



Posted by Robert on August 11, 2005, 1:47 am
Please log in for more thread options
Josh,

If you are using the Custom POS Button to add the item set the Style =
Internal Command and enter the text below into the Command:
PerformAddItem 0, 4050, 1, 0, 0, 0, 0

Parameters
1. ItemID
Long value that contains the ID in the database of the item to add to the
transaction. If you do not know the ID of the item in the database, set this
value to zero and use the ItemLookupCode parameter to identify the item.
This parameter overrides the ItemLookupCode parameter.
2. ItemLookupCode
String that contains the Item Lookup Code of the item to add. This parameter
is not used if the ItemID parameter is not zero.
3. Quantity
Double value that contains the quantity of the item to add to the
transaction. If this value is zero an entry for the item is added to the
transaction with a quantity of zero; if the quantity of the item is zero
when the transaction is tendered, the item will not be tendered. If this
value is less than zero the item entry is treated as an item return.
4. OverridePrice
Boolean value that specifies whether to override the price for the item.
5. Price
Currency value that contains the new price to set to the item. This
parameter is only used if the OverridePrice parameter is passed TRUE.
6. OverrideDescription
Boolean value that specifies whether to override the description of the
item.
7. Description
String that contains the new description for the item. This parameter is
only used if the OverrideDescription parameter is passed TRUE.

Rob

> can anyone help me with this line of code for adding a item with a qsrule
>
> Session.Transaction.Entries.Add(52, 4050, 1, 0, 0, 0, 0) =
> TransactionEntry
>
> am getting a runtime error 5
> invalid procedute call or argument
>
> thanks josh
>




Posted by josh on August 11, 2005, 6:37 pm
Please log in for more thread options
i know about that one this is for something else in a vb6 dll file i am making




"Robert" wrote:

> Josh,
>
> If you are using the Custom POS Button to add the item set the Style =
> Internal Command and enter the text below into the Command:
> PerformAddItem 0, 4050, 1, 0, 0, 0, 0
>
> Parameters
> 1. ItemID
> Long value that contains the ID in the database of the item to add to the
> transaction. If you do not know the ID of the item in the database, set this
> value to zero and use the ItemLookupCode parameter to identify the item.
> This parameter overrides the ItemLookupCode parameter.
> 2. ItemLookupCode
> String that contains the Item Lookup Code of the item to add. This parameter
> is not used if the ItemID parameter is not zero.
> 3. Quantity
> Double value that contains the quantity of the item to add to the
> transaction. If this value is zero an entry for the item is added to the
> transaction with a quantity of zero; if the quantity of the item is zero
> when the transaction is tendered, the item will not be tendered. If this
> value is less than zero the item entry is treated as an item return.
> 4. OverridePrice
> Boolean value that specifies whether to override the price for the item.
> 5. Price
> Currency value that contains the new price to set to the item. This
> parameter is only used if the OverridePrice parameter is passed TRUE.
> 6. OverrideDescription
> Boolean value that specifies whether to override the description of the
> item.
> 7. Description
> String that contains the new description for the item. This parameter is
> only used if the OverrideDescription parameter is passed TRUE.
>
> Rob
>
> > can anyone help me with this line of code for adding a item with a qsrule
> >
> > Session.Transaction.Entries.Add(52, 4050, 1, 0, 0, 0, 0) =
> > TransactionEntry
> >
> > am getting a runtime error 5
> > invalid procedute call or argument
> >
> > thanks josh
> >
>
>
>


Posted by Glenn Adams [MVP - Retail Mgmt on August 12, 2005, 9:39 am
Please log in for more thread options
it's backwards... .Add returns a transactionEntry object

transactionEntry is an object, so you need to set it..

dim myTransEntry as object

set myTransEntry = session...Add(...)

--
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com
glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information



> can anyone help me with this line of code for adding a item with a qsrule
>
> Session.Transaction.Entries.Add(52, 4050, 1, 0, 0, 0, 0) =
> TransactionEntry
>
> am getting a runtime error 5
> invalid procedute call or argument
>
> thanks josh
>




Posted by josh on August 12, 2005, 7:01 am
Please log in for more thread options
Dim myTransEntry As Object



Set myTransEntry = Session.Transaction.Entries.Add(vItemId, vItemNum, 1, 0,
0, 0, 0)


so i did this but did not work still getting same error

"Glenn Adams [MVP - Retail Mgmt]" wrote:

> it's backwards... .Add returns a transactionEntry object
>
> transactionEntry is an object, so you need to set it..
>
> dim myTransEntry as object
>
> set myTransEntry = session...Add(...)
>
> --
> Glenn Adams
> Tiber Creek Consulting
> http://www.tibercreek.com
> glenn@tibercreek.com
> ----------------------------------------------
> Please DO NOT respond to me directly but post all responses here in the
> newsgroup so that all can share the information
>
>
>
> > can anyone help me with this line of code for adding a item with a qsrule
> >
> > Session.Transaction.Entries.Add(52, 4050, 1, 0, 0, 0, 0) =
> > TransactionEntry
> >
> > am getting a runtime error 5
> > invalid procedute call or argument
> >
> > thanks josh
> >
>
>
>


Similar ThreadsPosted
custom POS button October 14, 2005, 10:57 pm
Custom Button October 31, 2005, 9:53 pm
Custom Button November 1, 2005, 8:21 am
Custom Button November 2, 2005, 4:10 pm
Custom Button June 29, 2006, 11:52 pm
Custom POS Button October 18, 2007, 2:52 pm
custom button March 26, 2009, 8:17 am
custom pos button July 30, 2009, 8:51 am
Run Sql Commands from Custom POS Button October 13, 2005, 9:20 pm
Custom Button for a Report October 31, 2005, 3:43 am

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap