Show / Hide Table of Contents

Class PurchaseOrderReceipt

Wraps a line in a purchase order receipt.

Inheritance
System.Object
JTObject
PurchaseOrderReceipt
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: Moraware.JobTrackerAPI5
Assembly: JobTrackerAPI5.dll
Syntax
public class PurchaseOrderReceipt : JTObject

Constructors

PurchaseOrderReceipt(Int32, PurchaseOrderReceipt.IdType_Enum)

Depending on the idType_, creates an object used to either receive a PurchaseOrder (in whole or in part), or to update an existing PurchaseOrderReceipt. When updating an existing receipt, the SerialNumber property will be set to an uninitialized SerialNumber object so that the associated serial number may be updated as well.

Declaration
public PurchaseOrderReceipt(int id_, PurchaseOrderReceipt.IdType_Enum idType_)
Parameters
Type Name Description
System.Int32 id_

Identifies either a purchase order, a purchase order line, a purchase order receipt or an unreceived serial number.

PurchaseOrderReceipt.IdType_Enum idType_

Indicates the purpose of id_.

PurchaseOrderReceipt(Int32, SerialNumber)

Creates an object used to receive an UnreceivedSerialNumber and potentially update the SerialNumber's properties.

Declaration
public PurchaseOrderReceipt(int unreceivedSerialNumberId_, SerialNumber serialNumber_)
Parameters
Type Name Description
System.Int32 unreceivedSerialNumberId_

Identifies an unreceived serial number.

SerialNumber serialNumber_

The properties of the associated serial number will be updated (if necessary) based on this parameter's values.

PurchaseOrderReceipt(Int32, Boolean, Decimal, SerialNumber)

Creates an object used to create a PurchaseOrderReceipt based on either a PurchaseOrderLine or an UnreceivedSerialNumber.

Declaration
public PurchaseOrderReceipt(int purchaseOrderLineOrUnreceivedSerialNumberId_, bool isPurchaseOrderLine_, decimal quantity_, SerialNumber serialNumber_)
Parameters
Type Name Description
System.Int32 purchaseOrderLineOrUnreceivedSerialNumberId_

Identifies either a purchase order line or an unreceived serial number.

System.Boolean isPurchaseOrderLine_

Indicates the purpose of the purchaseOrderLineOrUnreceivedSerialNumberId_ parameter.

System.Decimal quantity_

Quantity to be assigned to the receipt.

SerialNumber serialNumber_

When creating a new PurchaseOrderReceipt, the properties of the resulting serial number will be based on this parameter's values.

PurchaseOrderReceipt(Int32, Decimal)

Creates an object used to receive a PurchaseOrderLine.

Declaration
public PurchaseOrderReceipt(int purchaseOrderLineId_, decimal quantity_)
Parameters
Type Name Description
System.Int32 purchaseOrderLineId_

The line to be received.

System.Decimal quantity_

The Quantity to be received.

Properties

DeliveryDate

The delivery date.

Declaration
public DateTime DeliveryDate { get; set; }
Property Value
Type Description
System.DateTime

PurchaseOrderId

Identifies the purchase order.

Declaration
public int PurchaseOrderId { get; }
Property Value
Type Description
System.Int32

PurchaseOrderLineId

Identifies the purchase order line.

Declaration
public int PurchaseOrderLineId { get; }
Property Value
Type Description
System.Int32

PurchaseOrderReceiptId

Identifies the purchase order receipt.

Declaration
public int PurchaseOrderReceiptId { get; }
Property Value
Type Description
System.Int32

Quantity

Quantity.

Declaration
public decimal Quantity { get; set; }
Property Value
Type Description
System.Decimal

SerialNumber

SerialNumber.

Declaration
public SerialNumber SerialNumber { get; }
Property Value
Type Description
SerialNumber

UnreceivedSerialNumberId

Identifies the unreceived serial number. This property is set when you create a PurchaseOrderReceipt object that you intend to use to create a receipt for an UnreceivedSerialNumber.

Declaration
public int? UnreceivedSerialNumberId { get; }
Property Value
Type Description
System.Nullable<System.Int32>
Back to top Generated by DocFX