-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design: Deleting Vouchers #2161
Comments
Note: there are a couple of modules that create vouchers or reference vouchers on the fly to provide their financial documentation. These would have to be accounted for. I believe some of the stock modules/purchasing will have to take this into account. |
I am wondering what is the purpose of this, because we can only discard a voucher or simply reverse it. |
The primary goal is to not leave any trailing receipts/documents when an accounting decides to remove a record from the Journal prior to it being posted. There are three other goals:
|
This commit implements the DELETE /transactions/:uuid route for the vouchers route. Closes #2161.
This commit implements the DELETE /transactions/:uuid route for the vouchers route. Closes #2161.
This commit implements the DELETE /transactions/:uuid route for the vouchers route. Closes #2161.
2188: feature: delete records r=DedrickEnc a=jniles This PR implements deleting cash payments following the proposal in #2044 and the design discussed in #2159. It does much of the heavy lifting for the other two delete issues - vouchers (#2161) and invoices (#2160). TODO: - [x] End to End Tests - [x] Delete Invoices #2160. - [x] Delete Vouchers #2161.
Closed in #2188. |
This issue covers the design for deleting vouchers using the proposal described in #2044.
Design
Deleting vouchers will be performed from the Voucher Registry and the Posting Journal (via the transaction edit modal). It is not allowed on posted records. A deleted voucher will remove the lines from the
voucher
,voucher_item
, andposting_journal
. It will also remove therecord_uuid
from thedocument_map
.There are some conditional rules on this operation:
The steps to implement this are:
HTTP DELETE /transactions/:uuid
that will determine if the transaction is a cash payment, voucher, or invoice.safelyDeleteVoucher(uuid)
in thefinance/vouchers.js.
module.The text was updated successfully, but these errors were encountered: