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

Demo sample data - Add in some mixed currency contributions #22307

Merged
merged 2 commits into from
Dec 24, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Add in some mixed currency contributions

Before

All contributions and the (newly added) recurring contributions are in USD

After

A smattering of other currencies

Technical Details

This includes the 'all new installs' approach to having more currencies than just USD
#22305

Comments

Putting the definition in an array rather than raw sql will be more useful in next rounds on this code

@civibot
Copy link

civibot bot commented Dec 23, 2021

(Standard links)

@civibot civibot bot added the master label Dec 23, 2021
@eileenmcnaughton eileenmcnaughton force-pushed the mixed_currency branch 5 times, most recently from 6b2b385 to 04c18f9 Compare December 23, 2021 04:50
This fixes some of the contributions & recurring contributions to be in currencies other than USD.

I also found that a lot of the contributions being created are either in 2010 or on the generation
date so I spread the dates out a bit - although that meant making it a bit easier to
keep the activities in sync.

It turns out the API does work in this context - and that would create the activities
more faithfully - but the issues around the processor being created by a different process are
a bit challenging
@eileenmcnaughton eileenmcnaughton changed the title Add in some mixed currency contributions Demo sample data - Add in some mixed currency contributions Dec 23, 2021
@demeritcowboy
Copy link
Contributor

demeritcowboy commented Dec 24, 2021

Tested clean and sample data install. Looks good.

Contributions 2 and 5 are the same except for transaction id, but that's maybe not a bad thing since real data can be like that.

And it's pre-existing that all the dates are "today" for the other contributions that get generated.

Comments in #22305 support the idea of adding the currencies to a clean install.

@demeritcowboy demeritcowboy merged commit bbf5dd1 into civicrm:master Dec 24, 2021
@eileenmcnaughton eileenmcnaughton deleted the mixed_currency branch December 27, 2021 05:31
@eileenmcnaughton
Copy link
Contributor Author

thanks @demeritcowboy - I think the other contributions are memberships & yeah they are a bit samey

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