Skip to main content

MGCLatticeExpenseReportService.postExpenseReport

Posts an approved expense report the way the expense report's Post button and the workflow's automated posting do (TrvExpTable.validatePost, then the standard TrvPost::post, which posts the whole report through TrvPostExpenseHeader: the vendor, ledger or bank transactions of each line's payment method, the project transactions of project lines, sales tax, and the report and lines set to Posted), in one transaction: the report either posts completely or stays as it was.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeExpenseServiceGroup/MGCLatticeExpenseReportService/postExpenseReport
  • Service class: MGCLatticeExpenseReportService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeExpenseReportPostRequestContractNoThe request containing ExpenseReportNumber and standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract: DocumentId is the expense report number, PostedDocumentId the posting voucher (of the first line; the message lists every voucher).

Security​

  • Requires privilege MGCLatticeExpenseReportServiceMaintain