mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Fix double binding issue
This commit is contained in:
parent
fe6804ab11
commit
18a2e27c19
3 changed files with 10 additions and 1 deletions
|
@ -30,6 +30,8 @@ class BankTransaction < ActiveRecord::Base
|
|||
invoice = registrar.invoices.find_by(id: invoice_id)
|
||||
return unless invoice
|
||||
|
||||
return if invoice.binded?
|
||||
|
||||
return if invoice.sum != sum
|
||||
create_account_activity(
|
||||
account: registrar.cash_account,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue