Interface IReturnPurchaseOrderCalculator
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.
The calculator calculates return totals on the purchase order.
Namespace: EPiServer.Commerce.Order
Assembly: Mediachase.Commerce.dll
Version: 11.8.3Syntax
public interface IReturnPurchaseOrderCalculator
Methods
CalculateReturnTotal(IPurchaseOrder, IReturnOrderForm, Boolean)
Calculates the return total for an IPurchaseOrder.
Declaration
Money CalculateReturnTotal(IPurchaseOrder purchaseOrder, IReturnOrderForm currentReturnForm, bool isCompletingReturnForm)
Parameters
| Type | Name | Description |
|---|---|---|
| IPurchaseOrder | purchaseOrder | The origin purchase order. |
| IReturnOrderForm | currentReturnForm | The current return form of order. |
| System.Boolean | isCompletingReturnForm | The flag indicating whenever the current return form is being completed. |
Returns
| Type | Description |
|---|---|
| Money | The return total for an IPurchaseOrder. |
GetInvalidatedPromotions(IPurchaseOrder, IReturnOrderForm, Boolean)
Calculates the return total for an IPurchaseOrder.
Declaration
IEnumerable<PromotionInformation> GetInvalidatedPromotions(IPurchaseOrder purchaseOrder, IReturnOrderForm currentReturnForm, bool isCompletingReturnForm)
Parameters
| Type | Name | Description |
|---|---|---|
| IPurchaseOrder | purchaseOrder | The origin purchase order. |
| IReturnOrderForm | currentReturnForm | The current return form of order. |
| System.Boolean | isCompletingReturnForm | The flag indicating whenever the current return form is being completed. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<PromotionInformation> | The return total for an IPurchaseOrder. |