From 73d8f0a695957fcb25225b199a947e95f90b43a0 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton <emcnaughton@wikimedia.org> Date: Sat, 26 Oct 2019 09:33:28 +1300 Subject: [PATCH] Update docs/financial/financialentities.md Co-Authored-By: Mikey O'Toole <mikey@mjco.uk> --- docs/financial/financialentities.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/financial/financialentities.md b/docs/financial/financialentities.md index 6fadfd1c..ac6ecd5e 100644 --- a/docs/financial/financialentities.md +++ b/docs/financial/financialentities.md @@ -79,7 +79,7 @@ of the line item that has been paid by that payment. If the line items change then the items financial items have to be updated. Generally the rule is to alter the zero out the old line item, reverse the financial items and then create a new line item with new financial items. However, this is not always possible as there are some scenarios where the schema does not permit this. The has led to -adjustment line items being created in these cases. The issue is that the civicrm_line_item table has a unique index for +adjustment line items being created in these cases. The issue is that the `civicrm_line_item` table has a unique index for `entity_table + entity_id + contribution_id + price_field_value_id + price_field_id`. This means that if a line item with no `price_field_values` (i.e: a text / enter quantity line item) is altered it is not possible -- GitLab