mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Add invoice numbers
This commit is contained in:
parent
109ce6c912
commit
1e47f3e41c
10 changed files with 35 additions and 14 deletions
|
@ -9,7 +9,7 @@ class Registrar::DepositsController < RegistrarController
|
|||
@deposit = Deposit.new(deposit_params.merge(registrar: current_user.registrar))
|
||||
@invoice = @deposit.issue_prepayment_invoice
|
||||
|
||||
if @invoice
|
||||
if @invoice.persisted?
|
||||
flash[:notice] = t('please_pay_the_following_invoice')
|
||||
redirect_to [:registrar, @invoice]
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue