PdsRebateFindAndCreate.createRebate Method [AX 2012]

Creates rebate from a rebate agreement line.

protected void createRebate(
   [PdsRebateAgreementLine _line, 
    boolean _manualRebate, 
    CustAccount _custAccount, 
    PdsRebateType _pdsRebateProgramId])

Run On

Server

Parameters

_line
Type: PdsRebateAgreementLine Table
A PdsRebateAgreementLine table record.
_manualRebate
Type: boolean
The Boolean value that indicates whether to create the rebate manually.
_custAccount
Type: CustAccount Extended Data Type
The customer account.
_pdsRebateProgramId
Type: PdsRebateType Extended Data Type
The rebate type.

ExceptionCondition
Error

There is a pending unprocessed TMA rebate.

Community Additions

ADD
Show: