lib/ibandit/local_details_cleaner.rb in ibandit-1.6.1 vs lib/ibandit/local_details_cleaner.rb in ibandit-1.7.0
- old
+ new
@@ -66,17 +66,16 @@
}
end
def self.clean_au_details(local_details)
# Account number may be up to 10 digits long.
- # Add leading zeros to account number if < 10 digits.
#
# Minimum account_number length is 5
return {} unless local_details[:account_number].length >= 5
{
branch_code: local_details[:branch_code].delete("-"),
- account_number: local_details[:account_number].rjust(10, "0"),
+ account_number: local_details[:account_number],
}
end
def self.clean_be_details(local_details)
account_number = local_details[:account_number].tr("-", "")