Skip to content

Commit

Permalink
Bug 620281 - Adding reversing transaction to bill transactions create…
Browse files Browse the repository at this point in the history
…s undeleteable transactions
  • Loading branch information
gjanssens committed Mar 19, 2016
1 parent d1e148e commit 6c2c2d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine/Transaction.c
Expand Up @@ -2570,6 +2570,9 @@ xaccTransReverse (Transaction *orig)
kvp_val = kvp_value_new_guid(xaccTransGetGUID(trans));
kvp_frame_set_slot_nc(orig->inst.kvp_data, TRANS_REVERSED_BY, kvp_val);

/* Make sure the reverse transaction is not read-only */
xaccTransClearReadOnly(trans);

qof_instance_set_dirty(QOF_INSTANCE(trans));
xaccTransCommitEdit(trans);
return trans;
Expand Down

0 comments on commit 6c2c2d7

Please sign in to comment.