Skip to content

Two changes to the CreateLineItem action: 1) skip creating the Line Item if the Unit Price is zero and 2) provide the ability to set the Financial Type for a Line Item

Includes two changes:

  1. Change the CreateLineItem action to skip creating the Line Item if the Unit Price is zero instead of using the Contribution total amount as the Unit Price. When multiple Line Items are created the total for all the Line Items can exceed the Contribution total. This change fixes that issue and moves the responsibility back to the Action Provider to set up the Line Items correctly. The original author of this code may have a different opinion.
  2. Provide the ability to set the Financial Type for a Line Item. Currently the Contribution, Financial Type is used for all Line Items which is not always correct. For example: when a Membership Contribution has two Line Items: 1) Membership amount, Membership Financial Type and 2) Donation amount, Donation Financial Type

Agileware Ref: CVAP-20 CVAP-21

Edited by justinfreeman (Agileware)

Merge request reports