mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Fix invoice description #2810
This commit is contained in:
parent
246645079d
commit
e92ef92331
4 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ class Admin::InvoicesController < AdminController
|
||||||
flash[:notice] = t(:record_created)
|
flash[:notice] = t(:record_created)
|
||||||
redirect_to [:admin, @invoice]
|
redirect_to [:admin, @invoice]
|
||||||
else
|
else
|
||||||
flash[:alert] = t(:failed_to_create_record)
|
flash.now[:alert] = t(:failed_to_create_record)
|
||||||
render 'new'
|
render 'new'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,7 @@ class Registrar::DepositsController < RegistrarController
|
||||||
flash[:notice] = t(:please_pay_the_following_invoice)
|
flash[:notice] = t(:please_pay_the_following_invoice)
|
||||||
redirect_to [:registrar, @invoice]
|
redirect_to [:registrar, @invoice]
|
||||||
else
|
else
|
||||||
flash[:alert] = t(:failed_to_create_record)
|
flash.now[:alert] = t(:failed_to_create_record)
|
||||||
render 'new'
|
render 'new'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
%dt= t(:description)
|
%dt= t(:description)
|
||||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
||||||
%dd= "#{t('invoice_no', no: @invoice.id)}#{@invoice.description}"
|
%dd= "#{t('invoice_no', no: @invoice.number)}#{@invoice.description}"
|
||||||
|
|
||||||
%dt= t(:reference_no)
|
%dt= t(:reference_no)
|
||||||
%dd= @invoice.reference_no
|
%dd= @invoice.reference_no
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
|
|
||||||
%dt= t(:description)
|
%dt= t(:description)
|
||||||
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
- @invoice.description.prepend(' - ') if @invoice.description.present?
|
||||||
%dd= "#{t('invoice_no', no: @invoice.id)}#{@invoice.description}"
|
%dd= "#{t('invoice_no', no: @invoice.number)}#{@invoice.description}"
|
||||||
|
|
||||||
%dt= t(:reference_no)
|
%dt= t(:reference_no)
|
||||||
%dd= @invoice.reference_no
|
%dd= @invoice.reference_no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue