Class ReturnExchangeManager
Inheritance
System.Object
ReturnExchangeManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
public static class ReturnExchangeManager
Fields
Declaration
public const string ReturnFormCompleteWorkflowName = "ReturnFormCompleteWorkflow"
Field Value
| Type |
Description |
| System.String |
|
Declaration
public const string ReturnFormRecalculateWorkflowName = "ReturnFormRecalculateWorkflow"
Field Value
| Type |
Description |
| System.String |
|
Methods
Adds the new return form to purchase order.
Declaration
public static OrderForm AddNewReturnFormToPurchaseOrder(PurchaseOrder purchaseOrder)
Parameters
| Type |
Name |
Description |
| PurchaseOrder |
purchaseOrder |
The purchase order.
|
Returns
Adds the new return line item to return form.
Declaration
public static LineItem AddNewReturnLineItemToReturnForm(OrderForm returnForm, LineItem origLineItem, decimal returnQuantity, string returnReason)
Parameters
| Type |
Name |
Description |
| OrderForm |
returnForm |
The return form.
|
| LineItem |
origLineItem |
The orig line item.
|
| System.Decimal |
returnQuantity |
The return quantity.
|
| System.String |
returnReason |
The return reason.
|
Returns
Adds the new shipment to return form.
Declaration
public static Shipment AddNewShipmentToReturnForm(OrderForm returnForm, Shipment orginalShipment)
Parameters
| Type |
Name |
Description |
| OrderForm |
returnForm |
The return form.
|
| Shipment |
orginalShipment |
The orginal shipment.
|
Returns
Declaration
[Obsolete("This method is no longer used, use AddNewShipmentToReturnForm instead. This property will be removed in version 10.")]
public static Shipment AddNewShipmetToReturnForm(OrderForm returnForm, Shipment orginalShipment)
Parameters
Returns
Creates the exchange order for return form.
Declaration
public static PurchaseOrder CreateExchangeOrderForReturnForm(OrderForm returnForm, Shipment shipment)
Parameters
| Type |
Name |
Description |
| OrderForm |
returnForm |
The return form.
|
| Shipment |
shipment |
The shipment.
|
Returns
Declaration
public static void ExecuteReturnFormWorkflow(string workflowName, OrderForm returnForm)
Parameters
| Type |
Name |
Description |
| System.String |
workflowName |
|
| OrderForm |
returnForm |
|
Gets the available for return line items.
Declaration
public static IEnumerable<LineItem> GetAvailableForReturnLineItems(Shipment shipment)
Parameters
| Type |
Name |
Description |
| Shipment |
shipment |
The shipment.
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<LineItem> |
|
Gets the available for return line item quantity.
Declaration
public static decimal GetAvailableForReturnQuantity(Shipment shipment, int lineItemId)
Parameters
| Type |
Name |
Description |
| Shipment |
shipment |
The shipment.
|
| System.Int32 |
lineItemId |
The line item.
|
Returns
| Type |
Description |
| System.Decimal |
|
Gets the exchange order for return form.
Declaration
public static PurchaseOrder GetExchangeOrderForReturnForm(OrderForm returnForm)
Parameters
| Type |
Name |
Description |
| OrderForm |
returnForm |
The return form.
|
Returns
Declaration
public static LineItem GetOrigLineItemForReturnItem(LineItem returnLineItem)
Parameters
| Type |
Name |
Description |
| LineItem |
returnLineItem |
|
Returns
Gets the return form by id.
Declaration
public static OrderForm GetReturnFormById(PurchaseOrder purchaseOrder, int returnId)
Parameters
| Type |
Name |
Description |
| PurchaseOrder |
purchaseOrder |
The purchase order.
|
| System.Int32 |
returnId |
The return id.
|
Returns
Gets the return form original shipment.
Declaration
public static Shipment GetReturnFormOriginalShipment(OrderForm returnForm)
Parameters
| Type |
Name |
Description |
| OrderForm |
returnForm |
The return form.
|
Returns
Declaration
public static void RecalculateReturnOrderForm(OrderForm returnFrom)
Parameters