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

[REF] un-extract createProportionalFinancialEntities #14742

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jul 5, 2019

Overview

Separate code that is being shared in an unhelpful way back into it's calling function. This unextraction it preliminary to different cleanups but not unsharing this code makes that possible. I have duplicated the contents of the function as it is still used by change payment instrument and the goal is to fix adding payments without touching that

Before

Less clean-upable

After

More cleanupable

Technical Details

This is one of those places where, unituitively, I think undoing an extraction makes sense.

The code for allocating monies to financial items is shared with the change payment instrument functionality
but fundamentally these are different processes and sharing the code is making it less rather than more readable.

My goal is to pull back all the code that handles processing financials off a payment back into Payment.create
and to clean it up from there

Comments

This is one of those places where, unituitively, I think undoing an extraction makes sense.

The code for allocating monies to financial items is shared with the change payment instrument functionality
but fundamentally these are different processes and sharing the code is making it less rather than more readable.

My goal is to pull back all the code that handles processing financials off a payment back into Payment.create
and to clean it up from there
@civibot
Copy link

civibot bot commented Jul 5, 2019

(Standard links)

@civibot civibot bot added the master label Jul 5, 2019
@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@colemanw can you merge this - can't believe I'm advocating return to copy & paste :-)

@colemanw colemanw merged commit bb21991 into civicrm:master Jul 8, 2019
@eileenmcnaughton eileenmcnaughton deleted the payment_out branch July 9, 2019 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants