Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add amount as standard property to PaymentPropertyBag #20037

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

mattwire
Copy link
Contributor

Overview

amount is already a standard property and has no aliases so technically it doesn't matter if it's in the list of properties or not. But a developer reading the code expects it to be there.

If in the future we needed to add an alias to support some old code (eg. total_amount/gross_amount) you'd need this and then you'd add the aliases to point to it.
I think those properties have gone from core now but if they were still there this would allow transitioning them to amount

Before

amount missing from list of properties.

After

amount in list of properties.

Technical Details

Explained above.

Comments

@civibot
Copy link

civibot bot commented Apr 11, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor

I agree that was confusing me too.

@seamuslee001 seamuslee001 merged commit 590dc77 into civicrm:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants