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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d231fd19f8e0a2603cd6f289aae66de527a7dc29705b8831387ebb179b3150a
4
- data.tar.gz: a72410cc728a5146a06acc4e6335fa557ccd96e5bd86a7c1a50c416868a0f691
3
+ metadata.gz: f4c48f4dababdd1406820b05e2d32b68a4c0d5a776bd53f2724ae9ba02f98ebb
4
+ data.tar.gz: 77023c0b83977e472a36971ea43391cd4fc9cb7b2ca713c86fb7720ab0ae26c3
5
5
  SHA512:
6
- metadata.gz: 074e65b0c5ab90955d77815a6ea4d576fb4dbbf2b30396f33fed66f983e5aed351c145f16dbda4bd8bfb9807795a3da1954c4b1b454764d75a00d213564a9f5a
7
- data.tar.gz: a67853c1323bb72909316ff98639ccb2585d235558aae48b83a68ce48acd344e36bdf26d8a3d8e931f1e55362daa1d2204a5e77594df641eaa4f2d1bda98f305
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 * rate / (1 + rate));
47
+ return amount - parseInt(amount / (1 + rate));
48
48
  } else if ( taxType == tax.EXCLUSIVE ) {
49
49
  return parseInt(amount * rate);
50
50
  }
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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.0
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-07-19 00:00:00.000000000 Z
12
+ date: 2019-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap