tax_jp 1.1.1 → 1.1.2

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: f4c48f4dababdd1406820b05e2d32b68a4c0d5a776bd53f2724ae9ba02f98ebb
4
- data.tar.gz: 77023c0b83977e472a36971ea43391cd4fc9cb7b2ca713c86fb7720ab0ae26c3
3
+ metadata.gz: 26d20280c1a2483d5b86e85292868cfc28b299b55267c3e1bb631f65385b39af
4
+ data.tar.gz: 993908ad64d34262cbcb2e18d8401c40c52c7d114fd50ff9f09522c4ac816d82
5
5
  SHA512:
6
- metadata.gz: 6c9b08645697885999325d6ca626e2e0267d594adef02942bfee489eca8a6d3e449dc2355cc98afd2d684bd230dda9014cba31517e44123e27ce0afe263a0ad9
7
- data.tar.gz: '06901d6c1e3e911947dec46debf199326a3ce139bc3cb8383738399db19c12d40dd72a3681c5867254963784ec8e797cb5f71e9d0d3a7907bca9000702b20889'
6
+ metadata.gz: 4cd5871aa0530d3e4dd5a0fa30d37b6e7f42acb53771f32c30298f668eac832f3390d08081ccc523d26c077e4668751979476ca7600e5a1ab9a9927a76df9054
7
+ data.tar.gz: 726f4b742a0d63fcaa52a618d27bbb87ab6fab5bbeffa28b1801476e323508c62000af468bdd9971149d9245b110fbf88a3bbf434c1bedbb3a152f91e136beab
@@ -44,9 +44,9 @@ tax.calcTaxAmount = function(taxType, rate, amount) {
44
44
  }
45
45
 
46
46
  if ( taxType == tax.INCLUSIVE ) {
47
- return amount - parseInt(amount / (1 + rate));
47
+ return amount - Math.ceil(amount / (1 + rate));
48
48
  } else if ( taxType == tax.EXCLUSIVE ) {
49
- return parseInt(amount * rate);
49
+ return Math.floor(amount * rate);
50
50
  }
51
51
 
52
52
  return '';
@@ -19,7 +19,7 @@ namespace :taxjp do
19
19
  TaxJp::Addresses::DbBuilder.new.run
20
20
  end
21
21
 
22
- desc '消費税DBを構築します。'
22
+ desc '消費税スクリプトを生成します。'
23
23
  task :consumption_tax do
24
24
  puts '消費税'
25
25
  TaxJp::Utils.render 'app/assets/javascripts/tax.js'
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichylinux