diff --git a/app/views/registrar/invoices/index.haml b/app/views/registrar/invoices/index.haml index 76a2966b5..cc15beeb8 100644 --- a/app/views/registrar/invoices/index.haml +++ b/app/views/registrar/invoices/index.haml @@ -51,7 +51,7 @@ %table.table.table-hover.table-condensed %thead %tr - %th{class: 'col-xs-3'}= t(:invoice) + %th{class: 'col-xs-3'}= t('invoice.title') %th{class: 'col-xs-3'}= Invoice.human_attribute_name :receipt_date %th{class: 'col-xs-3'}= t(:due_date) %th{class: 'col-xs-3'}= t(:total) diff --git a/config/locales/en.yml b/config/locales/en.yml index 8ba570e6c..944c99367 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -471,6 +471,7 @@ en: total: 'Total' paid_at: 'Paid at' invoice: + title: 'Invoice' already_paid: " (already paid)" bank_statements: 'Bank statements' back_to_bank_statements: 'Back to bank statements' diff --git a/config/locales/et.yml b/config/locales/et.yml index a2afd9848..ad04db007 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -7,4 +7,5 @@ et: month_names: [~, Jaanuar, Veebruar, Märts, Aprill, Mai, Juuni, Juuli, August, September, Oktoober, November, Detsember] emails: "Meillaadressid" invoice: + title: 'Arve' already_paid: " (juba makstud)" diff --git a/test/system/registrar_area/invoices/list_test.rb b/test/system/registrar_area/invoices/list_test.rb index bb68acb2f..ffab9c202 100644 --- a/test/system/registrar_area/invoices/list_test.rb +++ b/test/system/registrar_area/invoices/list_test.rb @@ -13,6 +13,11 @@ class ListInvoicesTest < ApplicationSystemTestCase assert_text "Your current account balance is 100,00 EUR" end + def test_shows_invoice_title + visit registrar_invoices_path + assert_text 'Invoice', minimum: 2 + end + def test_shows_invoice_owned_by_current_user owning_registrar = registrars(:bestnames) assert_equal owning_registrar, @user.registrar @@ -32,4 +37,4 @@ class ListInvoicesTest < ApplicationSystemTestCase assert_no_text @invoice.to_s end -end \ No newline at end of file +end