Class PurchaseOrderSplitLine.SplitMeasurement
Class used to indicate a quantity to be split off from the original line, as well as an optional receipt or unserialized serial number and an optional set of measurements.
Inheritance
Inherited Members
Namespace: Moraware.JobTrackerAPI5
Assembly: JobTrackerAPI5.dll
Syntax
public class SplitMeasurement
Constructors
SplitMeasurement(IEnumerable<Int32>, IEnumerable<Measurement>)
Used to split off a set of unreceived serial numbers with a given set of measurements.
Declaration
public SplitMeasurement(IEnumerable<int> unreceivedSerialNumberIds_, IEnumerable<Measurement> measurements_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Int32> | unreceivedSerialNumberIds_ | Unreceived serial numbers to be moved to the newly split off line and associated with the given measurements. |
| System.Collections.Generic.IEnumerable<Measurement> | measurements_ | The measurements for the new line. |
SplitMeasurement(Decimal, IEnumerable<Measurement>)
Used to split off a line with a specific quantity and set of measurements without carrying over any existing unreceived serial numbers or purchase order receipts.
Declaration
public SplitMeasurement(decimal quantity_, IEnumerable<Measurement> measurements_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Decimal | quantity_ | Quanitity to assign the new line. |
| System.Collections.Generic.IEnumerable<Measurement> | measurements_ | Measurements of the new line. |
SplitMeasurement(Int32, IEnumerable<Measurement>)
Used to split off a single unreceived serial number with a given set of measurements.
Declaration
public SplitMeasurement(int unreceivedSerialNumberId_, IEnumerable<Measurement> measurements_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | unreceivedSerialNumberId_ | Unreceived serial number to be moved to the newly split off line and associated with the given measurements. |
| System.Collections.Generic.IEnumerable<Measurement> | measurements_ | The measurements for the new line. |
SplitMeasurement(Nullable<Decimal>, IEnumerable<Measurement>, IEnumerable<Int32>, IEnumerable<Int32>)
Used to split off a line for an existing purchase order receipt with a specific quantity and set of measurments.
Declaration
public SplitMeasurement(decimal? availableQuantity_, IEnumerable<Measurement> measurements_, IEnumerable<int> unreceivedSerialNumberIds_, IEnumerable<int> purchaseOrderReceiptIds_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Decimal> | availableQuantity_ | (Optional) quantity to assign the new line on top of that which is already assigned to the specified unreceived serial numbers and purchase order receipts. (This can be zero but not negative.) |
| System.Collections.Generic.IEnumerable<Measurement> | measurements_ | Measurements for the new line. |
| System.Collections.Generic.IEnumerable<System.Int32> | unreceivedSerialNumberIds_ | Unreceived serial numbers to be moved to the newly split off line and associated with the given measurements. |
| System.Collections.Generic.IEnumerable<System.Int32> | purchaseOrderReceiptIds_ | Purchase order receipts to be moved to the newly split off line and associated with the given measurements. |
Properties
AvailableQuantity
Indicates the quantity to be moved to the new purchase order that isn't accounted for by any receipts or unreceived serial numbers.
Declaration
public decimal? AvailableQuantity { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Decimal> |
Measurements
The measurements to be used for the new purchase order line.
Declaration
public List<Measurement> Measurements { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<Measurement> |
NewPurchaseOrderLineId
After creating the new split lines, this property will be assigned the id of the newly created PurchaseOrderLine.
Declaration
public int NewPurchaseOrderLineId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PurchaseOrderReceiptIds
Identifies the receipts to be moved to the new purchase order line.
Declaration
public List<int> PurchaseOrderReceiptIds { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Int32> |
UnreceivedSerialNumberIds
Identifies the unreceived serial numbers to be moved to the new purchase order line.
Declaration
public List<int> UnreceivedSerialNumberIds { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Int32> |