tax_jp 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tax.js +1 -1
- data/lib/tax_jp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c48f4dababdd1406820b05e2d32b68a4c0d5a776bd53f2724ae9ba02f98ebb
|
4
|
+
data.tar.gz: 77023c0b83977e472a36971ea43391cd4fc9cb7b2ca713c86fb7720ab0ae26c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9b08645697885999325d6ca626e2e0267d594adef02942bfee489eca8a6d3e449dc2355cc98afd2d684bd230dda9014cba31517e44123e27ce0afe263a0ad9
|
7
|
+
data.tar.gz: '06901d6c1e3e911947dec46debf199326a3ce139bc3cb8383738399db19c12d40dd72a3681c5867254963784ec8e797cb5f71e9d0d3a7907bca9000702b20889'
|
@@ -44,7 +44,7 @@ tax.calcTaxAmount = function(taxType, rate, amount) {
|
|
44
44
|
}
|
45
45
|
|
46
46
|
if ( taxType == tax.INCLUSIVE ) {
|
47
|
-
return parseInt(amount
|
47
|
+
return amount - parseInt(amount / (1 + rate));
|
48
48
|
} else if ( taxType == tax.EXCLUSIVE ) {
|
49
49
|
return parseInt(amount * rate);
|
50
50
|
}
|
data/lib/tax_jp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tax_jp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichylinux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|