Use specific function when formatting money for a default
authoreileen <emcnaughton@wikimedia.org>
Wed, 30 Dec 2020 02:00:32 +0000 (15:00 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 30 Dec 2020 02:00:32 +0000 (15:00 +1300)
commit48845185f01534a7b0f83b05944839a8070254d2
tree944ddfac6e730affef4b23f49d8f2d439c2ffcb2
parent43fd2d50323d1162d47578162c25d3dc070ceb79
Use specific function when formatting money for a default

It seems that there are really only 2 ways money::format is called
1) for presenting money - with symbols - in this case only 2 params are passed in
2) for prefilling the form value - in which case some combination of the last 3 are passed in

We have an alternate function that works in the latter case - at which point we could deprecate all
3 in the former case (after a bit more grepping).

The function name is formatLocaleNumericRoundedForDefaultCurrency

I have to admit I'm tempted to remove 'locale' from that name - although
I guess it denotes the swapping of thousand separators
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/Contribution.php
CRM/Grant/Form/Grant.php
CRM/Member/Form.php