change item quantity on POS

Apr 03, 2009 5 Replies

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



Does this help?

TransactionEntry.SetQuantityPurchased

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

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.

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:

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required