abo_parser 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/abo.rb +1 -1
- data/lib/abo_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b70778381ce6cb664446141f56c05bd6ef5ac3ccdd4da62c5fb6ded1db738adc
|
4
|
+
data.tar.gz: d8171bfe6a261ef496d30461f6cdd669da52a9cb61a640cc5b74c8e5206a17b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01f4e6ffdd5ed1c9eeccc91f7aaaaa6cb6e679c629a03519c74446576c1366dd85bdc84994b2e350c86481e50e0c3cd82ba21fc5ed019cdb9173851c51a1de9
|
7
|
+
data.tar.gz: 4d3bdbdd82383ea9bfa2318f432f979fa8df34397e95b72fbe9b24d7240b80a57b991267f743807c0396b3e9370143eab055ff893eee21073e6ca79efc44fe06
|
data/CHANGELOG.md
CHANGED
data/lib/abo.rb
CHANGED
@@ -112,7 +112,7 @@ class Abo
|
|
112
112
|
gpc += transaction[:counter_account_prefix_number].to_s.rjust(6, "0")
|
113
113
|
gpc += transaction[:counter_account_number].to_s.rjust(10, "0")
|
114
114
|
gpc += transaction[:document_number].to_s.ljust(13, " ")
|
115
|
-
gpc += (transaction[:amount] * 100).to_i.to_s.rjust(12, "0")
|
115
|
+
gpc += (transaction[:amount] * 100).abs.to_i.to_s.rjust(12, "0")
|
116
116
|
gpc += transaction[:posting_code].to_s
|
117
117
|
gpc += transaction[:variable_symbol].to_s.rjust(10, "0")
|
118
118
|
gpc += (transaction[:counter_account_bank_code].to_s.rjust(4, "0") +
|
data/lib/abo_parser/version.rb
CHANGED