From 81bdcd172a6958b7cff413323b65aa9273464432 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 Oct 2017 21:21:13 +0300 Subject: [PATCH] Change 'overdue' to 'past due' --- app/Models/Invoice.php | 4 ++-- app/Ninja/Repositories/InvoiceRepository.php | 2 +- resources/lang/en/texts.php | 1 + resources/views/partials/keyboard_shortcuts.blade.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index e8b04b147713..f110d3dc38a7 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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; diff --git a/app/Ninja/Repositories/InvoiceRepository.php b/app/Ninja/Repositories/InvoiceRepository.php index 03ae78d5e95e..72e063d89f26 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -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'); } diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index c973e09cc7a1..285ad68320ed 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2485,6 +2485,7 @@ $LANG = array( 'setup_desktop_app' => 'Setup the desktop app', 'task_rate' => 'Task Rate', 'task_rate_help' => 'Set the default rate for invoiced tasks.', + 'past_due' => 'Past Due', ); diff --git a/resources/views/partials/keyboard_shortcuts.blade.php b/resources/views/partials/keyboard_shortcuts.blade.php index 4967471cec10..86cba8ed5720 100644 --- a/resources/views/partials/keyboard_shortcuts.blade.php +++ b/resources/views/partials/keyboard_shortcuts.blade.php @@ -106,7 +106,7 @@
  • Go to the dashboard
  • List active and deleted tasks
  • Find <client name>
  • -
  • Show me <client name>'s overdue invoices
  • +
  • Show me <client name>'s past due invoices
  • New invoice for <client name>
  • Create payment for invoice <invoice number>