Class OrderGroupActivityBase
Inheritance
System.Object
OrderGroupActivityBase
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()
Namespace: Mediachase.Commerce.Workflow.Activities
Assembly: Mediachase.Commerce.Workflow.dll
Version: 9.24.1Syntax
public abstract class OrderGroupActivityBase : Activity
Constructors
OrderGroupActivityBase()
Declaration
protected OrderGroupActivityBase()
Properties
FulfillmentWarehouseProcessor
Declaration
protected IFulfillmentWarehouseProcessor FulfillmentWarehouseProcessor { get; }
Property Value
| Type | Description |
|---|---|
| IFulfillmentWarehouseProcessor |
InventoryService
Declaration
protected IInventoryService InventoryService { get; }
Property Value
| Type | Description |
|---|---|
| IInventoryService |
OrderGroup
Gets or sets the order group.
Declaration
[ActivityFlowContextProperty]
public OrderGroup OrderGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| OrderGroup | The order group. |
SafeBeginningOfTime
Declaration
protected DateTime SafeBeginningOfTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
WarehouseRepository
Declaration
protected IWarehouseRepository WarehouseRepository { get; }
Property Value
| Type | Description |
|---|---|
| IWarehouseRepository |
Warnings
Gets or sets the warnings.
Declaration
[ActivityFlowContextProperty]
public StringDictionary Warnings { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Specialized.StringDictionary | The warnings. |
Methods
AddWarningSafe(StringDictionary, String, String)
Declaration
protected void AddWarningSafe(StringDictionary warnings, string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Specialized.StringDictionary | warnings | |
| System.String | key | |
| System.String | value |
AdjustStockItemQuantity(LineItem)
Adjust item stock.
Declaration
protected void AdjustStockItemQuantity(LineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItem | lineItem | The line item. |
AdjustStockItemQuantity(Shipment, LineItem)
Adjust item stock.
Declaration
protected InventoryRequest AdjustStockItemQuantity(Shipment shipment, LineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment | The shipment. |
| LineItem | lineItem | The line item. |
Returns
| Type | Description |
|---|---|
| InventoryRequest |
CancelOperationKeys(Shipment)
Declaration
protected bool CancelOperationKeys(Shipment shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| Shipment | shipment |
Returns
| Type | Description |
|---|---|
| System.Boolean |
CheckMultiWarehouse()
Declaration
protected virtual IWarehouse CheckMultiWarehouse()
Returns
| Type | Description |
|---|---|
| IWarehouse |
GetAllRelatedPayments(Payment)
Gets all related payments. On Order.
Declaration
[Obsolete("Use IPayment.GetAllRelatedPayments() - extension method of IPayment instead. Will remain at least until November 2017.")]
protected IEnumerable<Payment> GetAllRelatedPayments(Payment payment)
Parameters
| Type | Name | Description |
|---|---|---|
| Payment | payment | The payment. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Payment> |
GetEntryRowForLineItem(LineItem)
Get entry row from a line item
Declaration
protected static CatalogEntryDto.CatalogEntryRow GetEntryRowForLineItem(LineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItem | lineItem | line item |
Returns
| Type | Description |
|---|---|
| CatalogEntryDto.CatalogEntryRow |
GetInventoryStatus(String, String)
Declaration
protected InventoryTrackingStatus GetInventoryStatus(string entryCode, string warehouseCode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | entryCode | |
| System.String | warehouseCode |
Returns
| Type | Description |
|---|---|
| InventoryTrackingStatus |
GetItemPrice(CatalogEntryDto.CatalogEntryRow, LineItem, CustomerContact)
Declaration
protected Money? GetItemPrice(CatalogEntryDto.CatalogEntryRow entry, LineItem lineItem, CustomerContact customerContact)
Parameters
| Type | Name | Description |
|---|---|---|
| CatalogEntryDto.CatalogEntryRow | entry | |
| LineItem | lineItem | |
| CustomerContact | customerContact |
Returns
| Type | Description |
|---|---|
| System.Nullable<Money> |
GetNewLineItemQty(LineItem, List<String>, Shipment)
Calculate new line item quantity from inventory/in-store inventory
Declaration
protected decimal GetNewLineItemQty(LineItem lineItem, List<string> changeQtyReason, Shipment shipment)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItem | lineItem | line item |
| System.Collections.Generic.List<System.String> | changeQtyReason | messages explain to clients why item's quantity is changed |
| Shipment | shipment | shipment |
Returns
| Type | Description |
|---|---|
| System.Decimal | new line item quantity |
GetPaymentTransactionType(Payment)
Gets the type of the payment transaction.
Declaration
[Obsolete("Use IPayment.GetPaymentTransactionType() - extension method of IPayment instead. Will remain at least until November 2017.")]
protected TransactionType GetPaymentTransactionType(Payment payment)
Parameters
| Type | Name | Description |
|---|---|---|
| Payment | payment | The payment. |
Returns
| Type | Description |
|---|---|
| TransactionType |
GetResultingPaymentsByTransactionType(IEnumerable<Payment>, TransactionType)
Gets the type of the resulting payments by transaction.
Declaration
[Obsolete("Use IOrderForm.GetPaymentsByTransactionType(payments, type) - extension method of IOrderForm instead. Will remain at least until November 2017.")]
protected IEnumerable<Payment> GetResultingPaymentsByTransactionType(IEnumerable<Payment> payments, TransactionType type)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<Payment> | payments | The payments. |
| TransactionType | type | The type. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<Payment> |
PopulateInventoryInfo(IWarehouseInventory, LineItem)
Declaration
[Obsolete("Use PopulateInventoryInfo(InventoryRecord, LineItem) instead. Will remain at least until July 2017.")]
protected void PopulateInventoryInfo(IWarehouseInventory inv, LineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| IWarehouseInventory | inv | |
| LineItem | lineItem |
PopulateInventoryInfo(InventoryRecord, LineItem)
Declaration
protected void PopulateInventoryInfo(InventoryRecord inventoryRecord, LineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| InventoryRecord | inventoryRecord | |
| LineItem | lineItem |
ReorderIndexes(OrderForm, LineItem)
Reorder line item indexes in all shipments after delete an item
Declaration
protected void ReorderIndexes(OrderForm orderForm, LineItem lineItem)
Parameters
| Type | Name | Description |
|---|---|---|
| OrderForm | orderForm | order form |
| LineItem | lineItem | removed line item |
ValidateOrderProperties(ValidationErrorCollection)
Validates the order properties.
Declaration
protected virtual void ValidateOrderProperties(ValidationErrorCollection validationErrors)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidationErrorCollection | validationErrors | The validation errors. |
ValidateRuntime()
Validates the runtime.
Declaration
protected virtual bool ValidateRuntime()
Returns
| Type | Description |
|---|---|
| System.Boolean |