added api service for generate invoice in billing system

This commit is contained in:
olegphenomenon 2022-01-10 16:41:24 +02:00
parent 8a34e9e2ba
commit 9bdca96f87
2 changed files with 115 additions and 0 deletions

View file

@ -12,6 +12,10 @@ class Registrar
if @invoice
flash[:notice] = t(:please_pay_the_following_invoice)
add_invoice_instance = EisBilling::AddDeposits.new(@invoice)
add_invoice_instance.some_meth
redirect_to [:registrar, @invoice]
else
flash[:alert] = @deposit.errors.full_messages.join(', ')