CRM-21698 move formatting to processor class.
authoreileen <emcnaughton@wikimedia.org>
Tue, 23 Jan 2018 08:54:43 +0000 (21:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 23 Jan 2018 11:16:19 +0000 (00:16 +1300)
commit88afada713a41bd8104ddad5080a0043715da3f2
treee608d48d91f58d00bc8a64ea4d65ac11024ff8ec
parent940762f5102cdaa3f4d0fcd95696be68d39c70e2
CRM-21698 move formatting to processor class.

This moves the fix for CRM-16460 to the processor class, providing a helper function.

The fix put number formatting deep into the BAO - when they don't work right
(depending on presence of money_format function I think) negative amounts
become 0
CRM/Core/Payment.php
CRM/Core/Payment/PayPalImpl.php
CRM/Price/BAO/PriceSet.php