Compartir a través de


TAMMerchandisingEvent::lookupInvoiceAccount Method

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.
  • _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.

See Also

Reference

TAMMerchandisingEvent Table