Details
-
Type: Bug
-
Status: Open
-
Priority: Trivial
-
Resolution: Unresolved
-
Affects Version/s: 4.7.23
-
Fix Version/s: 4.7.23
-
Component/s: CiviContribute
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:User and Admin Doc
-
Funding Source:Needs Funding
-
Verified?:No
-
Overview:This change relates to Refunds for a paid event or other contribution, where the original price came from a price-set and was paid for online.
-
How it works currently:
-
How it should work:
Description
In CiviContribute - I submitted a refund for an event where the price-set used contains an event fee and a service fee, with 2 different financial types. The Refund 'contribution' record showed the total amount for both line items, and the financial type as event fee for both. For the whole priceset the fin. type is event fee, but within the price-set there can be an event fee, a service fee, or a donation.
The modifications I made to CRM/Contribute/BAO/Contribution.php will 1) retain the financial type of the line item within the refund, and 2) show the amounts per line-item (with the sign reversed). I inserted lines 3645-57 and modified function getFinancialItemAmountFromParams, line 5336 - 38