So - a return contains line items, just like an order. When creating a view of line items it's currently not possible to create a relationship to the parent return entity under which each line item exists.

It appears this can be done by traversing through the junction table provided by the line item reference field, in combination with the views_handler_relationship_entity_reverse core views handler.

Patch coming soon.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisolof created an issue. See original summary.

chrisolof’s picture

Status: Active » Needs review
FileSize
2.67 KB

Attached patch adds a relationship in views from the line item to the return entity referencing it.

Kleinast’s picture

Version: 7.x-2.x-dev » 7.x-2.0-rc2

Patch did'nt apply correctly on the rc2 version, but code add manualy seem work perfectly.
Save my day, thx.

chrisolof’s picture

Version: 7.x-2.0-rc2 » 7.x-2.x-dev

Glad to hear it worked Kleinast! If you try applying it to 7.x-2.x-dev and it works for you feel free to mark it RTBC so we can get this in the next release.

Also - I'm switching the issue version back to dev branch since that's where this patch is intended to land (and that's what it is rolled against).