Home Page link  

QSRules: Session.Transaction.Entries.(Item.ItemType = itemtypeWeighed) ?

 

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

 Post an article  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
QSRules: Session.Transaction.Entries.(Item.ItemType = itemtypeWeighed) ? Fisher 07-05-2005
Posted by Fisher on July 5, 2005, 9:01 pm
Please log in for more thread options
Syntax error again? I cannot seem to find the right branch to get the
status either as integer or boolean, the itemtype of an item using
QSRules in a DLL via VB6.

I thought it would be as easy as Entry.Item.ItemType, but QSRules only
seems to have the ability to reference Entries, then allow for
Count/Add/Remove.

There is QSRules.Session.Transaction.Entries.Element(x)
Element requires an Index, but without further documentation, I am not
sure what this is referencing. Whether or not it requires a currentkey
call for the index.

Thanks for your continued patience as I try and hash these out.

I'm trying to increment a counter based on item type condition.
Kevin



Posted by Fisher on July 6, 2005, 8:51 am
Please log in for more thread options
For Each E In Session.Transaction.entries
If E.Item.ItemType = "6" Then
Session.Variable(9) = Session.Variable(9) + 1
End If

Next E

Each Entry can be addressed by the subset. Hopefully this helps someone
else out!

Kevin



Posted by Antonio Mazzeo on July 10, 2005, 8:10 pm
Please log in for more thread options
Fisher wrote:
> For Each E In Session.Transaction.entries
> If E.Item.ItemType = "6" Then
> Session.Variable(9) = Session.Variable(9) + 1
> End If
>
> Next E
>
> Each Entry can be addressed by the subset. Hopefully this helps someone
> else out!
>
Do you have in session.variable(9) the "0" init-value ?

Antonio


Posted by Fisher on July 11, 2005, 4:43 am
Please log in for more thread options
Yeah, this one actually worked out fine, the conditional came later. I
reset the variable every time the function is called to ensure an
accurate count. Now if only I had a deleteItem hook, so I could make
sure that if a weighed item is denied, the counter is immediately
decremented.

Thanks for your insight Antonio!

Kevin



Posted by Antonio Mazzeo on July 11, 2005, 2:34 pm
Please log in for more thread options

> Yeah, this one actually worked out fine, the conditional came later. I
> reset the variable every time the function is called to ensure an
> accurate count. Now if only I had a deleteItem hook, so I could make
> sure that if a weighed item is denied, the counter is immediately
> decremented.
I think that not exist an 'deleteItem' hook.. or a new release have this
feature?

I think that a GOOD hook are for parsing the barcode...

antonio




Similar ThreadsPosted
How to execute Stored Procedure from QSRules.Session object in .NE November 17, 2006, 7:06 am
Transaction Entries add function May 23, 2008, 12:20 pm
Can you change the ItemDescription in Transaction.Entries.Add ? January 11, 2007, 6:17 pm
mySession.Transaction.Entries & removing a line November 19, 2007, 4:31 pm
Adding an Item using QSRules January 19, 2006, 5:41 pm
Removing at item using qsrules January 25, 2006, 11:17 am
Adding a item through qsRules February 3, 2006, 10:33 am
QSrules: Add item automatically July 9, 2006, 11:38 pm
How to Add New Item From COM Object(Qsrules)? October 20, 2006, 2:05 pm
Help with a qsrules item add question March 16, 2008, 10:42 pm

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