postExpenseReport Mutation
Posts an approved expense report to the GL: Dr the workspace expense posting account, Cr accounts payable, for the report's total. Reserves the report's ER- number on the way, stamps journalId/postedAt/postedBy and moves it to 'posted' — which is what puts it in the AP subledger, on Open Payables as ready for payment, and off the month-end close blocker. Approval stays non-GL and is untouched: its project cost entries keep firing where they always did, and this adds the ledger event after them. Access: 'accountingPost' in a workspace where finance is enabled. Errors: refuses a report that is not approved, one in a currency other than the workspace's (imported reports can carry one, past the create-time seal), a closed period, and a non-positive total.
Arguments
#
input
Response
#
Returns ExpenseReport !.
Example
#
postCustomerInvoice