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.
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