train-tax-calculator 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +0 -3
- data/lib/train/tax/calculator.rb +9 -11
- data/lib/train/tax/calculator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61280b3a2f140b9094d0922b9057341dbbd3d6c8
|
4
|
+
data.tar.gz: 6e37031bd76580def680e0b8dce8345c432cb240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c36bbe82c1802ed3c741bb2b977d25a27326f4c7b3144145aa12d0b64ad99899498747cc6c8d1115543572984edf5101957cfd2b9871ea3599ddd37d0664e160
|
7
|
+
data.tar.gz: e76dd09f0fa1999e295595c571ea3bc2d69789d242b43117232f1edf65c43a430d80443f4bae1be14d2fec81d745981a2b3c102bf27a9b719ffe3ba4d5426c23
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/train/tax/calculator.rb
CHANGED
@@ -7,19 +7,17 @@ module Train
|
|
7
7
|
module Tax
|
8
8
|
module Calculator
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
hash = Hash.new
|
10
|
+
def self.call(basic_salary)
|
11
|
+
hash = Hash.new
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
hash[:sss] = for_sss_es(basic_salary)
|
14
|
+
hash[:philhealth] = for_philhealth(basic_salary)
|
15
|
+
hash[:pagibig] = for_pagibig(basic_salary)
|
16
|
+
hash[:total_deductions] = hash[:sss] + hash[:philhealth] + hash[:pagibig]
|
17
|
+
hash[:withholding_tax] = withholding_tax(basic_salary)
|
18
|
+
hash[:net_income] = net_income(basic_salary)
|
20
19
|
|
21
|
-
|
22
|
-
end
|
20
|
+
hash
|
23
21
|
end
|
24
22
|
|
25
23
|
private
|