1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Change 'overdue' to 'past due'

This commit is contained in:
Hillel Coren 2017-10-17 21:21:13 +03:00
parent 01b4f62ac7
commit 81bdcd172a
4 changed files with 5 additions and 4 deletions

View File

@ -682,7 +682,7 @@ class Invoice extends EntityModel implements BalanceAffecting
if ($quoteInvoiceId) {
$label = 'converted';
} elseif ($class == 'danger') {
$label = $entityType == ENTITY_INVOICE ? 'overdue' : 'expired';
$label = $entityType == ENTITY_INVOICE ? 'past_due' : 'expired';
} else {
$label = 'status_' . strtolower($status);
}
@ -1458,7 +1458,7 @@ class Invoice extends EntityModel implements BalanceAffecting
if ($entityType == ENTITY_INVOICE) {
$statuses[INVOICE_STATUS_UNPAID] = trans('texts.unpaid');
$statuses[INVOICE_STATUS_OVERDUE] = trans('texts.overdue');
$statuses[INVOICE_STATUS_OVERDUE] = trans('texts.past_due');
}
return $statuses;

View File

@ -338,7 +338,7 @@ class InvoiceRepository extends BaseRepository
} elseif (Invoice::calcIsOverdue($model->balance, $model->due_date)) {
$class = 'danger';
if ($entityType == ENTITY_INVOICE) {
$label = trans('texts.overdue');
$label = trans('texts.past_due');
} else {
$label = trans('texts.expired');
}

View File

@ -2485,6 +2485,7 @@ $LANG = array(
'setup_desktop_app' => 'Setup the desktop app',
'task_rate' => 'Task Rate',
'task_rate_help' => 'Set the default <b>rate for invoiced tasks</b>.',
'past_due' => 'Past Due',
);

View File

@ -106,7 +106,7 @@
<li>Go to the dashboard</li>
<li>List active and deleted tasks</li>
<li>Find &lt;client name&gt;</li>
<li>Show me &lt;client name&gt;'s overdue invoices</li>
<li>Show me &lt;client name&gt;'s past due invoices</li>
<li>New invoice for &lt;client name&gt;</li>
<li>Create payment for invoice &lt;invoice number&gt;</li>
</ul>