Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Shows all merchandising events that match customer.
Syntax
client server public static void lookupInvoiceAccount(
FormControl _callingControl,
CustInvoiceAccount _custInvoiceAccount,
TAMPromotionID _promotionID,
boolean _excludeOffInvoiceEvents,
boolean _excludeOneTimePromotions)
Run On
Called
Parameters
- _callingControl
Type: FormControl Class
The form control to apply the lookup ability to.
- _custInvoiceAccount
Type: CustInvoiceAccount Extended Data Type
Promotions will only be shown that are associated with sales orders that use specified customer invoice account.
- _promotionID
Type: TAMPromotionID Extended Data Type
The promotion ID in which to filter merchandising events.
- _excludeOffInvoiceEvents
Type: boolean
When the parameter is true, off invoice events will be excluded from the lookup.
- _excludeOneTimePromotions
Type: boolean
When the parameter is true, one time promotions will be excluded from the lookup.
Remarks
See TAMTradePromotion::lookupInvoiceAccount Find all promotions that match merchandising events.
Find all sales orders with a customer account equal to _custInvoiceAccount.
Include all merchandising events with customer account equal to the customer account of those sales orders.
Assume just these 4 sales orders exist.
Sales order: 1 Customer account: B Invoice account: A Sales order: 2 Customer account: A Invoice account: C Sales order: 3 Customer account: B Invoice account: C Sales order: 4 Customer account: B Invoice account: B Lookup invoice account A - return promotons for B.
Lookup invoice account B - return promotons for B.
Lookup invoice account C - return promotions for A and B.