unpostExpenseReport Mutation
Takes a posted expense report back out of the books: reverses its journal through the shared reversal builder, into the period the expense was booked in, and returns the report to 'approved' with journalId/postedAt/postedBy cleared. The report keeps its number, so a re-post is the same document rather than a second one. Not a void: an expense report is a person's claim, so unposting says the books were wrong rather than that the claim was, and the approval-time project cost entries are left standing. Rejecting is how a claim is cancelled. Access: 'accountingUnpost' in a workspace where finance is enabled. Errors: refuses a report that is not posted, one any reimbursement has been paid against (void the payment first), and a reversal into a closed period.
Arguments
#
input
Response
#
Returns ExpenseReport !.
Example
#
unmatchReconciliationLine
unpostJournal