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:
MGCLatticeProjectInvoiceServiceA 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract indicating success or failure with details.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeProjectInvoiceProposalRequestContract | No | The 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List of MGCLatticeProjectInvoiceProposalRequestContract. |