Skip to content

Instantly share code, notes, and snippets.

@mhail
Created December 19, 2012 04:04
Show Gist options
  • Save mhail/4334316 to your computer and use it in GitHub Desktop.
Save mhail/4334316 to your computer and use it in GitHub Desktop.
Pancake App - Show Amount Due On Invoice
<!-- Edit your third_party/themes/pancake/views/modules/frontend/detailed.php
Replace the invoices total with this block.
-->
<tr dontbreak="true">
<td class="total-heading" style=" vertical-align:top;"><?php echo __('invoices:total');?>:</td>
<td class="total-values" style=" vertical-align:top;"><?php echo Currency::format($invoice['total'], $invoice['currency_code']); ?></td>
</tr>
<tr dontbreak="true">
<td class="total-heading"><?php echo __('Paid Amount');?>:</td>
<td class="total-values"><?php echo Currency::format($invoice['paid_amount'], $invoice['currency_code']); ?></td>
</tr>
<tr dontbreak="true" class="invoice-total">
<td class="total-heading" style=" vertical-align:top;"><?php echo __('Due');?>:</td>
<td class="total-values" style=" vertical-align:top;"><?php echo Currency::format($invoice['unpaid_amount'], $invoice['currency_code']); ?></td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment