Пример #1
0
 /// <summary>
 ///     Get the item description without "extra" information.
 /// </summary>
 /// <param name="salesOrderWorkItem">A sales order work item instance.</param>
 /// <param name="salesOrderItem">A sales order item instance.</param>
 /// <returns>An item description.</returns>
 public static string GetDescriptionWithoutExtra(
     SalesOrderWorkItem salesOrderWorkItem,
     SalesOrderItem salesOrderItem
     ) => ItemDescriptionHelper.GetDescriptionWithoutExtra(
     salesOrderWorkItem == null
         ? salesOrderItem?.ItemDescription
         : salesOrderWorkItem.ItemDescription
     );
Пример #2
0
 /// <summary>
 ///     Get the UOM combined summary.
 /// </summary>
 /// <param name="workflow">The current workflow.</param>
 /// <param name="salesOrderWorkItem">A sales order work item instance.</param>
 /// <param name="salesOrderItem">A sales order item instance.</param>
 /// <returns>An OUM combined summary.</returns>
 public static string GetUomCombined(
     SalesOrderWorkflow workflow,
     SalesOrderWorkItem salesOrderWorkItem,
     SalesOrderItem salesOrderItem
     ) => ItemDescriptionHelper.GetUomCombined(
     salesOrderWorkItem == null
         ? salesOrderItem?.ItemQuantity ?? 0
         : GetSalesOrderWorkDescriptionQuantity(workflow, salesOrderWorkItem),
     salesOrderWorkItem?.ItemDescription ?? salesOrderItem?.ItemDescription,
     salesOrderWorkItem?.Uom ?? salesOrderItem?.Uom
     );