We need this for recurring billing. Changing a "plan" (the referenced product) should result in a new revision being created, since it's a radical license change.
Other use cases might pop up later too.

So, let's do it.

Comments

bojanz’s picture

Status: Active » Needs review
StatusFileSize
new10.34 KB

Initial patch.

Revisioning will be off by default (meaning there will always one only one revision per license), but commerce_license_billing will force a new revision to be created for each product_id or status change.

bojanz’s picture

Status: Needs review » Fixed
StatusFileSize
new11.16 KB

Committed the attached patch.

Status: Fixed » Closed (fixed)

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

retrodans’s picture

Issue summary: View changes

@bojanz I was wondering whether you might be able to help. I created a new ticket as this one was closed, but am after a little pointer in how to enable revisions for licences in my code as you mentioned in comment #1.

Thanks,
Dan