<a class="button no-popup nowrap"
href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}">
<i class="crm-i fa-print"></i>
- {if $row.contribution_status != 'Refunded' && $row.contribution_status != 'Cancelled' }
+ {if $row.contribution_status_id != 7 && $row.contribution_status_id != 3 }
<span>{ts}Print Invoice{/ts}</span>
{else}
<span>{ts}Print Invoice and Credit Note{/ts}</span>
{/if}
</td>
{/if}
- {if $defaultInvoicePage && $row.contribution_status == 'Pending (Pay Later)'}
+ {if $defaultInvoicePage && $row.contribution_status_id == 2}
<td>
{assign var='id' value=$row.contribution_id}
{capture assign=payNowLink}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$defaultInvoicePage`&ccid=`$id`"}{/capture}
{/if}
</div>
{crmRegion name="crm-contribute-userdashboard-post"}
-{/crmRegion}
\ No newline at end of file
+{/crmRegion}