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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2878829-2.patch | 720 bytes | bbujisic |
Comments
Comment #2
bbujisic commentedThe patch is dependent on changes introduced in #2878812: Make transaction_id a primary key in commerce_purchase_order
Comment #3
bbujisic commentedComment #5
bbujisic commented