modify price with Hook with qsrules


D

DIDI

Hello
My rms is a 1.3 version

I would like to modify the price automaticaly at the pos when quantity is
modified on the POS
To do that i would like to use Hooks and VB6


i do a little VB to test

the hook i use is REFRESHDISPLAY

the vb program is

Public Function Process(objSession As Object) As Boolean

Dim entryCount, Ikey As Integer
Ikey = objSession.Transaction.Entries.Count

For entryCount = 1 To Ikey

objSession.Transaction.Entries.Element(entryCount).SetPrice(33)

next

Process = True
End function

The problem is that the fist time i go through he doesn't modify the price
on the pos but the red flash is coming up.
If i enter an other quantity then the price is updated to 33

I have to go through twice

Thanks for your help

Has anybody a idea

Best regards
Didier
 
Ad

Advertisements

D

Dom

I think you need an other call after your .SetPrice(33) ... something like
..SavePrice() or maybe you need to call a method on the transaction object
rather than the transcation item to refresh the price as you want. Check
TransactionClass.CalculateTotals() or TransactionClass.SavePrices().
Good luck.
 
Ad

Advertisements

D

DIDI

Hi
Thank you for your help.
I tested every method possible and immagine to refresh the screen, but no
way to refresh it in VB.NET Code .
Is there a trick to it?
Does someone has already done that.
thank you for your help.

It is secret method ??

Best regards
Didier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Hook to modify price at POS 1
QSRules, Hooks, Deletions 1
QuitPOS qsRules hook question 0
QSRules Custom Hook DLL Error 3
I want to learn to do hooks / Quiero aprender a hacer Hooks 20
QSRules 10
QSRules 1
hooks 1

Top