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

dev/core#2035 Invoice template - show Amount paid even when it is fully paid #18602

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 26, 2020

Overview

Fixes invoice template so that Amount due displays (again) for fully paid invoices

https://lab.civicrm.org/dev/core/-/issues/2035

Before

In 5.24 this change altered the if from
'show amount paid & due depending on pay-later status' to 'show amount paid & due depending on whether payment is due'

This has been experienced as a regression and, being an invoice, there seems no reason to only change it sometimes.

After

Display of Paid amount / Amount Due 'always on'

Technical Details

This change just alters the template that new installs will receive. If approved another step is needed to update existing
installs (unless they have customised the template)

Comments

@magnolia61 @lcdservices @jitendrapurohit

@civibot
Copy link

civibot bot commented Sep 26, 2020

(Standard links)

@civibot civibot bot added the master label Sep 26, 2020
@eileenmcnaughton eileenmcnaughton changed the base branch from master to 5.30 September 26, 2020 00:47
@civibot civibot bot added 5.30 and removed master labels Sep 26, 2020
…ly paid

In https://github.com/civicrm/civicrm-core/pull/16680/files?w=1#diff-b211e0dac858fdad5d480c118d645e0bR129 there was a change from
'show amount paid & due depending on pay-later status' to 'show amount paid & due depending on whether payment is due'

This has been experienced as a regression and, being an invoice, there seems no reason to only change it sometimes.

This change just alters the template that new installs will receive. If approved another step is needed to update existing
installs (unless they have customised the template)
@eileenmcnaughton
Copy link
Contributor Author

Looks like @jitendrapurohit previously added a test on this code (yay) & it picked up the whitespace change :-)

CRM_Contribute_Form_Task_InvoiceTest.testInvoiceForDueDate

@lcdservices
Copy link
Contributor

Tested this and it works as expected/desired.

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 OK based on the above? Can add update part later as a separate PR

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