MGCLatticeSalesOrderInvoiceRequestContract
Request contract for invoicing a sales order. Carries the target sales order, posting date, the optional lines to invoice, the preview flag, and the common envelope fields (correlation/request identifiers, legal entity, user context). The invoice number always comes from the number sequence and is returned as PostedDocumentId.
Methods
new
Initializes a new instance of the MGCLatticeSalesOrderInvoiceRequestContract class.
- Visibility:
public - Returns:
void
No parameters.
construct
Creates a new instance of the MGCLatticeSalesOrderInvoiceRequestContract class.
- Visibility:
public - Returns:
MGCLatticeSalesOrderInvoiceRequestContractA new MGCLatticeSalesOrderInvoiceRequestContract instance.
No parameters.
parmCorrelationId
Gets or sets the correlation identifier for tracing the request across systems.
- Visibility:
public - Returns:
GuidThe CorrelationId value.
| Name | Type | Optional | Description |
|---|---|---|---|
_correlationId | Guid | Yes | The CorrelationId value. |
parmRequestId
Gets or sets the unique request identifier for idempotency.
- Visibility:
public - Returns:
GuidThe RequestId value.
| Name | Type | Optional | Description |
|---|---|---|---|
_requestId | Guid | Yes | The RequestId value. |
parmLegalEntityId
Gets or sets the legal entity (company) in which to execute the operation.
- Visibility:
public - Returns:
DataAreaIdThe LegalEntityId value.
| Name | Type | Optional | Description |
|---|---|---|---|
_legalEntityId | DataAreaId | Yes | The LegalEntityId value. |
parmUserContext
Gets or sets the user context under which the operation executes.
- Visibility:
public - Returns:
UserIdThe UserContext value.
| Name | Type | Optional | Description |
|---|---|---|---|
_userContext | UserId | Yes | The UserContext value. |
parmSalesOrderId
Gets or sets the sales order identifier.
- Visibility:
public - Returns:
SalesIdThe SalesOrderId value.
| Name | Type | Optional | Description |
|---|---|---|---|
_salesOrderId | SalesId | Yes | The SalesOrderId value. |
parmPostingDate
Gets or sets the posting date for the journal entry.
- Visibility:
public - Returns:
TransDateThe PostingDate value.
| Name | Type | Optional | Description |
|---|---|---|---|
_postingDate | TransDate | Yes | The PostingDate value. |
parmLines
Gets or sets the collection of line-level details for the operation.
- Visibility:
public - Returns:
ListThe collection of line items.
| Name | Type | Optional | Description |
|---|---|---|---|
_lines | List | Yes | The collection of line items. |
parmPreviewMode
Gets or sets whether this request runs in preview (run-and-abort) mode.
- Visibility:
public - Returns:
booleanThe current preview flag.
| Name | Type | Optional | Description |
|---|---|---|---|
_previewMode | boolean | Yes | The preview flag to set. |
parmExternalSystem
Gets or sets the external system whose keys the request's external key members hold.
- Visibility:
public - Returns:
MGCLatticeExternalSystemIdThe ExternalSystem value.
| Name | Type | Optional | Description |
|---|---|---|---|
_externalSystem | MGCLatticeExternalSystemId | Yes | The ExternalSystem value. |
parmSalesOrderIdExternalKey
Gets or sets the external system's key of the sales order, in place of SalesOrderId.
- Visibility:
public - Returns:
MGCLatticeExternalKeyThe SalesOrderIdExternalKey value.
| Name | Type | Optional | Description |
|---|---|---|---|
_salesOrderIdExternalKey | MGCLatticeExternalKey | Yes | The SalesOrderIdExternalKey value. |