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

View File

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

View File

@ -2485,6 +2485,7 @@ $LANG = array(
'setup_desktop_app' => 'Setup the desktop app', 'setup_desktop_app' => 'Setup the desktop app',
'task_rate' => 'Task Rate', 'task_rate' => 'Task Rate',
'task_rate_help' => 'Set the default <b>rate for invoiced tasks</b>.', '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>Go to the dashboard</li>
<li>List active and deleted tasks</li> <li>List active and deleted tasks</li>
<li>Find &lt;client name&gt;</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>New invoice for &lt;client name&gt;</li>
<li>Create payment for invoice &lt;invoice number&gt;</li> <li>Create payment for invoice &lt;invoice number&gt;</li>
</ul> </ul>