train-tax-calculator 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/train/tax/calculator.rb +1 -1
- 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: 1a05ebcb7498b2fa7b1152d043f4b07dd42738ab
|
4
|
+
data.tar.gz: 5709aeee64daa1bd1ba57904dd64872a83554766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eef56521990386d7d56df369a1fbf04d0f574bf12e4d1cbd1eb27d532fc253a296d33deed94d15ba3f83e5325880951a18e0f05bf0f1c9a3fa9156b9fdd9064c
|
7
|
+
data.tar.gz: 637b5e0b4c6c324063eb444bffa2ce4f7188e58bc1f957daf3d17e0f8c3fc5b0cca584e2b957d63a7da5ed2c348aed6f3f892b7a6142bbe6fa99785d4b99f7c6
|
data/lib/train/tax/calculator.rb
CHANGED
@@ -17,7 +17,7 @@ module Train
|
|
17
17
|
hash[:philhealth] = Philhealth.compute(basic_salary)
|
18
18
|
hash[:total_deductions] = Deductions.get(basic_salary)
|
19
19
|
hash[:withholding_tax] = WithholdingTax.compute(basic_salary)
|
20
|
-
hash[:net_income] = basic_salary - hash[:withholding_tax]
|
20
|
+
hash[:net_income] = (basic_salary - hash[:withholding_tax]).round(2)
|
21
21
|
|
22
22
|
hash
|
23
23
|
end
|