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:
MGCLatticeVendorInvoiceServiceA 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId is the vendor's invoice number of the posted invoice, PostedDocumentId the voucher of the posted vendor invoice (VendInvoiceJour.LedgerVoucher).
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticePendingVendorInvoicePostRequestContract | No | The 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List of MGCLatticePendingVendorInvoicePostRequestContract. |