Scenario: a user creates a purchase order transaction. Then deletes it and tries creating another one with the same PO number.

Duplicate entry error happens because previous PO (with the same order_id-po_number value) was not deleted.

Solution: When transactions are deleted, delete related PO's too.

CommentFileSizeAuthor
#2 2878829-2.patch720 bytesbbujisic

Comments

bbujisic created an issue. See original summary.

bbujisic’s picture

StatusFileSize
new720 bytes

The patch is dependent on changes introduced in #2878812: Make transaction_id a primary key in commerce_purchase_order

bbujisic’s picture

Status: Active » Needs review

  • bbujisic committed ea924ee on 7.x-1.x
    Issue #2878829 by bbujisic: Delete 'commerce_purchase_order' record when...
bbujisic’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.