Skip to main content

MGCLatticePurchasePrepaymentInvoiceRequestContract

Request contract for posting a vendor prepayment invoice for a purchase order (postPurchasePrepaymentInvoice): the purchase order (or its external key), the vendor's invoice number, the prepayment to set up when the order has none yet (a percentage or a fixed amount, the procurement category it posts with and an optional description), the optional invoice and posting dates, the preview flag (always refused) and the common envelope fields.

Methods​

construct​

Creates a new instance of the MGCLatticePurchasePrepaymentInvoiceRequestContract class.

  • Visibility: public
  • Returns: MGCLatticePurchasePrepaymentInvoiceRequestContract A new MGCLatticePurchasePrepaymentInvoiceRequestContract instance.

No parameters.

parmCorrelationId​

Gets or sets the correlation identifier for tracing the request across systems.

  • Visibility: public
  • Returns: Guid The CorrelationId value.
NameTypeOptionalDescription
_correlationIdGuidYesThe CorrelationId value.

parmRequestId​

Gets or sets the unique request identifier for idempotency.

  • Visibility: public
  • Returns: Guid The RequestId value.
NameTypeOptionalDescription
_requestIdGuidYesThe RequestId value.

parmLegalEntityId​

Gets or sets the legal entity (company) of the purchase order.

  • Visibility: public
  • Returns: DataAreaId The LegalEntityId value.
NameTypeOptionalDescription
_legalEntityIdDataAreaIdYesThe LegalEntityId value.

parmUserContext​

Gets or sets the calling system's user context (informational).

  • Visibility: public
  • Returns: UserId The UserContext value.
NameTypeOptionalDescription
_userContextUserIdYesThe UserContext value.

parmPurchaseOrderId​

Gets or sets the purchase order the prepayment invoice is posted for (or send PurchaseOrderIdExternalKey).

  • Visibility: public
  • Returns: PurchId The PurchaseOrderId value.
NameTypeOptionalDescription
_purchaseOrderIdPurchIdYesThe PurchaseOrderId value.

parmVendorInvoiceNumber​

Gets or sets the vendor's number of the prepayment invoice (required); it becomes the posted invoice number.

  • Visibility: public
  • Returns: VendInvoiceId The VendorInvoiceNumber value.
NameTypeOptionalDescription
_vendorInvoiceNumberVendInvoiceIdYesThe VendorInvoiceNumber value.

parmPrepaymentPercent​

Gets or sets the prepayment as a percentage of the order total (greater than 0, at most 100). Send it or PrepaymentAmount when the order has no prepayment yet; on an order that has one, leave both out (or send the same values).

  • Visibility: public
  • Returns: Percent The PrepaymentPercent value.
NameTypeOptionalDescription
_prepaymentPercentPercentYesThe PrepaymentPercent value.

parmPrepaymentAmount​

Gets or sets the prepayment as a fixed amount in the order's currency (greater than 0, at most the order total). Send it or PrepaymentPercent when the order has no prepayment yet.

  • Visibility: public
  • Returns: AmountCur The PrepaymentAmount value.
NameTypeOptionalDescription
_prepaymentAmountAmountCurYesThe PrepaymentAmount value.

parmPrepaymentCategoryName​

Gets or sets the procurement category the prepayment is posted with, by name. Required when the order has no prepayment yet; it must not be the category of any line of the order.

  • Visibility: public
  • Returns: EcoResCategoryName The PrepaymentCategoryName value.
NameTypeOptionalDescription
_prepaymentCategoryNameEcoResCategoryNameYesThe PrepaymentCategoryName value.

parmPrepaymentCategoryHierarchyName​

Gets or sets the procurement category hierarchy of PrepaymentCategoryName. Optional: needed only when the category name exists in more than one procurement category hierarchy.

  • Visibility: public
  • Returns: EcoResCategoryHierarchyName The PrepaymentCategoryHierarchyName value.
NameTypeOptionalDescription
_prepaymentCategoryHierarchyNameEcoResCategoryHierarchyNameYesThe PrepaymentCategoryHierarchyName value.

parmPrepaymentDescription​

Gets or sets the description of a prepayment the operation sets up. Optional.

  • Visibility: public
  • Returns: PurchPrepayDescription The PrepaymentDescription value.
NameTypeOptionalDescription
_prepaymentDescriptionPurchPrepayDescriptionYesThe PrepaymentDescription value.

parmInvoiceDate​

Gets or sets the invoice date of the prepayment invoice. Optional: the vendor invoice's default applies.

  • Visibility: public
  • Returns: DocumentDate The InvoiceDate value.
NameTypeOptionalDescription
_invoiceDateDocumentDateYesThe InvoiceDate value.

parmPostingDate​

Gets or sets the posting date of the prepayment invoice. Optional: today.

  • Visibility: public
  • Returns: TransDate The PostingDate value.
NameTypeOptionalDescription
_postingDateTransDateYesThe PostingDate value.

parmPreviewMode​

Gets or sets preview mode. The operation has no preview, so a request with PreviewMode set is refused.

  • Visibility: public
  • Returns: boolean The PreviewMode value.
NameTypeOptionalDescription
_previewModebooleanYesThe PreviewMode value.

parmExternalSystem​

Gets or sets the external system whose keys the request's external key members hold.

  • Visibility: public
  • Returns: MGCLatticeExternalSystemId The ExternalSystem value.
NameTypeOptionalDescription
_externalSystemMGCLatticeExternalSystemIdYesThe ExternalSystem value.

parmPurchaseOrderIdExternalKey​

Gets or sets the external system's key of the purchase order, in place of PurchaseOrderId.

  • Visibility: public
  • Returns: MGCLatticeExternalKey The PurchaseOrderIdExternalKey value.
NameTypeOptionalDescription
_purchaseOrderIdExternalKeyMGCLatticeExternalKeyYesThe PurchaseOrderIdExternalKey value.