- Issue created by @aiden-grau
- 🇨🇦Canada karing 🇨🇦
Have you tried adding Line Item Editor extension? Any time I've raised any issue w/ Core not handling (multiple) line items as expected, I've have been told to install Line Item Editor extension by JMA. I've been hesitant to do that as it contained CRM overrides (perhaps still does), but sometimes clients do need to be able to edit line items.
Yes we are using that extension, if a line item is edited or added it does its thing and gets the totals correct, but it doesn't change the behaviour when the contribution edit form is submitted. I've used custom code in a hook_civicrm_pre implementation to check and correct the totals, but that doesn't seem like the right solution here. I think ideally the civicrm code needs to be improved, either that or perhaps modules creating multiple line item contributions need to do things differently (e.g. not use quick config)?
- 🇨🇦Canada karing 🇨🇦
CiviCRM Core should definitely loop through all line items regardless of their entity types, and regardless of whether they are quick config or not.
- 🇮🇳India jitendrapurohit
Gitlab issue raised in civicrm core - https://lab.civicrm.org/dev/core/-/issues/4698