FindTradeAgreements Method

This function retrieves all possible price agreements for the given args (item, customer, currency, etc), item relation code (item/group/all), and account relation code (customer/price group/all).

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Data
Assembly:  Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)

ReadOnlyCollection<TradeAgreement> FindTradeAgreements(
	PriceDiscountType agreementType,
	PriceDiscountItemCode itemCode,
	string itemRelation,
	PriceDiscountAccountCode accountCode,
	IEnumerable<string> accountRelations,
	string unitId,
	string currencyCode,
	decimal quantity,
	Variant variant,
	DateTime activeDate
)

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<TradeAgreement>
Collection of applicable price agreements, sorted by price amount ascending.

Community Additions

Show: