TAMDeduction.checkPromotion Method

Validates the promotion ID of the current record.

Syntax

private boolean checkPromotion()

Run On

Called

Return Value

Type: boolean
true if the promotion ID is valid for the deduction; otherwise, false.

Remarks

The promotion needs to be validated in the following ways:

  • In relation to the current record's the merchandising event ID.

  • In relation to the current record's the rebate ID.

  • In relation to the customer. There must be at least one sales order with an invoice account equal to the deduction account and a customer account equal to the promotion's customer.

See Also

Reference

TAMDeduction Table