Create System / Admin payment log

This commit is contained in:
Karl Erik Õunapuu 2020-02-04 18:36:06 +02:00
parent 6418924faf
commit 2645654aef
10 changed files with 122 additions and 41 deletions

View file

@ -60,7 +60,7 @@ module Admin
end
def bind_invoices
@bank_statement.bind_invoices
@bank_statement.bind_invoices(manual: true)
flash[:notice] = t('invoices_were_fully_binded') if @bank_statement.fully_binded?
flash[:warning] = t('invoices_were_partially_binded') if @bank_statement.partially_binded?