dev/financial#34 Fix line allocation in Payment.create
authoreileen <emcnaughton@wikimedia.org>
Tue, 9 Jul 2019 09:47:25 +0000 (21:47 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 04:25:24 +0000 (17:25 +1300)
commitf5a468db69acd4d8f6d6b200650c7af00bfef7e1
tree95b1cf0ec5b7a78f9d53c3cfe214b775abe45a3d
parentfac6a69aff309ca4d967a79db23267ebd177d735
dev/financial#34 Fix line allocation in Payment.create

Cast result of getContributionBalance to float to match comment block.

Without this it is possible for it to return 'null' which is not useful / in keeping. I did a bit of an audit &
did not find places where this would cause an === comparison to fail
CRM/Financial/BAO/Payment.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php