Click or drag to resize

DocumentExtensionsCreateAdjustmentT Method

Creates an adjustment document for the specified document including the specified child collections.

Namespace:  Aloe.EnterpriseOne.Model.General
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static T CreateAdjustment<T>(
	this T obj,
	params IEnumerable<EntityObject>[] childObjects
)
where T : Document

Parameters

obj
Type: T
The object.
childObjects
Type: System.Collections.GenericIEnumerableEntityObject
The child objects to duplicate. Can be union of several child collections or just some of the child objects.

Type Parameters

T
The document type

Return Value

Type: T
The newly created adjustment document

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

The released documents can not be modified because they become read-only. The only way to modify a released document is to create an adjustment document. Initially all attributes of the adjustment document are copied from the original document except the scalar attributes (amounts and quantities).

Scalar attributes are set to zero because when the adjustment document is applied to the original the value in the adjustment document is added to the value in the original document. For example if the original quantity is 5 pcs and we want to set it to 3 pcs the value in the adjustment document should be set to -2 pcs.

The adjustment is applied to the original document when the state of the adjustment document is set to Adjustment

See Also