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

CRM-20193 show financial_trxn currency on batch form. #9942

Closed
wants to merge 1 commit into from

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 7, 2017

To replicate this go to civicrm/financial/batch?reset=1&action=add & add a new batch arriving at
civicrm/batchtransaction?reset=1&bid=2

The table at the bottom of the page is affected.

This is a portion of the commit by pradpnayak which I understand, was able to test and can approve the code for.

There is still a portion on the ticket I have not yet understood enough to approve

@JoeMurray I've spend 50 mins making sense of #9930 & can definitely approve this part #9930 - which is what the ticket says. I'm still getting my head around the changes to the joins in the query


To replicate this go to civicrm/financial/batch?reset=1&action=add & add a new batch arriving at
civicrm/batchtransaction?reset=1&bid=2

The table at the bottom of the page is affected.

This is a portion of the commit by pradpnayak which I understand, was able to test and can approve the code for.

There is still a portion on the ticket I have not yet understood enough to approve
@eileenmcnaughton
Copy link
Contributor Author

@JoeMurray I can merge this - or wait for an explanation of that last line I don't understand in the other PR

if (!$notPresent) {
$where = " ( civicrm_entity_batch.batch_id = {$entityID}
AND civicrm_entity_batch.entity_table = 'civicrm_financial_trxn'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This criteria of entity_table = ft seems to replicate https://github.com/civicrm/civicrm-core/pull/9942/files#diff-4edf3d9f312c7543c00ef7d38bf21044L652, which is still present at https://github.com/civicrm/civicrm-core/pull/9942/files#diff-4edf3d9f312c7543c00ef7d38bf21044R654. I haven't followed through logic of $searchValue and $notPresent, but looking at the diff on a computer screen instead of my phone it looks better.

Copy link
Contributor

@JoeMurray JoeMurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks alot, @eileenmcnaughton !! Much appreciated. Looking over the PR on a big screen I'm more confident there is no problem with it. I've suggested a change to avoid replicating a logical part of query. Do my comments make sense to you? FWIW, I had the sense yesterday that there might be two versions of the query produced for different cases, and that the work of Pradeep only handled one, and that the problematic line from earlier version might have been a problem on the use case/query version that I did not provide to him.

AND civicrm_entity_batch.entity_table = 'civicrm_financial_trxn'
AND civicrm_entity_financial_trxn.entity_table = 'civicrm_contribution') ";
$where = " civicrm_entity_batch.batch_id = {$entityID}
AND civicrm_entity_batch.entity_table = 'civicrm_financial_trxn'";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants