Add autocheck by reference number in field or in description

(parsed by regexp, first 7-digit number)

See #1415
This commit is contained in:
Alex Sherman 2019-12-19 16:13:46 +05:00
parent 3dcc476114
commit effedcf585
5 changed files with 30 additions and 22 deletions

View file

@ -28,7 +28,7 @@ class PaymentCallbackTest < ApplicationIntegrationTest
def assert_matching_bank_transaction_exists(invoice)
assert BankTransaction.find_by(
description: invoice.order,
description: invoice.description,
currency: invoice.currency,
iban: invoice.seller_iban
), 'Matching bank transaction should exist'
@ -56,4 +56,4 @@ class PaymentCallbackTest < ApplicationIntegrationTest
payment_method: "every_pay"
}
end
end
end