uob-payroll 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uob/payroll/hash_calculator.rb +2 -2
- data/lib/uob/payroll/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5115588208dc5a7cf7d82a3cdeac8975754d21
|
4
|
+
data.tar.gz: eaad5679f122643e360f3e1226c2e5bdd89083d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05f0f214b5ae24db50597495eab7b88eaf61aed0ebd89e082e55ab6e9ec48f8a8c7a191c3b7d142b7cf521c6c29dc19b95ccb3efa53fbd29b1737d5cd5d07e49
|
7
|
+
data.tar.gz: 9ed79b47f2c32c299f9c830a6919e2654e83f4b9ab22c8e3f6d4eff9c6a0eccdd2915cb4512faea76278cc8461355afa990dc013bfa62f25fa24d0083e9e48d8
|
@@ -28,7 +28,7 @@ module UOB
|
|
28
28
|
def sum_header
|
29
29
|
calculate_string(header.originating_bic_code) +
|
30
30
|
calculate_padded_string(string: header.originating_account_number, size: 34) +
|
31
|
-
calculate_padded_string(string: header.originating_account_name, size: 140)
|
31
|
+
calculate_padded_string(string: sanitize(header.originating_account_name), size: 140)
|
32
32
|
end
|
33
33
|
|
34
34
|
def sum_rows
|
@@ -55,7 +55,7 @@ module UOB
|
|
55
55
|
|
56
56
|
# Remove "-" from names.
|
57
57
|
def sanitize(string)
|
58
|
-
string.gsub('
|
58
|
+
string.gsub(/-|'/,'')
|
59
59
|
end
|
60
60
|
|
61
61
|
# Payment Type is always 'R', so Payment Code = 22
|
data/lib/uob/payroll/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uob-payroll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Paca
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|