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 reimbursement email preview #1146

Merged
merged 1 commit into from
May 16, 2016

Conversation

kennyadsl
Copy link
Member

It allows testing emails like other ones with the rails preview. To watch and work with this preview a real reimbursement (persisted in the database) is needed so it adds a reimbursement sample that is loaded with the spree_sample:load task and attached to one order previously created.

@kennyadsl kennyadsl changed the title add reimbursement email preview Add reimbursement email preview May 14, 2016
@mamhoff
Copy link
Contributor

mamhoff commented May 14, 2016

👍

@jhawthorn
Copy link
Contributor

👍 Thank you.

Having the sample as well is very helpful

@jhawthorn jhawthorn merged commit 8ad2e8c into solidusio:master May 16, 2016
@kennyadsl kennyadsl deleted the add_reimbursement_mail_preview branch November 4, 2019 12:58
kennyadsl added a commit to nebulab/solidus that referenced this pull request Jan 29, 2020
The current code is not creating a valid reimbursement since it's
created when the associated order is still not in the riht state
(paid and shipped).

The amount of the reimboursement was also wrong, since the return
item created had an exchange variant associated, making the total
of the calculated reimboursement 0.

This was mainly used to allow seeing the reimboursement email in the
preview (with solidusio#1146), and it was working fine for that purpose but it
is creating an inconsistent order in the backend running samples.

Retruns are already complex and messed up, we need to avoid showing
wrong examples of code and order states to users.
kennyadsl added a commit to nebulab/solidus that referenced this pull request Jan 29, 2020
The current code is not creating a valid reimbursement since it's
created when the associated order is still not in the riht state
(paid and shipped).

The amount of the reimbursement was also wrong, since the return
item created had an exchange variant associated, making the total
of the calculated reimboursement 0.

This was mainly used to allow seeing the reimbursement email in the
preview (with solidusio#1146), and it was working fine for that purpose but it
is creating an inconsistent order in the backend running samples.

Retruns are already complex and messed up, we need to avoid showing
wrong examples of code and order states to users.
kennyadsl added a commit to nebulab/solidus that referenced this pull request Feb 1, 2020
The current code is not creating a valid reimbursement since it's
created when the associated order is still not in the riht state
(paid and shipped).

The amount of the reimbursement was also wrong, since the return
item created had an exchange variant associated, making the total
of the calculated reimboursement 0.

This was mainly used to allow seeing the reimbursement email in the
preview (with solidusio#1146), and it was working fine for that purpose but it
is creating an inconsistent order in the backend running samples.

Retruns are already complex and messed up, we need to avoid showing
wrong examples of code and order states to users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants