Skip to main content

MGCLatticeVendorInvoiceService

Custom service for pending vendor invoices (Accounts payable > Invoices > Pending vendor invoices): posting a pending invoice, with or without purchase order lines.

Methods​

new​

Initializes a new instance of the MGCLatticeVendorInvoiceService class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeVendorInvoiceService class.

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

No parameters.

postPendingVendorInvoice​

Posts a pending vendor invoice (Accounts payable > Invoices > Pending vendor invoices), with or without purchase order lines, the way the page's Post does (see postSavedInvoice), in one transaction: the invoice either posts completely or stays pending as it was.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId is the vendor's invoice number of the posted invoice, PostedDocumentId the voucher of the posted vendor invoice (VendInvoiceJour.LedgerVoucher).
NameTypeOptionalDescription
_requestMGCLatticePendingVendorInvoicePostRequestContractNoThe request: HeaderReference, or VendorAccount (or its external key) with InvoiceNumber, and the standard header fields.

postPendingVendorInvoiceBatch​

Posts several pending vendor invoices in a single bulk operation; each item is posted on its own, with its own result.

  • Visibility: public
  • Returns: MGCLatticeBulkOperationResponseContract An MGCLatticeBulkOperationResponseContract containing per-item results.
NameTypeOptionalDescription
_requestsListNoList of MGCLatticePendingVendorInvoicePostRequestContract.