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()
Assembly: Mediachase.Commerce.Workflow.dll
Version: 10.8.0
public abstract class OrderGroupActivityBase : Activity
Constructors
Declaration
protected OrderGroupActivityBase()
Properties
Declaration
protected IFulfillmentWarehouseProcessor FulfillmentWarehouseProcessor { get; }
Property Value
Declaration
protected IInventoryService InventoryService { get; }
Property Value
Gets or sets the order group.
Declaration
[ActivityFlowContextProperty]
public OrderGroup OrderGroup { get; set; }
Property Value
Declaration
protected DateTime SafeBeginningOfTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
Declaration
protected IWarehouseRepository WarehouseRepository { get; }
Property Value
Gets or sets the warnings.
Declaration
[ActivityFlowContextProperty]
public StringDictionary Warnings { get; set; }
Property Value
Type |
Description |
System.Collections.Specialized.StringDictionary |
The warnings.
|
Methods
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 |
|
Declaration
protected void AdjustStockItemQuantity(LineItem lineItem)
Parameters
Type |
Name |
Description |
LineItem |
lineItem |
The line item.
|
Declaration
protected InventoryRequest AdjustStockItemQuantity(Shipment shipment, LineItem lineItem)
Parameters
Type |
Name |
Description |
Shipment |
shipment |
The shipment.
|
LineItem |
lineItem |
The line item.
|
Returns
Declaration
protected bool CancelOperationKeys(Shipment shipment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Changes quantity of a line item. It also updates the discount amount for the line item
and the manual discounts relating to the line items.
Declaration
protected void ChangeLineItemQuantity(LineItem lineItem, decimal delta)
Parameters
Type |
Name |
Description |
LineItem |
lineItem |
The line item.
|
System.Decimal |
delta |
The removing quantity.
|
Declaration
protected virtual IWarehouse CheckMultiWarehouse()
Returns
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
Declaration
protected InventoryTrackingStatus GetInventoryStatus(string entryCode, string warehouseCode)
Parameters
Type |
Name |
Description |
System.String |
entryCode |
|
System.String |
warehouseCode |
|
Returns
GetItemPrice(CatalogEntryDto.CatalogEntryRow, LineItem, CustomerContact)
Declaration
protected Money? GetItemPrice(CatalogEntryDto.CatalogEntryRow entry, LineItem lineItem, CustomerContact customerContact)
Parameters
Returns
Type |
Description |
System.Nullable<Money> |
|
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
|
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
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> |
|
Declaration
[Obsolete("Use PopulateInventoryInfo(InventoryRecord, LineItem) instead. Will remain at least until July 2017.")]
protected void PopulateInventoryInfo(IWarehouseInventory inv, LineItem lineItem)
Parameters
Declaration
protected void PopulateInventoryInfo(InventoryRecord inventoryRecord, LineItem lineItem)
Parameters
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
|
Validates the order properties.
Declaration
protected virtual void ValidateOrderProperties(ValidationErrorCollection validationErrors)
Parameters
Declaration
protected virtual bool ValidateRuntime()
Returns
Type |
Description |
System.Boolean |
|