dorsale 3.14.2 → 3.14.3

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: 684ded7d7d17769dd9697324cd1fa3a290b404b51b7a51311b168826aa3a1cd6
4
- data.tar.gz: 403c9d809ead3265e93a051e84c2171a4b0a3029b13c79bd6eff77e44b66f5fa
3
+ metadata.gz: 99e42e92cc90e24c8e1a1d0b65b0534a39dca07b4a77d85033cb0de98c5a1e8e
4
+ data.tar.gz: 741dc9f5064952f340bc3d4857ad286457063da341e673baa451caf1dfe4a5d4
5
5
  SHA512:
6
- metadata.gz: 66619bd184bdd40c4a147ca6545700660e6acd730a7fe0f5f36d88916b8afd0fa9b38d654bbff27188e2ca062a66b2cbd30c00bcfc97949375c9865aecab3dd7
7
- data.tar.gz: 6e1a833f5a71ff360dd1a1a51f668030e5e9181295a162a8b66b760b5e5ece8cd47b78539252ab29297ac3aaeee1a987de69d5fdb85f45b09e2ef00fe3bbe8bf
6
+ metadata.gz: 815a794f2ab6bbaa1f61908028ee7d7eaba19060a961dfbc15917482b817b91657ed5cf7e898bfa6da053794b71916aa8d333db620b82a7f4c2307d577d98158
7
+ data.tar.gz: b6cf71b1bfd492c31a2da72da75628ac96d9b5a9257dfe809a9c058e3c0752127f91bdfdaf5462917aae2dcaa24c2b68f7102a1280dc9251c86c9d6e4a46322c
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 3.14.3
6
+ - BillingMachine minor fixes
7
+
5
8
  ## 3.14.2
6
9
  - Fix CustomerVault factories
7
10
 
@@ -18,8 +18,7 @@ class Dorsale::BillingMachine::InvoiceLine < ::Dorsale::ApplicationRecord
18
18
  end
19
19
 
20
20
  def update_total
21
- assign_default_values
22
- self.total = (quantity * unit_price).round(2)
21
+ self.total = (quantity.to_f * unit_price.to_f).round(2)
23
22
  end
24
23
 
25
24
  after_save :update_invoice_total
@@ -18,8 +18,7 @@ class Dorsale::BillingMachine::QuotationLine < ::Dorsale::ApplicationRecord
18
18
  end
19
19
 
20
20
  def update_total
21
- assign_default_values
22
- self.total = (quantity * unit_price).round(2)
21
+ self.total = (quantity.to_f * unit_price.to_f).round(2)
23
22
  end
24
23
 
25
24
  after_save :update_quotation_total
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "3.14.2"
2
+ VERSION = "3.14.3"
3
3
  end
@@ -10,7 +10,7 @@ describe ::Dorsale::UserMailer do
10
10
  end
11
11
 
12
12
  it "should have the right sender" do
13
- expect(email.from).to eq(["contact@example.org"])
13
+ expect(email.from).to eq(["example@example.org"])
14
14
  end
15
15
 
16
16
  it "should contain user_type, login and password" do
@@ -27,7 +27,7 @@ describe ::Dorsale::BillingMachine::InvoiceSingleVatPdf, pdfs: true do
27
27
  }
28
28
 
29
29
  it "should display global vat rate" do
30
- expect(content).to include "TVA 19,60 %"
30
+ expect(content).to include "TVA 19,60"
31
31
  expect(content).to_not include "MONTANT TVA"
32
32
  expect(content).to_not include "TVA %"
33
33
  end
@@ -27,7 +27,7 @@ describe ::Dorsale::BillingMachine::QuotationSingleVatPdf, pdfs: true do
27
27
  }
28
28
 
29
29
  it "should display global vat rate" do
30
- expect(content).to include "TVA 19,60 %"
30
+ expect(content).to include "TVA 19,60"
31
31
  expect(content).to_not include "MONTANT TVA"
32
32
  expect(content).to_not include "TVA %"
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.2
4
+ version: 3.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-14 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -883,7 +883,7 @@ files:
883
883
  - spec/factories/flyboy_tasks.rb
884
884
  - spec/files/avatar.png
885
885
  - spec/files/pdf.pdf
886
- - spec/mailers/user_mailer.rb
886
+ - spec/mailers/user_mailer_spec.rb
887
887
  - spec/models/dorsale/address_spec.rb
888
888
  - spec/models/dorsale/alexandrie/attachment_spec.rb
889
889
  - spec/models/dorsale/alexandrie/attachment_type_spec.rb
@@ -958,7 +958,7 @@ specification_version: 4
958
958
  summary: Modular ERP made with Ruby on Rails
959
959
  test_files:
960
960
  - spec/spec_helper.rb
961
- - spec/mailers/user_mailer.rb
961
+ - spec/mailers/user_mailer_spec.rb
962
962
  - spec/models/dorsale/billing_machine_spec.rb
963
963
  - spec/models/dorsale/i18n_spec.rb
964
964
  - spec/models/dorsale/alexandrie/attachment_spec.rb