Problem/Motivation

If someone wants to sum the total amounts of payments in an aggregated view, there is no way to do this as the payment amount is stored on a line item plugin which gets serialized in the database.

Proposed resolution

Add a total_amount field to the payment entity which is updated on entity save.

Remaining tasks

  • Add new field in update hook
  • Add post update to save existing payments
  • Add views data

User interface changes

None

API changes

New field on payment entity

Data model changes

New field on payment entity

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yanniboi created an issue. See original summary.

yanniboi’s picture

Issue summary: View changes
Status: Active » Needs review
Related issues: +#2754289: Provide a current payment status field
FileSize
4.08 KB
yanniboi’s picture

Updated total field to be decimal type for better precision in reporting.