change item quantity on POS

Hi All,

I'm just trying to change quantity of selected item on POS

I tried fallowing: Set Entry = QSRules.Transaction.Entries(QSRules.Transaction.CurrentEntryKey) Entry.Quantity = 5

//Not working because its only value to read

As QSRules.Transaction.Entries.Add , adding the item, I presume that there should be something like QSRules.Transaction.Entries.SetQuantity but I can't find anything.

Would you help.

Thanks, Arthur

Reply to
hanys666
Loading thread data ...

Does this help?

TransactionEntry.SetQuantityPurchased

Reply to
Michael

Hi Michael,

Would you be able to give me the example how to use it ? I tried few ways in VB and Javascript but none of this works.

Thanks, Arthur

Reply to
Arthur Hanusek

TransactionEntry.SetQuantityPurchased Function This sets the quantity of purchased items for the transaction entry.

Public Function SetQuantityPurchased(ByVal Value As Double) As StatusCategoryEnum

Parameters Value

Double value that contains the quantity of purchased items to set for the transaction entry.

Return Values StatusCategoryEnum value that indicates whether the operation was a success.

Reply to
Michael

Hi,

Michael, That function works perfectly in VBScript Entry.SetQuantityPurchased(x)

I still have a problem with refreshing screen, I tryied all of these in VBScript qsBridge.FireEvent("RefreshDisplay") qsBridge.RefreshDisplay() qsBridge.RefreshDisplay qsBridge.FireEvent(RefreshDisplay) qsBridge.FireEvent.RefreshDisplay() qsRules.FireEvent("RefreshDisplay") qsRules.RefreshDisplay() qsRules.RefreshDisplay qsRules.FireEvent(RefreshDisplay) qsRules.FireEvent.RefreshDisplay() qsBridge.FireEvent RefreshDisplay qsRules.FireEvent RefreshDisplay qsBridge.FireEvent RefreshDisplay() qsRules.FireEvent RefreshDisplay() Entry.RefreshDisplay() None its working ... you can see the quantity change when you add new line.

In javascript I can get FireEvent("RefreshDisplay") working but SetQuantityPurchased it's not. I have no luck at all with it.

Would you help.

Thanks, Arthur

Michael wrote:

Reply to
Arthur Hanusek

Hopefully this will help.

Did you declare the RefreshDisplay function?

QSBridge event:

Public Function RefreshDisplay( ) As Boolean

Boolean value that indicates whether the operation was a success. The event handler returns TRUE if the operation was a success; otherwise, FALSE.

The FireEvent function invokes the specified QSBridge event, with optional parameters if specified.

Public Function FireEvent(EventName As String, ParamArray Parameters() ) As Variant

Reply to
Michael

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.