[REF] small cleanups on payment.create flow.
authoreileen <emcnaughton@wikimedia.org>
Thu, 7 Mar 2019 05:07:23 +0000 (18:07 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 7 Mar 2019 13:32:59 +0000 (02:32 +1300)
commit54ec483944e1891efaed51f42c1814e60e0f6c41
treef47b641f2dd66ff67479151f53534183981434fe
parentfc07aa1b8fe1e1f47399bf023510b57efab06ac4
[REF] small cleanups on payment.create flow.

In the interests of keeping some momentum I added this small cleanup which does 3 things

1) uses the preferred function to get 'from_financial_account_id', 2 moves a line of code to get participantID
& 3 removes the conditionals around is_payment. This probably needs the most double checking but
I believe recordPartialPaymet used to be called from places other than Payment.create so
it may not have always been handling a payment - however it I can't see a case for it not be
is_payment now
CRM/Contribute/BAO/Contribution.php
CRM/Financial/BAO/Payment.php