Skip to main content

MGCLatticeProjectInvoiceService

Custom service for project invoice operations including creating and optionally posting invoice proposals.

Methods​

new​

Initializes a new instance of the MGCLatticeProjectInvoiceService class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeProjectInvoiceService class.

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

No parameters.

createInvoiceProposal​

Creates a project invoice proposal and optionally posts it based on the PostAfterCreate flag. The proposal is committed before it is posted; when the post fails, the proposal is deleted again (which returns its transactions to invoiceable), so the failed request leaves nothing behind and a retry with the same RequestId creates and posts a fresh proposal.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeProjectInvoiceProposalRequestContractNoThe request containing ProjId, InvoiceDate, PostAfterCreate flag, and standard header fields.

createInvoiceProposalBatch​

Creates and posts multiple project invoice proposals in a single bulk operation.

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