mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
fix bind_invoice method
This commit is contained in:
parent
ded22685c9
commit
1885ddf749
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class BankTransaction < ApplicationRecord
|
|||
|
||||
invoice = Invoice.find_by(number: invoice_no)
|
||||
errors.add(:base, I18n.t('invoice_was_not_found')) unless invoice
|
||||
validate_invoice_data(invoice)
|
||||
validate_invoice_data(invoice) if invoice
|
||||
return if errors.any?
|
||||
|
||||
create_internal_payment_record(channel: (manual ? 'admin_payment' : nil), invoice: invoice,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue