Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.12, 4.6
-
Fix Version/s: 4.6
-
Component/s: CiviContribute
-
Labels:None
-
Documentation Required?:None
Description
Add a Contribution edit form rule that prevents Financial Type from being changed unless all line items have the same financial type as the contribution. Error message: 'One or more line items have a different financial type than the contribution. Editing the financial type is not yet supported in this situation.'
Original Description:
When you edit a contribution by changing the financial type, contribution.financial_type_id is updated; financial_item.financial_account_id is updated but line_item.financial_type_id is not updated.
This breaks the 'link' there should be between the financial_item.financial account _id and the line_item.financial_type_id
I consider the introduction of inconsistencies between tables in the DB to be a major problem.
I have not confirmed this on a demo site as the extended report extension is not installed on them, so the only way I know to check is to look in the database.
I have confirmed this happens on both my 4.4.12 and 4.6 alpha7 installs.
(See http://forum.civicrm.org/index.php/topic,35864 for more details.)