custom pos button

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

Reply to
josh
Loading thread data ...

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

Reply to
Robert

i know about that one this is for something else in a vb6 dll file i am making

"Robert" wrote:

Reply to
josh

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 gett> it's backwards... .Add returns a transactionEntry object

Reply to
josh

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(...)

Reply to
Glenn Adams [MVP - Retail Mgmt]

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.