PdsRebateAgreementLine::selectRebateAgreementLineMax Method
Returns the rebate agreement line that has the maximum rebate line break to be is used for creating a rebate based on sales invoice record.
Syntax
server public static PdsRebateAgreementLine selectRebateAgreementLineMax(
PdsRebateAgreement _rebateAgreement,
InventDim _inventDim,
ItemId _itemId,
SalesQty _rebateQty,
SalesUnit _salesUnit,
CurrencyCode _currency,
AmountCur _rebateAmt)
Run On
Server
Parameters
- _rebateAgreement
Type: PdsRebateAgreement Table
A PDSRebateAgreement record.
- _inventDim
Type: InventDim Table
A InventDim record.
- _itemId
Type: ItemId Extended Data Type
An item ID.
- _rebateQty
Type: SalesQty Extended Data Type
The Rebate quantity.
- _salesUnit
Type: SalesUnit Extended Data Type
The sales unit.
- _currency
Type: CurrencyCode Extended Data Type
The currency.
- _rebateAmt
Type: AmountCur Extended Data Type
The Rebate amount.
Return Value
Type: PdsRebateAgreementLine Table
Return the PDSRebateAgreementLine record to create a rebate for.