Magidoc

voidReceipt
Mutation

Voids a posted receipt: reverses the journal that posted it and puts every invoice it applied to back to the balance it carried before. The reversal is numbered after the original journal with a -VOID suffix rather than drawn from the series. Refused on a receipt already voided, one that never posted, one whose journal is cleared on a bank reconciliation, and one recorded in a currency other than the workspace's.

Arguments

#

receiptId

ID !
Non-null

reason

Non-null

Response

#

Returns Receipt !.

Example

#