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

Fix contribution online receipt to be, somewhat, previewable #24321

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fix contribution online receipt to be, somewhat, previewable

Before

Trying to preview online contribution templates draws a blank

After

The line item & tax fields I fixed up for offline & invoice are showing up well now....

image

Technical Details

Comments

@civibot
Copy link

civibot bot commented Aug 19, 2022

(Standard links)

@civibot civibot bot added the master label Aug 19, 2022
@eileenmcnaughton eileenmcnaughton force-pushed the inv_preview branch 2 times, most recently from fa02354 to 293e2d6 Compare August 20, 2022 01:34
@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy are you able to look at this - similar to the other two contribution templates (offline & invoice)

@demeritcowboy
Copy link
Contributor

Ok will try to look today.

@demeritcowboy
Copy link
Contributor

The main thing is I see $totalTaxAmount has been mostly removed but there are still some references and they give an undefined notice, and the Amount Before Tax is wrong (which is a logical consequence). I'm talking about the real receipt not preview.

For currencies on preview, I see the same thing as in your screenshot, where the currency is wrong for half of it - but only seems to be in the preview and the real receipt seems ok.

And I thought we fixed removing the time component in the receipt date but I might be getting which templates are which mixed up.

@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy re "$totalTaxAmount has been mostly removed but there are still some references and they give an undefined notice" - is that a regression already in core - or one created in this PR?

@demeritcowboy
Copy link
Contributor

It doesn't seem to be from this PR. I was thinking it might depend how you generate the receipt but it seems to always be missing. Can't be too old since you'd think somebody would have noticed, but it appears missing in 5.52 at least.

@demeritcowboy demeritcowboy merged commit 0ea2003 into civicrm:master Aug 30, 2022
@demeritcowboy
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton deleted the inv_preview branch August 30, 2022 21:57
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