Menu

#1391 Draft transactions can't be deleted

1.4
closed-fixed
nobody
None
1.4
5
2015-07-11
2015-07-10
No

when I go to delete draft transactions
that turned out to the duplicates (usually because I couldn't find them
having not posted them properly, and then I duplicated them while
reconciling. It would be nice if the reconcilliation page would show
me draft transactions which have not been approved, not of course, letting me
select them until they are posted), I am getting:

23503:ERROR: update or delete on table "acc_trans" violates foreign key constraint "business_unit_ac_entry_id_fkey" on table "business_unit_ac"
DETAIL: Key (entry_id)=(24190) is still referenced from table "business_unit_ac". CONTEXT: SQL statement "DELETE FROM acc_trans WHERE trans_id = in_id" PL/pgSQL function "draft_delete" line 9 at SQL statement at LedgerSMB.pm line 782.

Discussion

  • Anonymous

    Anonymous - 2015-07-11
     
  • Anonymous

    Anonymous - 2015-07-11
    • status: open --> pending-fixed
     
  • Anonymous

    Anonymous - 2015-07-11
    • status: pending-fixed --> closed-fixed
     
  • Anonymous

    Anonymous - 2015-07-11

    Commit pushed to master and from there to 1.4. To be released as part of 1.4.13.