bankserv 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
data/lib/bankserv/credit.rb
CHANGED
@@ -14,10 +14,11 @@ module Bankserv
|
|
14
14
|
|
15
15
|
credits = Bankserv::Credit.where(record_type: 'standard', action_date: trans.data[:transmission_date].to_date,
|
16
16
|
amount: trans.data[:amount].to_i).where('lower(user_ref) = ?', ref.downcase).select do |credit|
|
17
|
-
|
18
|
-
|
17
|
+
|
18
|
+
branch_code = if trans.data[:homing_branch_code] == "0" then "" else trans.data[:branch_code] end
|
19
19
|
|
20
20
|
credit.bank_account.account_number == trans.data[:homing_account_number] &&
|
21
|
+
credit.bank_account.branch_code == branch_code &&
|
21
22
|
credit.bank_account.account_name.downcase == trans.data[:homing_account_name].downcase
|
22
23
|
end
|
23
24
|
|
data/lib/bankserv/version.rb
CHANGED