Home Page link  

Discount Code

 

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

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
Discount Code Alias 07-14-2005
`--> Re: Discount Code Antonio Mazzeo07-16-2005
Posted by Alias on July 14, 2005, 6:17 am
Please log in for more thread options
Does anyone know how to use the ...


Public Property Set DiscountReasonCode(Value As ReasonCode)
...


I wrote some code that based on some criteria will discount some items,

but looks like I also need to set the Discount Code... Any ideas or
example would be great


TIA



Posted by Antonio Mazzeo on July 16, 2005, 9:16 pm
Please log in for more thread options
This is a private mail.. but I think that the example can be useful for
someone...

/************************ email ****************************/
Hi Chuck,

I looked into documentation, and the property DiscountReasonCode is a
property that require an ReasonCode object..
The ReasonCode is a wrapper of the record 'ReasonCode' from database..
and for work correctly with property you must to assign the value to a
reasoncodeclass instance..

Example:
Set E.DiscountReasonCode = 16

replace with..

Set E.DiscountReasonCode = LookReasonCode("16")

and the code of 'LookReasonCode'

Function LookReasonCode(ByVal code as String) as ReasonCode
Dim x as Session.ReasonCode

For Each x in Session.ReasonCodes
if x.Code = code then begin
Set LookReasonCode = x
Exit Function
endif

Next x

Set LookReasonCode = Nothing
'Exit with error!
End Function

bye
Antonio


Similar ThreadsPosted
Remove discount and discount code from showing on a full page rece May 28, 2009, 1:45 pm
Set discount reason code via COM April 22, 2009, 2:46 pm
Reason Code Discount not working April 30, 2008, 12:10 pm
Remove text "Discount code: **" from receipt?? February 25, 2008, 11:10 am
Discount September 26, 2005, 6:50 am
15% Discount February 20, 2007, 10:07 am
How to set a discount like: buy 3 for $100. September 19, 2007, 7:04 pm
Discount September 28, 2007, 12:40 pm
Discount November 20, 2007, 6:57 pm
Discount March 19, 2009, 8:25 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