Fix invoice description #2810

This commit is contained in:
Martin Lensment 2015-07-31 16:48:08 +03:00
parent 246645079d
commit e92ef92331
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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