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.
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 TAMVendRebateAgreementLine selectRebateAgreementLineMax(
TAMVendRebateAgreement _rebateAgreement,
VendInvoiceTrans _vendInvoiceTrans,
PurchQty _rebateQty,
PurchUnit _purchUnit,
CurrencyCode _currency,
AmountCur _rebateAmt)
Run On
Server
Parameters
- _rebateAgreement
Type: TAMVendRebateAgreement Table
A TAMVendRebateAgreement record.
- _vendInvoiceTrans
Type: VendInvoiceTrans Table
A VendInvoicetrans record.
- _rebateQty
Type: PurchQty Extended Data Type
The Rebate quantity.
- _purchUnit
Type: PurchUnit Extended Data Type
The purchase unit.
- _currency
Type: CurrencyCode Extended Data Type
The currency.
- _rebateAmt
Type: AmountCur Extended Data Type
The Rebate amount.
Return Value
Type: TAMVendRebateAgreementLine Table
Return the TAMVendRebateAgreementLine record to create a rebate for.