CRM-19273 extract code to get financial items and filter those already cancelled.
authoreileen <emcnaughton@wikimedia.org>
Sun, 19 Nov 2017 21:43:03 +0000 (10:43 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 21 Nov 2017 04:40:49 +0000 (17:40 +1300)
commit667f909124f110c8530bb9cfb5213e6cb0022954
treef531be67ce5dd00aea35e6709dcea90d451b4409
parent2d6066c59221a3f70be54b4e0c5d238a4e9f0093
CRM-19273 extract code to get financial items and filter those already cancelled.

This is the first of the broken-out changes in https://github.com/civicrm/civicrm-core/pull/10962 that results in
an actual functionality change. The code that retrieves the relevant financial items is separated into
it's own function. But then a php loop iterates through and eliminates any items that have
already been reversed. This is a scenario identified in the unit tests on 10962 and occurs when
the the option value has is changed and then changed again - the items from the first change
should not be re-changed.
CRM/Price/BAO/LineItem.php