Skip to content
Snippets Groups Projects
Commit 332848a7 authored by justinfreeman (Agileware)'s avatar justinfreeman (Agileware) :star2:
Browse files

CIVIBLD-279 Replace "Print Invoice" and "Print Invoice and Credit Note"...

CIVIBLD-279 Replace "Print Invoice" and "Print Invoice and Credit Note" buttons with label "Download Invoice" and "Download Invoice and Credit Note"
parent 4e787efd
Branches
Tags
No related merge requests found
......@@ -38,11 +38,11 @@
{if $invoicing && empty($is_template)}
<div class="css_right">
<a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}">
<i class="crm-i fa-print" aria-hidden="true"></i>
<i class="crm-i fa-download" aria-hidden="true"></i>
{if $contribution_status != 'Refunded' && $contribution_status != 'Cancelled' }
{ts}Print Invoice{/ts}</a>
{ts}Download Invoice{/ts}</a>
{else}
{ts}Print Invoice and Credit Note{/ts}</a>
{ts}Download Invoice and Credit Note{/ts}</a>
{/if}
<a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}">
<i class="crm-i fa-paper-plane" aria-hidden="true"></i>
......
......@@ -49,11 +49,11 @@
{if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')}
<a class="button no-popup nowrap"
href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}">
<i class="crm-i fa-print" aria-hidden="true"></i>
<i class="crm-i fa-download" aria-hidden="true"></i>
{if empty($row.contribution_status_name) || (!empty($row.contribution_status_name) && $row.contribution_status_name != 'Refunded' && $row.contribution_status_name != 'Cancelled') }
<span>{ts}Print Invoice{/ts}</span>
<span>{ts}Download Invoice{/ts}</span>
{else}
<span>{ts}Print Invoice and Credit Note{/ts}</span>
<span>{ts}Download Invoice and Credit Note{/ts}</span>
{/if}
</a>
{/if}
......
......@@ -114,7 +114,7 @@ class CRM_Contact_Page_View_UserDashBoardTest extends CiviUnitTestCase {
$expectedStrings = [
'Your Contribution(s)',
'<table class="selector"><tr class="columnheader"><th>Total Amount</th><th>Financial Type</th><th>Received date</th><th>Receipt Sent</th><th>Balance</th><th>Status</th><th></th>',
'<td>Completed</td><td><a class="button no-popup nowrap"href="/index.php?q=civicrm/contribute/invoice&amp;reset=1&amp;id=1&amp;cid=' . $this->contactID . '"><i class="crm-i fa-print" aria-hidden="true"></i><span>Print Invoice</span></a></td></tr><tr id=\'rowid2\'',
'<td>Completed</td><td><a class="button no-popup nowrap"href="/index.php?q=civicrm/contribute/invoice&amp;reset=1&amp;id=1&amp;cid=' . $this->contactID . '"><i class="crm-i fa-download" aria-hidden="true"></i><span>Download Invoice</span></a></td></tr><tr id=\'rowid2\'',
'Pay Now',
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment