Added preview for email templates

This commit is contained in:
Hillel Coren 2016-05-05 19:43:44 +03:00
parent 6971060049
commit 47cd8a0a33
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class InvoicePresenter extends Presenter {
public function balanceDueLabel() public function balanceDueLabel()
{ {
if ($this->entity->partial) { if ($this->entity->partial > 0) {
return 'partial_due'; return 'partial_due';
} elseif ($this->entity->is_quote) { } elseif ($this->entity->is_quote) {
return 'total'; return 'total';

View File

@ -1177,6 +1177,7 @@ $LANG = array(
'live_preview_disabled' => 'Live preview has been disabled to support selected font', 'live_preview_disabled' => 'Live preview has been disabled to support selected font',
'invoice_number_padding' => 'Padding', 'invoice_number_padding' => 'Padding',
'preview' => 'Preview', 'preview' => 'Preview',
'list_vendors' => 'List Vendors',
); );